InfrastructureS3ToDynamoDBL.../modules/s3/main.tf

19 lines
403 B
Terraform
Raw Normal View History

2023-07-11 15:45:59 +00:00
resource "aws_s3_bucket" "bucket" {
bucket = var.s3_bucket
tags = merge(local.default_tags, var.tags, { "Project" = var.project }, { "Environment" = var.environment })
}
resource "aws_s3_object" "files_folder" {
bucket = aws_s3_bucket.bucket.id
key = "files/"
}
output "s3_bucket_name" {
value = aws_s3_bucket.bucket.id
}
output "s3_bucket_arn" {
value = aws_s3_bucket.bucket.arn
}