Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to start with AWS CDK #7

Open
antoinedelia opened this issue Jan 7, 2025 · 0 comments
Open

How to start with AWS CDK #7

antoinedelia opened this issue Jan 7, 2025 · 0 comments

Comments

@antoinedelia
Copy link
Owner

antoinedelia commented Jan 7, 2025

Context: mainly working with Serverless Framework (CloudFormation) and Terraform.

As the former is now not free, and the later going into Business Source License, I wanted to explore alternatives.

In this post, we will focus on a replacement for Serverless Framework. A post about the Terraform replacement may come later (opentofu).

  1. cdk init
  2. cdk bootstrap to create first necessary resources
    What cdk bootstrap does:
    a. Creates an S3 Bucket: This bucket stores assets (like Lambda code, Docker images, or other files) that need to be uploaded before deployment.
    b. Creates an IAM Role: This role is used by the CDK during deployments to manage permissions for the deployment process.
    c. Amazon Elastic Container Registry (Amazon ECR) repository – Used primarily to store Docker images.
    c. Sets Up the CloudFormation Execution Role: Ensures that CloudFormation has the necessary permissions to deploy resources on your behalf.
    d. Enables Cross-Account or Cross-Region Deployments (optional): If you're deploying across multiple accounts or regions, cdk bootstrap can handle setting up necessary trust relationships.
  3. ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant