Skip to content

Commit

Permalink
update version change for aws provider (#69)
Browse files Browse the repository at this point in the history
* update version change for aws provider

* minor modification on S3 bucket ACL
  • Loading branch information
mpvgithub authored Oct 6, 2023
1 parent ae4cb3f commit d22e2ad
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [UNRELEASED]

### Changed

- Updated the terraform provider version for AWS to 5.17.0 (ecs plugin)
- Disabled `enable_nat_gateway` on the vpc module, since it was throwing error from the respective module

### Added
- Added ownership controls for S3 bucket for supporting S3 bucket ACL

## [0.31.0] - 2023-09-20

### Changed
Expand Down
13 changes: 11 additions & 2 deletions covalent_ecs_plugin/assets/infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,18 @@ resource "aws_s3_bucket" "bucket" {
force_destroy = true
}

resource "aws_s3_bucket_acl" "bucket_acl" {
resource "aws_s3_bucket_ownership_controls" "ownership_controls" {
bucket = aws_s3_bucket.bucket.id
acl = "private"

rule {
object_ownership = "BucketOwnerPreferred"
}
}

resource "aws_s3_bucket_acl" "bucket_acl" {
depends_on = [aws_s3_bucket_ownership_controls.ownership_controls]
bucket = aws_s3_bucket.bucket.id
acl = "private"
}

resource "aws_ecr_repository" "ecr_repository" {
Expand Down
2 changes: 1 addition & 1 deletion covalent_ecs_plugin/assets/infra/networking.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module "vpc" {
]
private_subnets = []

enable_nat_gateway = true
enable_nat_gateway = false
single_nat_gateway = false
enable_dns_hostnames = true
}
Expand Down
2 changes: 1 addition & 1 deletion covalent_ecs_plugin/assets/infra/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.23"
version = "5.17.0"
}
}
}

0 comments on commit d22e2ad

Please sign in to comment.