terraform.aws-baseline-infra/modules/terraform-setup/outputs.tf

27 lines
586 B
HCL

output bucket-name {
value = aws_s3_bucket.s3bucket.id
}
output bucket_regional_domain_name {
value = aws_s3_bucket.s3bucket.bucket_regional_domain_name
}
output ddb-table-name {
value = aws_dynamodb_table.tfstate-lock-table.name
}
output ddb-table-arn {
value = aws_dynamodb_table.tfstate-lock-table.arn
}
output provider-config-block {
value = <<EOT
backend "s3" {
bucket = "${aws_s3_bucket.s3bucket.id}"
key = "terraform_state/terraform.tfstate"
region = ""
dynamodb_table = "${aws_dynamodb_table.tfstate-lock-table.name}"
encrypt = true
}
EOT
}