diff --git a/examples/basic/main.tf b/examples/basic/main.tf index a0c8c66..6f4c53d 100644 --- a/examples/basic/main.tf +++ b/examples/basic/main.tf @@ -34,9 +34,10 @@ resource "aws_s3_bucket_ownership_controls" "this" { resource "aws_s3_bucket_acl" "this" { depends_on = [aws_s3_bucket_ownership_controls.this] - bucket = aws_s3_bucket.this.id - acl = "private" + rule { + object_ownership = "BucketOwnerPreferred" + } } resource "aws_s3_bucket_versioning" "this" { @@ -150,7 +151,7 @@ module "mwaa" { #--------------------------------------------------------------- module "vpc" { source = "terraform-aws-modules/vpc/aws" - version = "~> 3.0" + version = "~> 5.0" name = var.name cidr = var.vpc_cidr diff --git a/test/mwaa_terratest.go b/test/mwaa_terratest.go deleted file mode 100644 index 78dec20..0000000 --- a/test/mwaa_terratest.go +++ /dev/null @@ -1 +0,0 @@ -// TODO Work in Progress diff --git a/test/mwaa_test.go b/test/mwaa_test.go new file mode 100644 index 0000000..be9850b --- /dev/null +++ b/test/mwaa_test.go @@ -0,0 +1,21 @@ +package test + +import ( + "testing" + + "github.com/gruntwork-io/terratest/modules/terraform" +) + +func TestExamplesBasic(t *testing.T) { + + terraformOptions := &terraform.Options{ + TerraformDir: "../examples/basic", + // Vars: map[string]interface{}{ + // "myvar": "test", + // "mylistvar": []string{"list_item_1"}, + // }, + } + + defer terraform.Destroy(t, terraformOptions) + terraform.InitAndApply(t, terraformOptions) +} \ No newline at end of file