mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-25 00:05:17 -04:00
cli: allow tagging cloud resources with custom tags (#3033)
This commit is contained in:
parent
f60c133724
commit
b187966581
27 changed files with 172 additions and 42 deletions
|
@ -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
|
||||
|
|
|
@ -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."
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue