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

tests/servicecatalog: update to aws_s3_bucket_acl resource #23016

Merged
merged 1 commit into from
Feb 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 5 additions & 1 deletion internal/service/servicecatalog/constraint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,14 @@ func testAccConstraintConfig_base(rName string) string {
return fmt.Sprintf(`
resource "aws_s3_bucket" "test" {
bucket = %[1]q
acl = "private"
force_destroy = true
}

resource "aws_s3_bucket_acl" "test" {
bucket = aws_s3_bucket.test.id
acl = "private"
}

resource "aws_s3_object" "test" {
bucket = aws_s3_bucket.test.id
key = "%[1]s.json"
Expand Down
6 changes: 5 additions & 1 deletion internal/service/servicecatalog/product_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,14 @@ func testAccProductTemplateURLBaseConfig(rName string) string {
return fmt.Sprintf(`
resource "aws_s3_bucket" "test" {
bucket = %[1]q
acl = "private"
force_destroy = true
}

resource "aws_s3_bucket_acl" "test" {
bucket = aws_s3_bucket.test.id
acl = "private"
}

resource "aws_s3_object" "test" {
bucket = aws_s3_bucket.test.id
key = "%[1]s.json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,14 @@ func testAccProvisionedProductTemplateURLBaseConfig(rName, domain, email string)
return fmt.Sprintf(`
resource "aws_s3_bucket" "test" {
bucket = %[1]q
acl = "private"
force_destroy = true
}

resource "aws_s3_bucket_acl" "test" {
bucket = aws_s3_bucket.test.id
acl = "private"
}

resource "aws_s3_object" "test" {
bucket = aws_s3_bucket.test.id
key = "%[1]s.json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,14 @@ func testAccProvisioningArtifactTemplateURLBaseConfig(rName, domain string) stri
return fmt.Sprintf(`
resource "aws_s3_bucket" "test" {
bucket = %[1]q
acl = "private"
force_destroy = true
}

resource "aws_s3_bucket_acl" "test" {
bucket = aws_s3_bucket.test.id
acl = "private"
}

resource "aws_s3_object" "test" {
bucket = aws_s3_bucket.test.id
key = "%[1]s.json"
Expand Down