Category "aws-cdk"

AWS Firehose - Convert record format - CDK

I am trying to setup AWS Firehose using the CDK and I am trying to enable the Convert record format option and then specify a AWS Glue database and table to use

How to specify VPC ID in cdk FargateService

I'm trying to create multiple ECS services each service as a different stack so I can update/delete/recreate them individually. I have 2 more stacks one for VPC

Init CodeCommit repository with seed-code stored in S3 using CDK

I'm trying to convert the MLOps template for model building, training, and deployment CloudFormation template into a CDK project so I can easily update the defi

How to create Sagemaker studio project using aws cdk

I am trying to create sagemaker studio project using aws cdk following below steps: create domain (using this example) create user (using this example) create j

Accessing the AWS gateway resource in another stack in cdk stack

I have a stack where an api gateway resource is created. I have a construct under this stack from where i need to create a method to the above resource. I tried

AWS CDK add CreationPolicy to EC2 Instance

Question in the title, trying to figure out how to add a CreationPolicy to an ec2 instance in the cdk so that I can then send a cfn-signal command once the scri

Using CDK, SNS topic Policy Statement, use actions: ["sns:*"], Cloudformation results in "Policy statement action out of service scope!"

Unable to refer to all SNS actions with the * in CDK. const MyTopicPolicy = new sns.TopicPolicy(this, 'MyTopicSNSPolicy', { topics: [MyTopic],

Use AWS CDK to trigger AWS Glue Worklfow from EventBridge

As mentioned in this link, it's not supported by Level 2 constructs. But, it's possible to use Level 1 Constructs to implement it. Can anyone show me how to do

How to import existing lambda from arn and add SQS as event source? Amplify

I'm trying to create an SNS topic that an SQS queue subscribes to which acts as an event source for a Lambda function. I'm trying to do this with the amplify cd

AWS cdk error when trying to create App Runner

I'm trying to deploy my application with App Runner in AWS via CDK. It's based on https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-apprunner.Service

AWS CDK Credentials not found when Bootstrapping

I'm getting the following error within zsh when issuing the command: Command - ~ % cdk bootstrap aws://******/*region* Error (snip) - Environment aws://****

How to register SNS topic to bounce (or complaint) email notifications with AWS CDK C#?

I have SES 'verified identity' email, that sends emails. Now using CDK I'm creating SNS topic and Lambda to handle bounce and complaint emails sent by that veri

aws_cdk python error: Unzipped size must be smaller than 262144000 bytes

I use CDK to deploy a lambda function that uses several python modules. But I got the following error at the deployment. Unzipped size must be smaller than 2621

Cannot add dependencies for sub packages in CDK V2 in Python

CDK v1 to v2 migration guide suggests adding requirements as below: aws-cdk-lib>=2.0.0 constructs>=10.0.0 aws-cdk.aws-codestar-alpha>=2.0.0alpha1 ...

Custom domain name with AWS AppSync using CDK v2

I try to add a custom domain name to my AWS AppSync API using the AWS CDK (v2). First, I manually added a certificate for my domain. I did this in the us-east-1

SAM-local fails to start API with multiple stacks

I want to add resources to my root stack and somehow found a function where I can first get stack first like this my_api = RestApi.from_rest_api_attributes(

Avoid re-build of AWS Lambda Layer in CDK

I have a CDK stack that, among other infrastructure elements, deploys an AWS Lambda Layer (or actually a lambda.LayerVersion). I noticed that every time I updat

Aws cdk pipeline stacks keep creating buckets on every deploy

Is there a way to restrict this? I'm not talking about artifact buckets, but everytime I do cdk deploy for my pipeline stack it's creating a bucket. Is there a

AWS CDK - Getting InvalidRouteTableId.Malformed when creating Route Table

I am getting the below exception when trying to create a Route Table through AWS CDK library. I went through the naming standards and am making sure to follow i

The difference between a Stack and Construct in AWS CDK

I'm new to CDK and confused about the difference between a Construct and a Stack. With CDK, we can define reusable cloud components known as Construct, and we c