My Oracle Support Banner

OCI - Unable To Re-create/destroy Security List Resource After First Time Creation Using Terraform (Doc ID 2431227.1)

Last updated on SEPTEMBER 13, 2021

Applies to:

Oracle Cloud Infrastructure - Version N/A and later
Information in this document applies to any platform.


Unable to re-create/destroy security list resource (using terraform)  after first time creation using terraform. When trying to re-create the security list resource using 'terraform init', throws below error:

Error: Error applying plan:
2 error(s) occurred:
* module.seed_network.oci_core_security_list.public: 1 error(s) occurred:
* oci_core_security_list.public: Get EOF
* module.seed_network.oci_core_security_list.private: 1 error(s) occurred:
* oci_core_security_list.private: Get EOF
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.



 Created environment in OCI instance using "terraform init" and trying to change/update security list afterwards.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.