Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build_batch_config cannot be removed problem #34121

Merged
merged 31 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
79d0259
Fix build_batch_config cannot be removed problem
digglife Oct 26, 2023
e97cbae
Merge branch 'main' into HEAD
ewbankkit Jan 22, 2024
6a78678
codebuild: Migrate to AWS SDK for Go v2.
ewbankkit Jan 22, 2024
027c51e
Run 'make gen'.
ewbankkit Jan 22, 2024
fcc5143
Run 'go get github.com/aws/aws-sdk-go-v2/service/codebuild@v1.28.0 &&…
ewbankkit Jan 22, 2024
0cbbc61
Correct tagging code generation.
ewbankkit Jan 22, 2024
763ef39
r/aws_codebuild_resource_policy: Migrate to AWS SDK for Go v2.
ewbankkit Jan 22, 2024
ef77a32
r/aws_codebuild_source_credential: Migrate to AWS SDK for Go v2.
ewbankkit Jan 22, 2024
1afd700
r/aws_codebuild_report_group: Migrate to AWS SDK for Go v2.
ewbankkit Jan 22, 2024
9f5d5fe
r/aws_codebuild_webhook: Migrate to AWS SDK for Go v2.
ewbankkit Jan 22, 2024
104ee1f
r/aws_codebuild_project: Migrate to AWS SDK for Go v2.
ewbankkit Jan 22, 2024
cbc248e
codebuild: Migrate sweepers to AWS SDK for Go v2.
ewbankkit Jan 22, 2024
a0d32d1
Add 'names.CodeBuildEndpointID'.
ewbankkit Jan 22, 2024
e20bd93
codebuild: Migrate acceptance tests to AWS SDK for Go v2.
ewbankkit Jan 22, 2024
c137ba3
Fix golangci-lint 'whitespace'.
ewbankkit Jan 22, 2024
84bbd5c
Fix golangci-lint 'asasalint'.
ewbankkit Jan 22, 2024
7a11213
r/aws_codebuild_resource_policy: Fix 'ResourceNotFoundException: Reso…
ewbankkit Jan 23, 2024
9701067
Add CHANGELOG entry.
ewbankkit Jan 23, 2024
e8c28d4
codebuild: Add 'testAccPreCheckSourceCredentialsForServerType'.
ewbankkit Jan 23, 2024
23d3f77
r/aws_codebuild_webhook: Fix typo.
ewbankkit Jan 23, 2024
ccc569c
r/aws_codebuild_project: Use 'testAccPreCheckSourceCredentialsForServ…
ewbankkit Jan 23, 2024
00bfe9f
Tidy up 'TestAccCodeBuildProject_tags'.
ewbankkit Jan 23, 2024
94704bd
r/aws_codebuild_project: Fix some 'ImportStateVerify attributes not e…
ewbankkit Jan 23, 2024
220eebf
r/aws_codebuild_project: Fix diff suppression for 'secondary_artifact…
ewbankkit Jan 23, 2024
2dc8da9
Acceptance test output:
ewbankkit Jan 23, 2024
5b3a446
r/aws_codebuild_project: Tidy up acceptance tests.
ewbankkit Jan 23, 2024
7c5d016
r/aws_codebuild_project: Fix some more 'ImportStateVerify attributes …
ewbankkit Jan 23, 2024
c6ea4a8
r/aws_codebuild_project: Fix typos.
ewbankkit Jan 23, 2024
0fdc0eb
r/aws_codebuild_project: Fix typos.
ewbankkit Jan 23, 2024
4eed2ab
r/aws_codebuild_project: Correct 'vpc_config' and 'logs_config' flex.
ewbankkit Jan 23, 2024
99bfcb3
Fix terrafmt errors.
ewbankkit Jan 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/34121.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_codebuild_project: Allow `build_batch_config` to be removed on Update
```
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/cleanrooms v1.8.6
github.com/aws/aws-sdk-go-v2/service/cloudcontrol v1.15.7
github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs v1.31.0
github.com/aws/aws-sdk-go-v2/service/codebuild v1.28.0
github.com/aws/aws-sdk-go-v2/service/codecatalyst v1.10.6
github.com/aws/aws-sdk-go-v2/service/codecommit v1.20.1
github.com/aws/aws-sdk-go-v2/service/codedeploy v1.22.3
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ github.com/aws/aws-sdk-go-v2/service/cloudcontrol v1.15.7 h1:8sBfx7QkDZ6dgfUNXWH
github.com/aws/aws-sdk-go-v2/service/cloudcontrol v1.15.7/go.mod h1:P1EMD13hrBE2KUw030w482Eyk2NmOFIvGqmgNi4XRDc=
github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs v1.31.0 h1:Rk+Ft0Mu/eiNt2iJ2oS8Gf1h5m6q5crwS8cmlTylnvM=
github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs v1.31.0/go.mod h1:jZNaJEtn9TLi3pfxycLz79HVkKxP8ZdYm92iaNFgBsA=
github.com/aws/aws-sdk-go-v2/service/codebuild v1.28.0 h1:ueiaIwSz96QKCX+xfb4dWC681xycSLybAFOz3X11U7s=
github.com/aws/aws-sdk-go-v2/service/codebuild v1.28.0/go.mod h1:kHgLQLdLEqmcxQxDuGjz1naXvaUvBMMKolAJECBwYtw=
github.com/aws/aws-sdk-go-v2/service/codecatalyst v1.10.6 h1:WLVD5wFI3yC1u/8L9bNeZ9+VURSdKjGA1Q+n+F1355Y=
github.com/aws/aws-sdk-go-v2/service/codecatalyst v1.10.6/go.mod h1:/lHwoB/rkF3eWMJPvm9wXN7y1THwqCLCOrF7xzA2u9E=
github.com/aws/aws-sdk-go-v2/service/codecommit v1.20.1 h1:FJx0hebVW2EfD5eJjRSkQdWsqFTvZSCSitnMHcOxxko=
Expand Down
6 changes: 3 additions & 3 deletions internal/conns/awsclient_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions internal/service/codebuild/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ import (
"time"
)

const (
ResNameReportGroup = "Report Group"
ResNameWebhook = "Webhook"
)

const (
propagationTimeout = 2 * time.Minute
)
12 changes: 12 additions & 0 deletions internal/service/codebuild/errors.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package codebuild

import (
"github.com/aws/aws-sdk-go-v2/service/codebuild/types"
)

var (
errCodeResourceNotFoundException = (*types.ResourceNotFoundException)(nil).ErrorCode()
)
20 changes: 20 additions & 0 deletions internal/service/codebuild/exports_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package codebuild

// Exports for use in tests only.
var (
ResourceProject = resourceProject
ResourceReportGroup = resourceReportGroup
ResourceResourcePolicy = resourceResourcePolicy
ResourceSourceCredential = resourceSourceCredential
ResourceWebhook = resourceWebhook

FindProjectByNameOrARN = findProjectByNameOrARN
FindReportGroupByARN = findReportGroupByARN
FindResourcePolicyByARN = findResourcePolicyByARN
FindSourceCredentialsByARN = findSourceCredentialsByARN
FindSourceCredentials = findSourceCredentials
FindWebhookByProjectName = findWebhookByProjectName
)
114 changes: 0 additions & 114 deletions internal/service/codebuild/find.go

This file was deleted.

2 changes: 1 addition & 1 deletion internal/service/codebuild/generate.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

//go:generate go run ../../generate/tags/main.go -ServiceTagsSlice
//go:generate go run ../../generate/tags/main.go -AWSSDKVersion=2 -ServiceTagsSlice -SkipAWSServiceImp
//go:generate go run ../../generate/servicepackage/main.go
// ONLY generate directives and package declaration! Do not add anything else to this file.

Expand Down
Loading
Loading