cli: allow tagging cloud resources with custom tags (#3033)

This commit is contained in:
miampf 2024-04-19 09:07:57 +00:00 committed by GitHub
parent f60c133724
commit b187966581
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 172 additions and 42 deletions

View file

@ -40,6 +40,7 @@ module "aws" {
debug = var.debug
enable_snp = var.enable_snp
custom_endpoint = var.custom_endpoint
additional_tags = var.additional_tags
}
module "constellation" {

View file

@ -70,3 +70,8 @@ variable "name_prefix" {
type = string
description = "Prefix for all resources."
}
variable "additional_tags" {
type = map(any)
description = "Additional tags that should be applied to created resources."
}

View file

@ -34,6 +34,7 @@ module "azure" {
debug = var.debug
resource_group = module.azure_iam.base_resource_group
create_maa = var.create_maa
additional_tags = var.additional_tags
}
module "constellation" {

View file

@ -87,3 +87,8 @@ variable "create_maa" {
default = true
description = "Create an MAA for attestation."
}
variable "additional_tags" {
type = map(any)
description = "Additional tags that should be applied to created resources."
}

View file

@ -32,16 +32,17 @@ module "fetch_image" {
module "gcp" {
source = "../../infrastructure/gcp"
project = var.project
image_id = module.fetch_image.image
name = var.name
node_groups = var.node_groups
region = local.region
zone = var.zone
debug = var.debug
custom_endpoint = var.custom_endpoint
cc_technology = var.cc_technology
source = "../../infrastructure/gcp"
project = var.project
image_id = module.fetch_image.image
name = var.name
node_groups = var.node_groups
region = local.region
zone = var.zone
debug = var.debug
custom_endpoint = var.custom_endpoint
cc_technology = var.cc_technology
additional_labels = var.additional_labels
}
module "constellation" {

View file

@ -79,3 +79,8 @@ variable "cc_technology" {
error_message = "The confidential computing technology has to be 'SEV' or 'SEV_SNP'."
}
}
variable "additional_labels" {
type = map(any)
description = "Additional labels that should be given to created recources."
}