terraform-provider-oci icon indicating copy to clipboard operation
terraform-provider-oci copied to clipboard

Add lifecycle Meta-Argument code or Argument reference description part of oci_core_instance_configuration documentation

Open Rohitmalakar1999 opened this issue 2 years ago • 0 comments

Hi Team,

I was working on oci_core_instance_configuration ( Already attached with instance pool ) userdata/image update but facing an issue while terraform apply as terraform try to destroy existing instance configuration and update new instance configuration on instance pool but it does not work as existing terraform is already attached to instance pool.

I was looking for a solution and did not find anything on oci oci_core_instance_configuration docs. Then looked at aws launch configuration docs and similar to that tried lifecycle Meta-Argument mentioned below with my code and it worked.

lifecycle { create_before_destroy = true }

Kindly update oci oci_core_instance_configuration docs and add Argument reference for ifecycle Meta-Argument or update sample code with lifecycle Meta-Argument to let the user know it is supported.

Thanks, Rohit Malakar

Rohitmalakar1999 avatar Apr 13 '22 14:04 Rohitmalakar1999