The test plan should be run prior to a new release. It includes manual verification steps which either can't be automated, or are not currently automated.
npx projen
npx projen build
cdk destroy --app='./lib/integ.default.js'
cdk deploy --app='./lib/integ.default.js'
- npx projen build
- cdk deploy --app='./lib/integ.default.js'
- cdk destroy --app='./lib/integ.default.js'
- Verify that there is an available Volume: https://us-east-2.console.aws.amazon.com/ec2/home?region=us-east-2#Volumes:
- Create a Snapshot from the Volume
- Create an AMI from the Snapshot. Some parameters: Image Name: test for restore Architecture: x86_64 Root device name: /dev/xvda Virtualization Type: Hardware-assisted virtualization Boot mode: Use default Block device mappings:
- Volume 1: 8 GiB. gp3. 3000. 125 MB/s. Uncheck "delete on termination." Click "Create Image"
- Use that AMI ID in integ.from-ami.js
- Set the account ID in integ.from-ami.js
- Deploy integ.from-ami.ts to test creating an instance using the AMI:
cdk deploy --app='./lib/integ.from-ami.js'
-
Verify the deployment succeeded by ensuring that the website is reachable on the public IP address
-
Run destroy:
cdk destroy --app='./lib/integ.from-ami.js'
- Verify that all resources have been deleted