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
- 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 AZURE-RM
- Terraform: provisioning via app/client id and secret
- terraform: building account: could not acquire access token to parse claims
- Can't deploy a privatelink service with Terraform
- Add list of configs in app_settings configuration block
- Terraform creates V1 identity provider while using auth_settings_v2
- Reference referenced resources in loop in Terraform
- Error when trying to create azurerm_storage_data_lake_gen2_path with Terraform/OpenTofu
- Microsoft.AVM provider stuck in "Registering" state
- Get source instance name for backup in azure recovery services using SQL-AG
- Using list(string) from KeyVault through json loaded in dynamic block terraform
- azure terraform for_each dynamic destination_address_prefixes
- Terraform on Azure: create resource if doesn't exists and don't rename existing one
- How to add subnet delegation block for azurerm_subnet in terraform?
- terraform cdk: importing resources
- Terraform how to set "Public network access" Deny service Azure Recovery Service Vault
Related Questions in CDKTF
- cdktf - HdinsightKafkaCluster - No stack could be identified for the construct at path
- Caused by: java.lang.NoClassDefFoundError: software/constructs/Construct
- Terraform docker_registry_image error: 'unable to get digest: Got bad response from registry: 400 Bad Request'
- terraform cdk equivalent for grantReadWriteData (available in aws-cdk)
- Terraform CDKTF Typescript How to set environment variables?
- How to iterate over terraform cdk objects made with an iterator
- cdktf help understanding docs, in specific, bucket parameters
- Cdktf data source for any resources
- How to use `count.index` with cdktf iterators
- Deploying inter dependent stacks at once with CDKTF
- Terraform CDKTF Unable to Find remote state
- how to write cdktf module instead terraform module
- Autoscaling Fargate cluster based on custom metric
- Data sources in CDKTF
- Cdktf Optional block
Related Questions in TERRAFORM-CDK
- cdktf lifecycle ignore_changes doesn't seem to work for tags
- Is there a way to exclude a folder from a TerraformAsset?
- Azure apim named value for backend setup
- Create a Kubernetes Cluster on GCP with CDKTF in Golang
- Trouble Assigning Public IP to GCP Compute Instance with CDKTF in Python
- terraform cdk: importing resources
- How to specify topology keys for kubernetes service declared with terraform?
- CDKTF Init Issue
- Why Lambda Invocation resources doesn't do delete operation in CRUD lifecycle?
- CDKTF ec2 Recreation with specific private IP address
- Issue with CDKTF Deployment of Azure Infrastructure in Azure DevOps Pipeline
- Error creating Azure CDN Endpoint: Invalid HostName - Must be a valid domain name, IP version 4, or IP version 6
- Issue Storing tfstate File in Azure Storage Account using cdktf and TypeScript
- Azurerm provider Python CDKTF import issues
- OIDC provider URL not resolving in 0.16.3
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?
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.