Questions tagged [aws-cdk]

The AWS CDK is an infrastructure modeling framework that allows you to define your cloud resources using an imperative programming interface.

The AWS CDK is an infrastructure modeling framework that allows you to define your cloud resources using an imperative programming interface, currently TypeScript/JavaScript, Python, Java, C# and (beta) Go.

Developers can use one of the supported programming languages to define reusable cloud components called Constructs, which are composed together into Stacks and Apps.

The AWS CDK Toolkit is a command-line tool for interacting with CDK apps. It allows developers to synthesize artifacts such as AWS CloudFormation Templates, deploy stacks to development AWS accounts and “diff” against a deployed stack to understand the impact of a code change.

The AWS Construct Library includes a module for each AWS service with constructs that offer rich APIs that encapsulate the details of how to use AWS. The AWS Construct Library aims to reduce the complexity and glue-logic required when integrating various AWS services to achieve your goals on AWS.

3488 questions
1
vote
1 answer

Start_state and End_states for step functions

All I am trying to do is to create a reusable ambda component where I can pass parameters to the class so that the Lambda can do different things, based on input param. I am using CDK in python to deploy the stack. I would like to create a parallel…
tkansara
  • 534
  • 1
  • 4
  • 21
1
vote
1 answer

TaskDefinition CDK and LogConfiguration

I am trying to accomplish the following If you are using the Fargate launch type for your tasks, all you need to do to turn on the awslogs log driver is add the required logConfiguration parameters to your task definition. I am using CDK to…
tkansara
  • 534
  • 1
  • 4
  • 21
1
vote
0 answers

How can we get environment variable into Java from AWS CodeBuild?

Check the below image as I already set the Environment Variable with ACCESS and SECRET Key into CodeBuild AWS. And I am trying to get those data into JAVA Project with the below code but unable to get value and get null output. String…
1
vote
1 answer

StepFunctions/Lambda and ECS

Here is what I am attempting to do using StepFunctions/Lambda/ECS+Fargate+python+docker I have a job that is queuing a request and polling to see if the request is complete. Once complete, the file for the request needs to be downloaded. All the…
1
vote
1 answer

Getting this error while trying to find aws cdk versiom

C:\Users\Administrator>npm install -g aws-cdk removed 7 packages, changed 192 packages, and audited 199 packages in 26s found 0 vulnerabilities // Here I check if it is intalled C:\Users\Administrator>cdk Usage: cdk [-vbo] [--toc]…
1
vote
0 answers

How AWS CDK remembers to retain specific logical ids when synthesizing the CF templates?

CDK is able retain the logical ids of resources on the synthesized templates. You can generate/synth the template multiple times and the outcome will always be the same logical ids. I just want to know how it manages to accomplish that underneath?
froi
  • 7,268
  • 5
  • 40
  • 78
1
vote
2 answers

Is it possible for AWS CDK to create a secret with a blank or placeholder value?

I'm connecting my CodePipeline to Github, so I added this lines: CodePipelineSource.gitHub("username/repo", "main", { authentication: cdk.SecretValue.secretsManager("github-token") }) and when I run cdk deploy, it fails expectedly…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
1
vote
0 answers

DynamoDB - Querying by sortkey using .NET Object Persistence Model

The code bellow works fine but I wonder if this is the right way to query by sortkey using .NET Persistence Model. Examples from official documentation are using other approach. Just wondering if this is fine too? public async…
RogerM
  • 21
  • 5
1
vote
3 answers

CDK AWS Lambda how to mock the asset provided

I am using jest for testing and I have a lambda function in my Stack I want to test. Like this: const lambda = new lambda.Function(this, "MyLambda", { ... code: lambda.Code.fromAsset("../assets/lambda.zip"), ... } ); I want to test some…
1
vote
1 answer

Facing issues in installing packages in aws cdk

I am new to using AWS CDK, I had imported aws_stepfunctions_tasks from aws_cdk.aws_stepfunctions_tasks link given: https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_stepfunctions_tasks/DynamoPutItem.html but it is showing an import…
Sameer
  • 103
  • 2
  • 10
1
vote
0 answers

Deployment step 'ManualApprovalStep(...)' is not supported for CodePipeline-backed pipelines

we are trying to migrate from the v1 CdkPipeline to the v2 CodePipelin. In v1 there was this manualApproval attribute, which one had to set to true and then you had the manual approval after the changeset creation. This doesn't seem to exist…
snowiow
  • 65
  • 8
1
vote
1 answer

Simple CDK Testing Failing

this is my set up //bin #!/usr/bin/env node import * as cdk from 'aws-cdk-lib'; import {Testing} from '../lib/index'; const app = new cdk.App(); new Testing(app, 'Testing'); //lib import {Duration, Stack, StackProps} from 'aws-cdk-lib' export…
1
vote
0 answers

AWS CDK: How to run AWS Lambda API locally with SAM WHILE using the remote DynamoDB Resource

I use AWS CDK for setting my stack and deploying, it all works fine when testing with the remote API endpoints. However, to be able to run and test it locally with SAM I generated a template for it using the cdk synth by running this command cdk…
fortunee
  • 3,852
  • 2
  • 17
  • 29
1
vote
1 answer

Assets execution step failing in codepipeline - CDK (Java)

I'm a newbie here and I need any help possible with CDK codepipeline. I'm trying to deploy a module using the pipeline and for some reason its stuck at the 'Assets' execution step. Error: Cannot read asset manifest at…
1
vote
1 answer

Referencing TableStreamArn in Amazon CDK

I have the following configuration: //DynamoDB Table const table = new dynamodb.Table(this, `DataStore`, { tableName: `${StackConfiguration.appName}-data-${StackConfiguration.environmentKey}`, partitionKey: { name: 'scope', type:…
Matthew
  • 817
  • 1
  • 13
  • 39