Aws CDK
Aws CDK
Requirements:
● AWS IAM Identity Center.
● AWS CloudFormation
go get
Install github.com/aws/aws-cdk-go/awscdk/v2
Go
import (
Import "github.com/aws/aws-cdk-go/awscdk/v2"
)
3 flavors of Constructs:
● L2 (Curated): These constructs are carefully developed by the AWS CDK team to address
specific use cases and simplify infrastructure development. For the most part, they
encapsulate L1 resources, providing sensible defaults and best practice security policies. For
example, Bucket is the L2 construct for an Amazon S3 bucket.
Libraries may also define supporting resources needed by the primary L2 resource. Some
services have more than one L2 namespace in the Construct Library for organizational
purposes.
aws-cdk-lib contains L2 constructs that are designated stable, i.e., ready for production
use. If a service's L2 support is still under development, its constructs are designated
experimental and provided in a separate module.
● L3 (Patterns): Patterns declare multiple resources to create entire AWS architectures for
particular use cases. All the plumbing is already hooked up, and configuration is boiled down
to a few important parameters.
As with L2 constructs, L3 constructs that are ready for production use (stable) are included in
aws-cdk-lib, while those still under development are in separate modules.