Variáveis
variable "env" {
type = string
default = "dev"
}
variable "bucket_name" { type = string }
Outputs
output "bucket_arn" {
value = aws_s3_bucket.demo.arn
}
Módulo local
module "logs" {
source = "./modules/s3-logs"
bucket_name = var.bucket_name
env = var.env
}
Próximo · State remoto e workspaces