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
- 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 AWS-CDK
- What is the difference between a CDK construct and a regular class?
- Create Network Load Balancer (NLB) using existing EC2 instances with AWS-CDK
- CDK elbv2.ApplicationLoadBalancer.add_security_group doesn't work
- Understanding AWS-Config Rules and Confuguration Changes
- How to make k8s Pod (generated by Jenkins) use Service account IAM role to access AWS resources
- How to reference a CloudWatch metric created by container insights for ECS/Fargate
- How do you deploy existing deployment artifacts through codepipeline?
- Finding Canonical ID of the account using CDK
- AWS CodePipeline BuildAction not detecting buildspec.yml secondary artifacts
- How to extend AWS CDK with non AWS Resources during deploy
- How do I get a list of subnet IDs from one stack to another using SSM when StringListParameter doesn't work?
- AWS CDK - Linux EC2 Instance Cloudformation Init - /opt/aws/bin/cfn-signal doesn't run properly after reboot
- How to configure AWS CDK ApplicationLoadBalancedFargateService to log parsed JSON lines with Firelens and Firebit
- How to get EC2 ID and Private IP from EC2 Autoscaling Group using AWS CDK
- How to reference an ACM Certificate using the "Domain name" with the AWS CDK
Related Questions in INFRASTRUCTURE-AS-CODE
- Terraform - Multiple accounts with multiple environments (regions)
- Terraform execution
- Best way to consume pulumi output in my application code
- Documentation for AWS infrastructure as code
- Chef InSpec check an http request is failing [successfully]
- What is the purpose of an import in Terraform?
- Terraform: Invalid value for “v” parameter: cannot convert object to set of any single type
- terraform dynamic bloc with two iterations
- Create AWS_API_GATEWAY_RESOURCES in a loop
- Terraform: unable to use a module subnet in a module Virtual Machine Scale Set
- How distinguish stage of infra vs stage of software in naming convention (IaC)
- Terraform Dynamic Object Generation
- Create conditionally a resource that contains a for_each argument
- Bicep update bricked code, now i get errors for the variable vnetArray that returns a list of all the vnets and their respective subnets and subnetIDs
- Grafana permissions as IaC with Helm
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?
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?