pulumi / pulumi-policy-aws

A policy pack of rules to enforce AWS best practices for security, reliability, cost, and more!
https://www.pulumi.com
Apache License 2.0
36 stars 7 forks source link

Customize AWS Guard policy packs for each integration test #40

Closed chrsmith closed 4 years ago

chrsmith commented 4 years ago

Remove the temporary PULUMI_AWSGUARD_TESTING environment variable we were using, which was allowing us to use a "default" version of the AWS Guard module for integration tests.

With this change, we now create a new Node module named "custom-awsguard" for each integration test. This module will download @pulumi/awsguard and customize it as needed for the integration test.

(No tests require this functionality now, but as seen in https://github.com/pulumi/pulumi-awsguard/pull/39, disabling unrelated policies makes it easier to write integration tests.)

Fixes #34