Skip to content

Commit

Permalink
Merge pull request #23048 from hashicorp/td-emr-s3-bucket-acl-tests
Browse files Browse the repository at this point in the history
tests/emr: update to `aws_s3_bucket_acl`
  • Loading branch information
anGie44 authored Feb 9, 2022
2 parents e6c0563 + 880b44c commit 058e0ec
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions internal/service/emr/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1891,6 +1891,10 @@ func testAccClusterBootstrapActionBucketConfig(rName string) string {
return fmt.Sprintf(`
resource "aws_s3_bucket" "tester" {
bucket = %[1]q
}
resource "aws_s3_bucket_acl" "tester" {
bucket = aws_s3_bucket.tester.id
acl = "public-read"
}
Expand Down
6 changes: 5 additions & 1 deletion internal/service/emr/studio_session_mapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,14 @@ resource "aws_subnet" "test" {
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_iam_role" "test" {
name = %[1]q
path = "/"
Expand Down
6 changes: 5 additions & 1 deletion internal/service/emr/studio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,14 @@ resource "aws_subnet" "test" {
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_iam_role" "test" {
name = %[1]q
path = "/"
Expand Down

0 comments on commit 058e0ec

Please sign in to comment.