Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): run cdk_nag only in ci; add scheduled workflow #66

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

dreamorosi
Copy link
Member

Issue #, if available: #52

Description of changes:

This PR changes the code in infra/bin/infra.ts so that CDK nag is ran only when the CI context variable is set to true.

This allows us to remove the AwsSolutionsChecks aspect when running the workshop but still maintain the ability to run it selectively.

The PR also adds a scheduled workflow that runs every ~7 days to check that the infrastructure is still compliant with the checks.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@dreamorosi dreamorosi self-assigned this Jun 11, 2024
Copy link
Contributor

@leandrodamascena leandrodamascena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super nice!

@dreamorosi dreamorosi merged commit e72daf3 into main Jun 11, 2024
@dreamorosi dreamorosi deleted the chore/cdk_nag_schedule branch August 9, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore: automate cdk synth on PR update/sync to run AWSSolutions checks
2 participants