mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-23 23:40:44 -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
|
@ -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" {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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."
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue