Skip to content

v2.11.0

Latest
Compare
Choose a tag to compare
@Binsabbar Binsabbar released this 13 Oct 21:33
eb02526

v2.11.0:

New

  • network-sg: add support for all rule types: ip cidrs, service cidrs and nsg ids.
    • see the example in the module for how to use the new variable.
    • the default value is CIDR_BLOCK to ensure backward compatibility.
    • add new variables:
      • var.network_security_groups.*.*.type
      • var.network_security_groups.*.*.ips
      • var.network_security_groups.*.*.nsg_ids
      • var.network_security_groups.*.*.service_cidrs
    • They are optional based on the type, if type is not set, then var.network_security_groups.*.*.ips becomes mandatory.
  • kubernetes: Ability to add user defined tags for OKE nodes by using the optional variable node_pools.*.defined_tags

Fix

  • instances: Ignore changes made to metadata.user_data in any instance, since changing the value will destroy and recreate the instance.
resource "oci_core_instance" "instances" {
  ...
  ...
  metadata = {
    ssh_authorized_keys = each.value.autherized_keys
    user_data           = lookup(each.value.optionals, "user_data", null)
  }
  lifecycle {
    ignore_changes = [
      metadata["user_data"]   <------------------------------ note this 
    ]
  }
}

Breaking Changes

None