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

bump vpc module to use v5 + Add Terratest scripts #39

Merged
merged 3 commits into from
Apr 27, 2024

Conversation

maiconrocha
Copy link
Contributor

What does this PR do?

bump vpc module to use v5 to fix hashicorp/terraform#31730
adding aws_s3_bucket_ownership_controls resource to fix terraform-aws-modules/terraform-aws-s3-bucket#223

Overcome deprecation warnings

Motivation

Errors being faced when running the basic example

More

  • Yes, I have tested the PR using my local account setup (Provide any test evidence report under Additional Notes)
  • Yes, I ran pre-commit run -a with this PR

For Moderators

  • E2E Test successfully complete before merge?

Additional Notes

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Outputs:

mwaa_arn = "arn:aws:airflow:eu-west-1:XXXXXXXXX:environment/basic-mwaa"
mwaa_role_arn = "arn:aws:iam::XXXXXXXXX:role/mwaa-executor20230925061623422400000001"
mwaa_security_group_id = "sg-XXXXXXXXX"
mwaa_service_role_arn = "arn:aws:iam::XXXXXXXXX:role/aws-service-role/airflow.amazonaws.com/AWSServiceRoleForAmazonMWAA"
mwaa_status = "AVAILABLE"
mwaa_webserver_url = "XXXXXXXXX.eu-west-1.airflow.amazonaws.com"

Copy link
Collaborator

@vara-bonthu vara-bonthu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@maiconrocha
Copy link
Contributor Author

I have added Terratest scripts on the last commit to close #5

Test Results:

TestExamplesBasic 2023-09-26T09:56:33+09:30 logger.go:66: Destroy complete! Resources: 33 destroyed.
TestExamplesBasic 2023-09-26T09:56:33+09:30 logger.go:66:

Steps to follow:
To configure dependencies, run:

cd test
go mod init "<MODULE_NAME>"
go mod tidy
Where <MODULE_NAME> is the name of your module, typically in the format github.com/<YOUR_USERNAME>/<YOUR_REPO_NAME>.

To run the tests:

cd test
go test mwaa_test.go -v -timeout 60m

@maiconrocha maiconrocha changed the title bump vpc module to use v5 bump vpc module to use v5 + Add Terratest scripts Sep 26, 2023
@vara-bonthu
Copy link
Collaborator

@maiconrocha please resolve conflicts so that we can merge the PR

@maiconrocha
Copy link
Contributor Author

@vara-bonthu done

@vara-bonthu vara-bonthu merged commit 70c0040 into aws-ia:main Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants