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
- Script shell execution failing escaping problem
- How can I upload a tar.bz2 file to Openstack Swift Object storage container using Python Swift Client?
- How do I check users inside my openstack project using openstack.cloud ansible collection?
- backup issue about openstack disk
- How to Expose OpenStack Instances to Local Host Physical Network?
- Using AWS Cloudwatch Agent to Monitor Openstack IaaS cloud
- Terraform floating ip check
- How to use Auth token in Openstack Ansible Module
- python yaml openstack how to access element of one group
- There was a problem using openstack4j for domain level authentication
- Openstack: Terraform multiple Instances with additional Disks - for_each list(object)
- Terraform: openstack_compute_instance_v2 assign multiple networks dinamically
- Issues with bash scripting syntax in Jenkins pipeline
- Imported python package unrecognized submodule
- How can I assign a port to VM without ip in openstack?
Related Questions in TERRAFORM
- Why does terraform aws_cognito_user_pool always show as "updated in-place" on every single terraform plan?
- Terraform - loop over complex data in data source
- Terraform cidrsubnets
- Encountered an error (ServiceUnavailable) from host runtime on Azure Function App
- Problem to add service principal permissions with terraform
- Multiple resources for the depends_on dependencies is throwing an Error
- Parametrizing backend in terraform on gcp
- AWS EKS Fargate pod scheduling issue with Prometheus deployment
- Terraform valdiate that one of N variables is set to "true"
- How to assign a value to a string variable, that includes embedded '=' in the value
- Terraform loop over Map variable to provision multiple Databricks catalogs
- Terraform OCI error when creating Network Load Balancer
- logiapp teams api connection terraform user sign in
- Difference between google_project_iam_* and other google_*_iam_* resources
- JSON representation of the current Terraform configuration
Related Questions in TERRAFORM-PROVIDER-OPENSTACK
- I need Terraform to retrieve a Network data by name
- How to delete openstack_blockstorage_volume_v2 with this module
- Force volume recreation with Terraform Cloud (VCS)
- Terraform Openstack Could not retrieve the list of available versions for provider
- Enable Azure Monitor for existing Virtual machines using terraform
- Getting attributes from Decode Json file and add them as string to a variable on terraform
- Experiencing an error when try to output content of a csv file using terraform
- Output CSV file using terraform
- Terraform Openstack: deploy new instance with same security groups as existing one
- Terraform Openstack: Attach network interface during creation
- How to dynamically attach multiple volumes to multiple instances via terraform in openstack?
- Terraform create list
- Terraform - Error creating OpenStack loadbalancer: Resource not found
- Terraform & OpenStack - Zero downtime flavor change
- azure Terraform parameter with CSV file
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 # Hahtags
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.