Skip to content

Commit

Permalink
feat: Enable for aws provider 4 (#82)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: require aws-provider ~>4.0
  • Loading branch information
jdiebold authored Jun 9, 2022
1 parent 3542c23 commit c8c1c14
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 20 deletions.
29 changes: 15 additions & 14 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,19 @@ If you set ``create_networking_config = false`` no subnets, eip, NAT gateway and

### S3 Bucket configuration
MWAA needs a S3 bucket to store the DAG files. Here is a minimal configuration for this S3 bucket:

```terraform
resource "aws_s3_bucket" "mwaa" {
bucket = "…"
versioning {
# required: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html
enabled = true
}
resource "aws_s3_bucket_versioning" "mwaa" {
bucket = aws_s3_bucket.mwaa.bucket
versioning_configuration {
status = "Enabled"
}
}
resource "aws_s3_bucket_public_access_block" "mwaa" {
# required: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html
bucket = aws_s3_bucket.mwaa.id
Expand All @@ -92,13 +97,13 @@ resource "aws_s3_bucket_public_access_block" "mwaa" {
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >=1.0.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 3.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | 3.75.1 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.17.1 |

## Modules

Expand Down
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
version = "~> 4.0"
}
}
required_version = ">=1.0.0"
Expand Down

0 comments on commit c8c1c14

Please sign in to comment.