Unable to run Python in AWS CDK

Hi I am working on Python. I recently started working with Python. I am using Python in AWS cdk to create resources. Below is my code from app.py file: from aws_cdk import core from...

How should I use my custom windows based build tools docker image from aws ECR repo as environment in my CDK build script

I am creating aws codepipeline for windows WPF application for this I have already created custom docker image which has VS2017 build tools in it and this image will work as build environment to...

AWS CDK is keeping ask me to update the IAM role even if I have already setup the permissions

I am using CDK to deploy my web service, the Docker image has been push to ECR then I use CDK deploy application to ECS with Fargate tasks but when I deploy the CDK script, it is keeping ask me to...

Deploying Lambda Function with CDK Failing Due to Missing Parameters

new Function(this, "TestFunction", { handler: "TestFunction.handler", code: Code.asset(path.join(__dirname, "lambdas/")), runtime: Runtime.NodeJS810 }); When I try to deploy this to...

How to not rebuild a DockerImageAsset at every deploy using aws-cdk in TypeScript?

My app is a Python API that I package as a Docker image and use with ECS Fargate (Spot Instances). The code below works. My issue is that it rebuilds the entire image every time I deploy this –...

How to achieve CD using Gitlab CI and aws cdk

We have our application code (Java) in Gitlab and we are using Gitlab CI to build, test and create docker image (which is then pushed to AWS ECR) To provision our infra, we are using aws cdk...

Configuring CloudFront distribution with S3 Origin and Custom Origin (ELB) using AWS CDK

I have an app that uses Django and Vue.js. Currently the API is served on api.mydomain.com that sends traffic to an Application Load Balancer which routes to Fargate services and the Vue.js static...

Problem when deploying a SageMaker Multi-Model Endpoints with AWS CDK/CloudFormation

I am trying to automate the deployment of a SageMaker multi-model endpoints with AWS CDK using Python language (I guess it would be the same by directly writing a CloudFormation template in...

How to configure Wordpress via AWS Fargate Container using AWS CDK

I would like to configure Wordpress via AWS Fargate in the container variant (i.e. without EC2 instances) using AWS CDK. I have already implemented a working configuration for this purpose....

Can you bypass docker login when using AWS CDK to upload image to ECR?

I am using a CDK code example (I don't believe it's relevant to my question but here is the link: https://github.com/TysonWorks/cdk-examples/tree/master/ecs-go-api) which attempts to upload a...

How do you mock an existing vpc in aws-cdk unit tests?

I am writing an AWS CDK application that creates a ECS Fargate stack. It uses an existing VPC and existing ECR repositories. Simply mocking my Interface, and returning mocks of the IVpc and...

AWS CDK update lambda function code when code is referenced by ECR image

I have a Lambda stack that sits in a repo separate from the Lambda code itself. The Lambda code is packaged and deployed to ECR as a docker image, then the separate Lambda stack references the...

Is there any CDK or CloudFormation support for Container Recipes in AWS Image Builder?

I don't see any resource for Container Recipes for AWS Image Builder in the CDK or CloudFormation documentation. The closest thing I can find is support for Image Recipes, with is not used for...

AWS CDK: How to create a Lambda function from an existing Docker image on ECR repo?

I have a Docker image pushed already on ECR. I have also used it to create lambda function from a container image through AWS console, and it worked successfully. Now, I want to create the...

Using secrets from AWS Secrets Manager in a CDK stack using ECS + Fargate

I have defined a CDK app stack using TypeScript (sensitive information rendomized in the code below): import * as cdk from "@aws-cdk/core"; import * as ec2 from "@aws-cdk/aws-ec2"; import * as ecs...

aws cdk push image to ecr

I am trying to do something that seems fairly logical and straight forward. I am using the AWS CDK to provision an ecr repo: repository = ecr.Repository( self, ...

AWS cdk deploy --all fails to create ECS service

new to the CDK and relatively new to AWS The Issue I'm following this tutorial which includes creating a fargate based private API, and accessing it on the public internet through an ec2 instance...

CDK deploy results in "Bucket named 'x' exists, but not in account 067685711111. Wrong account?

I am modifying a CDK pipeline that works. I am adding a lambda, and when this code modification is made, the pipeline fails with an error. import * as cdk from '@aws-cdk/core'; import * as lambda...

AWS CDK Pipeline Construct: Codebuild error 254

I am fairly new to AWS CDK and I'm trying to follow the tutorial here regarding the Cdk Pipeline construct to build my own pipeline https://docs.aws.amazon.com/cdk/latest/guide/cdk_pipeline.html I...

AWS CDK deployment for multiple tenants

As per the CDK "Best Practices" documentation, we should "model all production stages in code". In the CDK, you can, and should, build that configuration right into your source code. Create a...

(@aws-cdk/pipelines) Build stage for application source code

I worked through the CDK Pipelines: Continuous delivery for AWS CDK applications tutorial, which gave an overview of creating a self-mutating CDK pipeline with the new CodePipeline API. The...