I'm trying to enable instance termination protection using terraform. But did not see any arguments for openstack like what I found for AWS 'disable_api_termination'.
How to enable instance termination protection for OpenStack using terraform?
1.1k Views Asked by Ravichandran At
1
There are 1 best solutions below
Related Questions in OPENSTACK
- Failed to launch instance
- Instance creation in devstack icehouse
- Openstack token, I can get token with curl but can't with urllib
- where to edit physical_interface_mappings for openstack neutron network
- Creating a Virtual Machine on Bluemix, is giving an error while importing ssh key
- Using Chef with OpenStack, what would encourage me to use Heat templates?
- openstack - stack.sh fails on syntax errors
- Keystone connection fail
- What is meaning of gettext('Some Text') in Openstack
- Openstack Heat & Ansible. VM spinup and App deployment
- Launch an instance from a non-glance image in OpenStack
- what's the default timeout of func
- Network Block Device - Receive control failed (result -32) - Kernel 3.16.0-41
- Bluemix: Cannot create VM with public IP
- Openstack: Participating in localization
Related Questions in TERRAFORM
- Terraform: associate an aws_iam_role with an aws_iam_policy
- How to change the subnet association from one route table to another route table using terraform?
- How to avoid the destroy action in terraform apply?
- Is there a way to create EMR security config with CloudFormation/Terraform
- Referring to variables in another terraform file you can't modify
- EC2 instances launched via Terraform do not pass the status checks or have insufficient data
- Recreate Same Security Group Rule Each time I execute "terrafrom apply/plan"
- Trouble setting terraform variable from CLI
- Terraform -var-file not working for file present in the same directory
- How to get the most recent ebs snapshot using terraform datasource?
- protocol Tcp with floatingIP disabled, must not be used with the same backend IP
- Shell script producing the escaping character (\) with escaped double qoutes
- vpc_zone_identifier should be a list
- Building a custom terraform provider errors out
- Create AWS RDS instance in non default VPC using terraform
Related Questions in TERRAFORM-PROVIDER-OPENSTACK
- How to dynamically attach multiple volumes to multiple instances via terraform in openstack?
- Terraform Openstack: Attach network interface during creation
- Dynamic provisioning of Cinder volume and Persistent volume using Terraform through Kubernetes
- Terraform Openstack Output parameter for CPU & Memory
- Terraform Openstack: deploy new instance with same security groups as existing one
- How to enable instance termination protection for OpenStack using terraform?
- Reference to other module resource in Terraform
- how to associate floating ip address to a instance in openstack using terraform
- azure Terraform parameter with CSV file
- How to enable Application layer secrets encryption in GKE cluster with terraform?
- Output CSV file using terraform
- Experiencing an error when try to output content of a csv file using terraform
- Getting attributes from Decode Json file and add them as string to a variable on terraform
- Terraform with openstack federated users on CLI
- terraform apply fails while creating a resource that exists already
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I think you need a different mechanism to manage that. Terraform doesn't have option to disable termination like it is implemented for AWS. Those options are tailored after the provider APIs. I'm guessing that OpenStack just doesn't have something similar to this behavior.
To prevent some confusion I want to mention that the Terraform's lifecycle documented here won't be of much good in this regard:
https://www.terraform.io/docs/configuration/resources.html#prevent_destroy
It will disallow you to destroy it using 'terraform destroy' and the likes but won't do much in terms of protection coming from the OpenStack provider itself.
I would rather think about solving this problem in the architectural layer. Think about how you call the OpenStack API and how you manage your services. Around those steps you can probably place an additional layer or step that will manage the lifecycle and keep mistakes down to the minimum. Your process is what could protect you better than any tool.