I am looking for a App.deploy() function that can directly deploy/provision infra, just like we have App.synth(). Is it possible to directly deploy resources from code itself without having to deal with CLI for deployment?
Is it possible to deploy resources directly using Python and Terraform CDK from code and not CLI?
451 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 AWS-CDK
- How to set custom Origin Name in AWS CDK for CloudFront
- Using Python CDK to bundle dotnet 8 code to AWS Lambda function
- Log retation setting for ECS
- Struggling with Route53 public hosted zones in a multi-account environment
- How to get full arn when writing secret based IAM policy in AWS CDK
- AWS Step functions: DistrbituedMap itemReader get bucket and key at runtime from state input in CDK
- Encountering Deployment Error with AWS CDK: Despite Bootstrapping
- ALLOW_ADMIN_USER_PASSWORD_AUTH not getting set in AWS CDK
- JSII ProcessBuilder cannot run program
- EC2 instance being terminated after setting up lifecycle hooks
- Debugging Python AWS CDK application in VSCode
- state.Retry is not iterable
- How to get the exist cluster by name?
- CDK: Remove dependency from DependsOn
- Combining Container, AMI, and ECS builds/deployments in CDK?
Related Questions in INFRASTRUCTURE-AS-CODE
- JSON representation of the current Terraform configuration
- Preventing Terraform from assigning reserved IP addresses to resources
- Terraform: Error: Provider configuration not present. Module gets created, but when I remove or comment it throws an error
- Would Azure private marketplace be an option for storing server gold images for infrastructure deployments?
- deploy databricks workspace with powershell fails to deploy more than one worskapce
- Resource creation stuck as READY: False. How to inspect resource creation and trace errors in Crossplane?
- crossplane: error: failed to build package: not exactly one package meta type
- bicep template to inject an azure app into vnet
- DynamoDb in CloudFormation or not
- How to enable Azure "Daily anomaly by resource group" alert using ARM template?
- Timeout Issue Creating AWS ECS Fargate Service with Pulumi
- Where to run Terraform in a new Cloud tenancy
- Add dependency service deployment on AWS with terraform
- How to execute a set of commands though the vmware_vm_shelll module in ansible?
- Ansible - can I condense multiple tasks into one using dual loops and the correct data structure
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?
The short answer is: no. Even though, as @gshpychka mentioned, you can use code to execute shell commands, that still involves "dealing with the CLI".
The larger question is -- why do you want to avoid using the CLI? Generally speaking, deploying infra is either going to be a one-off task you perform locally, in which case it makes sense to use the CLI, or it is going to be a frequently repeated task performed by a pipeline...in which case it also makes sense for it to be triggered via CLI. What problem are you trying to solve by not interacting with shell commands?