Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-robitaille committed Dec 19, 2023
1 parent 1afdf9a commit d695f8e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
6 changes: 3 additions & 3 deletions aws/load_balancer/s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ resource "aws_s3_bucket_ownership_controls" "maintenance_mode" {
}

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

resource "aws_s3_bucket_public_access_block" "maintenance_mode" {
Expand Down
22 changes: 11 additions & 11 deletions aws/redis/redis.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
# Stores Form app feature flags.
#
resource "aws_elasticache_replication_group" "redis" {
automatic_failover_enabled = true
replication_group_id = "gcforms-redis-rep-group"
description = "Redis cluster for GCForms"
node_type = "cache.t2.micro"
num_cache_clusters = 2
engine_version = "6.x"
parameter_group_name = "default.redis6.x"
port = 6379
multi_az_enabled = true
subnet_group_name = aws_elasticache_subnet_group.redis.name
security_group_ids = [var.redis_security_group_id]
automatic_failover_enabled = true
replication_group_id = "gcforms-redis-rep-group"
description = "Redis cluster for GCForms"
node_type = "cache.t2.micro"
num_cache_clusters = 2
engine_version = "6.x"
parameter_group_name = "default.redis6.x"
port = 6379
multi_az_enabled = true
subnet_group_name = aws_elasticache_subnet_group.redis.name
security_group_ids = [var.redis_security_group_id]

tags = {
(var.billing_tag_key) = var.billing_tag_value
Expand Down
24 changes: 12 additions & 12 deletions aws/s3/s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ resource "aws_s3_bucket_ownership_controls" "reliability_file_storage" {
}

resource "aws_s3_bucket_acl" "reliability_file_storage" {
depends_on = [ aws_s3_bucket_ownership_controls.reliability_file_storage ]
bucket = aws_s3_bucket.reliability_file_storage.id
depends_on = [aws_s3_bucket_ownership_controls.reliability_file_storage]
bucket = aws_s3_bucket.reliability_file_storage.id

acl = "private"
}

resource "aws_s3_bucket_lifecycle_configuration" "reliability_file_storage"{
resource "aws_s3_bucket_lifecycle_configuration" "reliability_file_storage" {
bucket = aws_s3_bucket.reliability_file_storage.id

rule {
id = "Clear Reliability Queue after 30 days"
id = "Clear Reliability Queue after 30 days"
status = "Enabled"

expiration {
Expand Down Expand Up @@ -82,8 +82,8 @@ resource "aws_s3_bucket_ownership_controls" "vault_file_storage" {
}

resource "aws_s3_bucket_acl" "vault_file_storage" {
depends_on = [ aws_s3_bucket_ownership_controls.vault_file_storage ]
bucket = aws_s3_bucket.vault_file_storage.id
depends_on = [aws_s3_bucket_ownership_controls.vault_file_storage]
bucket = aws_s3_bucket.vault_file_storage.id

acl = "private"
}
Expand Down Expand Up @@ -130,8 +130,8 @@ resource "aws_s3_bucket_ownership_controls" "archive_storage" {
}

resource "aws_s3_bucket_acl" "archive_storage" {
depends_on = [ aws_s3_bucket_ownership_controls.archive_storage ]
bucket = aws_s3_bucket.archive_storage.id
depends_on = [aws_s3_bucket_ownership_controls.archive_storage]
bucket = aws_s3_bucket.archive_storage.id

acl = "private"
}
Expand All @@ -146,11 +146,11 @@ resource "aws_s3_bucket_server_side_encryption_configuration" "archive_storage"
}
}

resource "aws_s3_bucket_lifecycle_configuration" "archive_storage"{
resource "aws_s3_bucket_lifecycle_configuration" "archive_storage" {
bucket = aws_s3_bucket.archive_storage.id

rule {
id = "Clear Archive Storage after 30 days"
id = "Clear Archive Storage after 30 days"
status = "Enabled"

expiration {
Expand Down Expand Up @@ -188,8 +188,8 @@ resource "aws_s3_bucket_ownership_controls" "lambda_code" {
}

resource "aws_s3_bucket_acl" "lambda_code" {
depends_on = [ aws_s3_bucket_ownership_controls.lambda_code ]
bucket = aws_s3_bucket.lambda_code.id
depends_on = [aws_s3_bucket_ownership_controls.lambda_code]
bucket = aws_s3_bucket.lambda_code.id

acl = "private"
}
Expand Down

0 comments on commit d695f8e

Please sign in to comment.