What is AWS CDK?
- Open Source Tool that allows developers to use their favorite programming languages to write.
- imperative code to generage declarative CloudFormation templates
- Available in JavaScript, Java, C sharp, Python, C#, and Go
- Node.js is a requirement
CDK Basics
- CloudFormation?
- AWS Service that provisions AWS Resources in Stacks
- A Stack is a collection of AWS Resources
- Stack Templates are in YAML/JSON format
- Templates are declarative code
- Change set >> Create or update resources
- Layers of a CDK App
- App: no CloudFormation equivalent
- Stack: CloudFormation Stack
- Nested Stack: CloudFormation Nested Stack
- Construct: 1 (or more) CloudFormation Resources
- Stack: CloudFormation Stack
- Can have multiple apps
- Apps can have multiple Stacks
- "The Output of CDK is cloudFormation"
- App: no CloudFormation equivalent
- What is a CDK App?
- App is a special root Construct
- Orchestrates the lifecycle of the Stacks and Resources whitin it.
- App Lifecycle: Construct, Prepare, Validate, Synthesize, Deploy.
- Simple use if statement >> simpler
- ex: Paper Request unless specify application
- Helper functions
RESOURCES
'AWS' 카테고리의 다른 글
[DynamoDB] AWS.DynamoDB.DocumentClient (0) | 2022.04.20 |
---|---|
[AWS CDK] CDK Workshop with TypeScript (0) | 2022.03.25 |
[AWS] AWS Basic Infrastructure (0) | 2022.03.24 |
[AWS] EC2 vs ECS vs Lambda (0) | 2022.03.24 |
[AWS CLI] Creating a cluster with a Fargate Linux task using the AWS CLI (0) | 2022.03.24 |