I am using cdktf in Python and maintaining multiple stacks using Terraform and the states are being stored in azure storage account as backend. I would need to fetch any stack at any point in time and make changes to the resources in the stack. However, I do not maintain the state locally. How can I fetch the state from azure backend and then make changes to the resources in the stack?
Fetch stack state from terraform remote(azure) without local config file
631 Views Asked by Subha_26 At
1
There are 1 best solutions below
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 AZURE-RM
- how to add azure subscription sqlfilter using AzureRm Powershell cmdlet?
- Terraform, Ignore specific app setting azurerm
- How to copy azure disk from one location to another just by using terraform
- Issue mounting Azure FileShare with azurerm_windows_virtual_machine_scale_set
- Terraform stuck at still creating step and timeouts while creating Azure Service Bus Queue
- azurerm_role_assignment Error loading role assignment after azurerm provider version upgrade
- Error attaching trusted_root_certificate to terraform azurerm application gateway
- What is a good way to design Terraform code so that I can create many web applications with the same default settings, then customize a handful?
- terraform cdk: importing resources
- How to add subnet delegation block for azurerm_subnet in terraform?
- Terraform how to set "Public network access" Deny service Azure Recovery Service Vault
- In Terraform, is it possible to change the casing of values?
- Terraform - Azurerm - Subscription Activity Log / API Logging
- azurerm_resource_group_template_deployment ignoring parameter file
- How can I use azurerm_resource_group_template_deployment for azure budget resource but ignore changes in start and end date?
Related Questions in CDKTF
- What is the command to install azuredevops provider in cdktf?
- Terraform CDKTF How to Access Data List Attribute with Python Within Resource
- Cdktf Optional block
- Should I choose Terraform cdktf over aws cdk
- How can I auto generate inputs.tf and outputs.tf variables when working with Terraform?
- How to deploy App Service with Azure Container Registry by cdktf
- cdktf diff command with variables pass
- Fetch stack state from terraform remote(azure) without local config file
- Can I create an AWS state machine using the CDK for Terraform?
- Data sources in CDKTF
- Autoscaling Fargate cluster based on custom metric
- Convert Terraform reference output type in cdktf
- Multiple AWS providers using CDKTF
- Errors during deployment to AWS using Terraform (cdktf)
- How to use `count.index` with cdktf iterators
Related Questions in TERRAFORM-CDK
- CDKTF Init Issue
- How to specify topology keys for kubernetes service declared with terraform?
- terraform cdk: importing resources
- Trouble Assigning Public IP to GCP Compute Instance with CDKTF in Python
- How to get all availability zones at runtime with cdktf?
- CDKTF C# Get value from JSON object result of Terraform resource (TFToken)
- How can I test my terrafrom modules using cdktf?
- Creating Modular Structure in Terraform CDK: How Can I Reuse the AwsProvider in Multiple Modules?
- How can I use cdktf in combination with the "count" attribute?
- CDKTF C# how to include providers that do not have a pre-built provider - namespace confusion
- CDKTF string manipulation of runtime created resource using AddOverride
- How to add dependency between helm chart and kubernetes resource in terraform CDK
- Secret management with terraform cdk
- How to ignore changes of specific annotation with Terraform CDK
- error TS2339: Property 'push' does not exist on type 'IResolvable | SecurityGroupEgress[]'. Property 'push' does not exist on type 'IResolvable'
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?
If I get you correctly you want to configure the backend to use Azure. In Terraform CDK this is done via constructs, there is a AzurermBackend you can use.
This is the example from the CDKTF repo
Once you have this configured, every
cdktf deployorcdktf destroywill run using this backend.