Tips
Describe instances (source)
|
|
tail-stack-events
Watch AWS/CloudFormation events on the CLI using tail-stack-events.
|
|
Snippets
Load environment based configuration file
In app.py:
|
|
Then on the CLI you can use:
|
|
And this will load config from config.prod.yaml
.
The stack itself can be defined as:
|
|
Override logical IDs
|
|
Add conditions
In this example add conditions to S3 bucket policies:
|
|
Also check:
- 2022-09-06 ◦ Amazon S3 condition key examples - Amazon Simple Storage Service
- 2022-09-06 ◦ aws cdk - create aws user with s3 permissions with aws cdk - Stack Overflow
- 2022-09-06 ◦ List all Files in an S3 Bucket with AWS CLI | bobbyhadz
- for using
s3api
andlist-objects
- for using
Resources
Articles
- 2023-06-05 ◦ Cloud, why so difficult? 🤷♀️ | Wing
- Elad ben-israel, the mind behind the cdk, shares his love for the cloud, but also his frustrations with the complexity of building cloud applications.
- 2022-10-26 ◦ NestedStack — AWS Cloud Development Kit 2.47.0 documentation
- 2022-10-26 ◦ GitHub - bobbyhadz/aws-cdk-nested-stack
- how to provision nested stacks using AWS CDK
- 2022-10-26 ◦ How I prefer to organize my AWS CDK and NestedStack code
- 2022-09-06 ◦ Linux EC2 Bastion Host with AWS CDK
- initialize EC2 bastion hosts by specific sets of commands
- create Route53 record for bastion host
- pre-populate
.ssh/authorized_keys
with keys using ansible - upload
ansible
runbook to AWS/S3
- 2022-08-22 ◦ amazon web services - How to create Elastic IP association with an EC2 instance using AWS CDK?
- 2022-08-16 ◦ Create a bastion with AWS CDK
Testing
- 2022-09-06 ◦ Testing CDK Applications in Any Language | AWS Developer Tools Blog
- 2022-09-06 ◦ CDK Integration Testing | Ben’s Blog
- 2022-09-06 ◦ Infrastructure Tests with CDK | kreuzwerker 2022-09-06 ◦ AWS CDK: Running Integration Tests in real AWS cloud environment using Github Actions
Docs
-
2022-08-30 ◦ class NestedStack (construct) · AWS CDK
- might help us to get rid of
[Info at /xxx] Number of resources: xxx is approaching allowed maximum of 500