terraform-provider-civo | Terraform Civo provider | Infrastructure Automation library
kandi X-RAY | terraform-provider-civo Summary
kandi X-RAY | terraform-provider-civo Summary
Terraform Civo provider
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- resourceInstance returns a schema . Resource .
- resourceInstanceCreate create instance
- dataSourceInstance returns a schema resource .
- resourceKubernetesCluster returns the kubernetes cluster resource
- Creates a Kubernetes cluster
- Update Kubernetes cluster
- resourceInstanceUpdate updates an instance
- dataSourceKubernetesCluster returns the kubernetes cluster resource .
- instancesSchema returns the schema for instances .
- resourceFirewallRule creates a resource rule for a firewall rule
terraform-provider-civo Key Features
terraform-provider-civo Examples and Code Snippets
Community Discussions
Trending Discussions on terraform-provider-civo
QUESTION
I'm building a Terraform plugin/provider (link) which will help users manage their cloud resources e.g. cloud instances, Kubernetes clusters & etc on a cloud platform.
The cloud platform at this moment does not support Kubernetes nodes size change after it gets created. If user wants to change the nodes size, they need to create a new node pool with the new nodes size.
So I'm adding this block in my plugin code, specifically in the Kubernetes cluster update method (link):
...ANSWER
Answered 2021-Aug-09 at 09:05The correct thing to do here is to tell Terraform that changes to the resource cannot be done in place and instead requires the recreation of the resource (normally destroy followed by creation but you can reverse that with lifecycle.create_before_destroy
).
When creating a provider you can do this with the ForceNew
parameter on a schema's attribute.
As an example, the aws_launch_configuration
resource is considered immutable from AWS' API side so every non computed attribute in the schema is marked with ForceNew: true
.:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install terraform-provider-civo
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page