Files
infra-provisioner/templates/aws-s3-bucket-tf/main.tf

17 lines
705 B
HCL

terraform {
backend "s3" {
bucket = "{{ .StateStoreBackend.BucketName }}"
region = "ap-south-1"
key = "s3-buckets"
workspace_key_prefix = "s3-buckets/{{ .ExtraResources.Environment }}/{{ .Deployment.Name }}-{{ .Deployment.NameSuffix }}"
profile = "{{ .StateStoreBackend.AWSProfile }}"
acl = "bucket-owner-full-control"
}
}
module "s3-buckets" {
source = "git::ssh://git@github.cmd.navi-tech.in/navi-infra/aws-s3-bucket.git?ref=fd40ccc2a8f4a97029612e618b9d09902ceecfe3"
s3_buckets = {{ .ExtraResources.S3Buckets | mustToJson }}
environment = {{ .ExtraResources.Environment | quote }}
}