Skip to content

Commit

Permalink
introduce defined tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Oehrli committed Jun 22, 2021
1 parent dc2d4b1 commit d20f5cf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions compute.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ resource "oci_core_instance" "compute" {
display_name = var.label_prefix == "none" ? format("${local.resource_shortname}-${var.host_name}%02d", count.index) : format("${var.label_prefix}-${local.resource_shortname}-${var.host_name}%02d", count.index)
shape = var.host_shape
state = var.host_state
defined_tags = var.defined_tags
freeform_tags = var.tags

create_vnic_details {
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
terraform {
required_version = ">= 0.13.0"
}
# --- EOF -------------------------------------------------------------------
# --- EOF -------------------------------------------------------------------
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ variable "ad_index" {
type = number
}

variable "defined_tags" {
description = "Defined tags for this resource"
type = map(any)
default = {}
}

variable "tags" {
description = "A simple key-value pairs to tag the resources created"
type = map(any)
Expand Down

0 comments on commit d20f5cf

Please sign in to comment.