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

@ -26,9 +26,9 @@ resource "aws_instance" "jump_host" {
subnet_id = var.subnet_id
vpc_security_group_ids = var.security_groups
tags = {
tags = merge(var.additional_tags, {
"Name" = "${var.base_name}-jump-host"
}
})
user_data = <<EOF
#!/bin/bash

View file

@ -27,3 +27,8 @@ variable "security_groups" {
type = list(string)
description = "List of IDs of the security groups for an instance."
}
variable "additional_tags" {
type = map(any)
description = "Additional tags for the jump host."
}