Skip to content

Commit

Permalink
Merge pull request #39 from maiconrocha/main
Browse files Browse the repository at this point in the history
  • Loading branch information
vara-bonthu authored Apr 27, 2024
2 parents a77bfe8 + c0771f2 commit 70c0040
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
7 changes: 4 additions & 3 deletions examples/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion test/mwaa_terratest.go

This file was deleted.

21 changes: 21 additions & 0 deletions test/mwaa_test.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 70c0040

Please sign in to comment.