s3 bucket custom name

This commit is contained in:
Manuel Romero
2025-07-03 10:49:32 +02:00
parent a063f7aff8
commit 3c7a6776b9
2 changed files with 4 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ resource "aws_iam_access_key" "lb" {
resource "aws_s3_bucket" "s3_bucket" {
bucket = "qmi-bucket-${var.provision_id}"
bucket = var.bucket_name!=null? var.bucket_name : "qmi-bucket-${var.provision_id}"
tags = local.tags

View File

@@ -13,3 +13,6 @@ variable "tenant_id" {
default = null
}
variable "bucket_name" {
default = null
}