aws-samples / aws-cdk-examples

Example projects using the AWS CDK
Apache License 2.0
5.12k stars 2.15k forks source link

(pipelines): Adding an example that shows how to write smoke test for deployed infrastructure #610

Open kornicameister opened 2 years ago

kornicameister commented 2 years ago

General Information

Original issue: https://github.com/aws/aws-cdk/issues/18580


Basically what I would like to propose to be added is pipelines.CodePipeline example that contains post-stage step executing a smoke test suite (multiple tests) against just deployed infrastructure. An idea is to extend currently existing examples that just run simple curl with something more advanced like checking if submitting a message to topic linked somewhere producer a desired result.

Proposed Solution

Create simple one stage pipeline with post step that assumes a role deployed as part of step and uses that assumed credentials to execute a smoke test.

Language

Python

Other information

No response

Acknowledge

peterwoodworth commented 2 years ago

Let me know if you'd like any assistance with this 🙂