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

@ -3,6 +3,7 @@ resource "azurerm_linux_virtual_machine" "jump_host" {
resource_group_name = var.resource_group
location = var.location
size = "Standard_D2as_v5"
tags = var.tags
network_interface_ids = [
azurerm_network_interface.jump_host.id,
@ -63,6 +64,7 @@ resource "azurerm_network_interface" "jump_host" {
name = "${var.base_name}-jump-host"
resource_group_name = var.resource_group
location = var.location
tags = var.tags
ip_configuration {
name = "public"
@ -77,6 +79,7 @@ resource "azurerm_public_ip" "jump_host" {
resource_group_name = var.resource_group
location = var.location
allocation_method = "Dynamic"
tags = var.tags
}
resource "tls_private_key" "ssh_key" {

View file

@ -27,3 +27,8 @@ variable "location" {
description = "Location to deploy the jump host into."
type = string
}
variable "tags" {
description = "Tags of the jump host."
type = map(any)
}

View file

@ -23,3 +23,4 @@ variable "ports" {
}))
description = "Ports to add to the backend. Healtch check protocol can be either 'Tcp' or 'Https'. Path is only used for the 'Https' protocol and can otherwise be null."
}