diff --git a/provider.tf b/provider.tf index 598f13c..4789e98 100644 --- a/provider.tf +++ b/provider.tf @@ -17,4 +17,4 @@ provider "oci" { private_key_path = var.private_key_path region = data.oci_identity_region_subscriptions.home_region_subscriptions.region_subscriptions[0].region_name disable_auto_retries = "true" -} \ No newline at end of file +} diff --git a/tags.tf b/tags.tf index 0f46366..8caa7d6 100644 --- a/tags.tf +++ b/tags.tf @@ -6,29 +6,29 @@ resource "random_id" "tag" { } resource "oci_identity_tag_namespace" "ArchitectureCenterTagNamespace" { - provider = oci.homeregion - compartment_id = var.compartment_ocid - description = "ArchitectureCenterTagNamespace" - name = "ArchitectureCenter\\ha-cockroachdb-cluster-${random_id.tag.hex}" + provider = oci.homeregion + compartment_id = var.compartment_ocid + description = "ArchitectureCenterTagNamespace" + name = "ArchitectureCenter\\ha-cockroachdb-cluster-${random_id.tag.hex}" - provisioner "local-exec" { - command = "sleep 10" - } + provisioner "local-exec" { + command = "sleep 10" + } } resource "oci_identity_tag" "ArchitectureCenterTag" { - provider = oci.homeregion - description = "ArchitectureCenterTag" - name = "release" - tag_namespace_id = oci_identity_tag_namespace.ArchitectureCenterTagNamespace.id + provider = oci.homeregion + description = "ArchitectureCenterTag" + name = "release" + tag_namespace_id = oci_identity_tag_namespace.ArchitectureCenterTagNamespace.id - validator { - validator_type = "ENUM" - values = ["release", "1.0"] - } + validator { + validator_type = "ENUM" + values = ["release", "1.0"] + } - provisioner "local-exec" { - command = "sleep 20" - } -} \ No newline at end of file + provisioner "local-exec" { + command = "sleep 120" + } +} diff --git a/variables.tf b/variables.tf index 635cca1..262c960 100644 --- a/variables.tf +++ b/variables.tf @@ -27,15 +27,15 @@ variable "instance_name" { } variable "instance_shape" { - default = "VM.Standard.E3.Flex" + default = "VM.Standard.E3.Flex" } variable "instance_flex_shape_ocpus" { - default = 1 + default = 1 } variable "instance_flex_shape_memory" { - default = 10 + default = 10 } variable "ssh_public_key" { @@ -83,6 +83,6 @@ locals { # Checks if is using Flexible Compute Shapes locals { - is_flexible_lb_shape = var.lb_shape == "flexible" ? true : false + is_flexible_lb_shape = var.lb_shape == "flexible" ? true : false is_flexible_node_shape = contains(local.compute_flexible_shapes, var.instance_shape) }