Skip to content

Commit

Permalink
add rds bucket (#1491)
Browse files Browse the repository at this point in the history
* add rds bucket

* update module source

* add sse config
  • Loading branch information
timburke-hackit authored Nov 8, 2023
1 parent cb9782f commit c07e148
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions terraform/core/10-aws-s3-buckets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -446,3 +446,25 @@ resource "aws_s3_bucket_server_side_encryption_configuration" "rds_export_storag
bucket_key_enabled = true
}
}

module "deprecated_rds_export_storage" {
source = "../modules/s3-bucket"

tags = module.tags.values
project = var.project
environment = var.environment
identifier_prefix = "${local.identifier_prefix}-dp"
bucket_name = "RDS Export Storage"
bucket_identifier = "rds-export-storage"
}

resource "aws_s3_bucket_server_side_encryption_configuration" "deprecated_rds_export_storage_encryption" {
bucket = module.deprecated_rds_export_storage.bucket_id

rule {
apply_server_side_encryption_by_default {
sse_algorithm = "aws:kms"
}
bucket_key_enabled = true
}
}

0 comments on commit c07e148

Please sign in to comment.