I am having difficulty in understanding whether to use aws cdk or terraform cdktf. From my work so far, it appears to me that aws cdk has more robust patterns and constructs which will comply with the well architected framework, all available out of…
I am using CDKTF and python for a project where I am generating JSON output that will be interpreted by Terraform.
I have a use case where I need to send in multiple aliased AWS providers. I am able to specify a single provider to the stack by using…
I have the following code:
class MyStack extends TerraformStack {
constructor(scope: Construct, id: string) {
super(scope, id);
const awsSecrectKey = new TerraformVariable(this, "aws", {
type: "string",
sensitive: true,
…
The docs for iterators demonstrate how to create several s3 buckets:
import { s3 } from "@cdktf/provider-aws";
import { TerraformIterator, TerraformVariable } from "cdktf";
const list = new TerraformVariable(this, "list", {
type:…
I'm currently upgrading my cdktf dependencies in typescript and running into some issues during the upgrade. I currently have the following code which works perfectly on version 0.8.6
const dataAwsAvailabilityZonesAll =
new…
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.…
Note: Please see the #### UPDATE ### section below. I've heavily modified the question for clarity on what I'm trying to achieve, but added it as an addendum rather than rewrite the question.
As my infrastructure grows, adding input variables in my…
I am trying to create or update Lambdas on AWS using the Terraform CDKTF. During deployment, I am getting the error of
"An event source mapping with SQS arn (\" arn:aws:sqs:eu-west-2:*******:*****-*****-******** \") and function (\"…
I'm trying to build cdktf - Java Infrastructure as Code for Azure.
On the HdInsight Kafka Cluster i'm not able to produce the correct cdktf classes.
I'm always running in:
Caused by: software.amazon.jsii.JsiiException: No stack could be identified…
I’m beginner to Terraform CDK. I’ve created simple code in terraform CDK to create an EC2 instance. but here instead of run cdktf deploy in terminal I’m calling is via java processbuilder inside my main method.
Every thing good till now. My Code is…
I am trying to use CDF for terraform to build and push a docker image to AWS ECR. I have decided to use terraform docker provider for it. Here is my code
class MyStack extends TerraformStack {
constructor(scope: Construct, name: string) {
…
I am new to Terraform and also CDKTF. I have worked with “regular” AWS CDK.
In AWS CDK you have methods like grantReadWriteData ( IAM principal example ). E.g. if you have a dynamodb table where you want to give a Lambda function readwrite…
I am just starting my journey with cdktf / typescript and looking to create an s3 backend. This part just focuses on bucket and dynamodb lock.
I have the following code which I put together, through reading docs and also running a convert on a HCL…