Talk given AWS Meetup Vienna 20th Februar 2020
Creating AWS Test environments with CDK and Test the CDK itself
See tecracer AWS Blog: Aws-blog.de
Or goto www.tecracer.de for contact information.
Section header
a systemic view on testing shows: The results *are* dependend from the environment, but they should_not.
So its boog to control the environment.
Section header
Creating environment can be tough
SubSection header
The manual presentation failed because the manual teardown did not work.
Whats wrong with a hack? It works ... until it does not work anymore
That was then, now skip to today.
Show src/cfn-transit-gateway
with .taskcat.yml
Show src/cdk-transitgateway
SubSection header
LP - Least Privileges
Still (Feb 2020) in the documentation:
"EC2 Instance Connect works only with Instance Metadata Service Version 1"
Section header
SubSection header
SubSection header
npm run test
edit src/test-cfn/lib/test-cfn-stack.ts
npm run test
npm run build && npm run test
SubSection header
1. `mkdir snapshot && cd snapshot`
2. `cdk init sample --language=typescript`
3. Edit test
or
Use src/snapshots
1. Run test
2. change something
3. rerun
4. resnapshot
5. rerun