https://github.com/deminy/aws-cdk-workshop
Demonstration of building API services using AWS CDK, with each stack configured as Infrastructure as Code (IaC).
https://github.com/deminy/aws-cdk-workshop
aws aws-cdk cloudformation-stacks iac
Last synced: 2 months ago
JSON representation
Demonstration of building API services using AWS CDK, with each stack configured as Infrastructure as Code (IaC).
- Host: GitHub
- URL: https://github.com/deminy/aws-cdk-workshop
- Owner: deminy
- License: other
- Created: 2025-03-26T17:47:19.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-23T21:05:16.000Z (over 1 year ago)
- Last Synced: 2025-04-28T13:55:25.154Z (about 1 year ago)
- Topics: aws, aws-cdk, cloudformation-stacks, iac
- Language: TypeScript
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Workshop: AWS CDK
Demonstration of building API services using AWS CDK, with each stack configured as Infrastructure as Code (IaC).
## Setup The Project With AWS CDK
Here are the commands to setup the project with AWS CDK v2:
```bash
# To install TypeScript.
npm install -g typescript
# To install/upgrade AWS CDK.
npm install -g aws-cdk
cdk --version # To check the version of AWS CDK.
# To bootstrap the environment.
cdk bootstrap
```
## Manage The CloudFormation Stack Using AWS CDK
```bash
export AWS_PROFILE=default # Replace with your AWS profile.
export AWS_ACCOUNT_ID=1234567890 # Replace with your AWS account ID.
export AWS_REGION=us-east-1 # Replace with your AWS region.
export AWS_STACK_PREFIX=test- # Set the stack prefix to avoid conflicts with other stacks. Default is `test-`.
```
## List of Stacks
* [test-layer-swoole](docs/stack-layer-swoole.md) - To Test the Swoole layer of [Bref].
* [test-roles](docs/stack-roles.md) - To test AWS role creation.
* state machines:
* [test-state-machine](docs/stack-state-machine.md) - To test state machines in AWS.
* [test-state-machine-map](docs/stack-state-machine-map.md) - How to use map in state machines.
* [test-state-machine-nested](docs/stack-state-machine-nested.md) - To test state machine execution within another state machine.
* [test-state-machine-selective-execution](docs/stack-state-machine-selective-execution.md) - How to run states selectively in a state machine.
* [test-vpc](docs/stack-vpc.md) - An example to create a VPC in AWS.
* [test-eni](docs/stack-eni.md) - To create a new security group with two new network interfaces attached to it.
[Bref]: https://bref.sh