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
33 stars 6 forks source link

Don't Attempt to Retrieve ACM Certificate from AWS if Certificate has not yet been Created #80

Closed phillipedwards closed 2 years ago

phillipedwards commented 2 years ago

If ACM certificate doesn't exist don't attempt to retrieve from AWS. AWS SDK call will fail and produce an error.

Spacing changes....actual change is contained to lines 74-76.

chrisui commented 2 years ago

Would it be possible to get this merged and published? Happy to help if something needs external contribution. Unfortunate I need to disable the policy pack every-time I create a new cert.

chrsmith commented 2 years ago

@chrisui Yes! Sorry for dropping the ball here. Let me dust off my repo, clean/test this PR and get it deployed...