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

[Enhancement] Auto Rule Generation from CloudFormation Resource Specification #132

Open
dontirun opened this issue May 18, 2021 · 2 comments
Labels
enhancement New feature or request needs-research needs-triage This issue or PR still needs to be triaged.

Comments

@dontirun
Copy link

Request:

Make rules to validate that a template defines resources that exist for a particular region using the CloudFormation resource specifications

Reason

I currently develop CDK/CloudFormation that need to work across across various regions. I would like to make sure that my templates do not define resources that don't exist in one of the regions I intend to deploy to

@PatMyron
Copy link
Contributor

related to #9, this specific use-case is one of the purposes of cfn-lint:

cfn-lint -r us-west-2 currently flags regional unavailability of resource types and instance types


Keeping this open since other use-cases like #86 (comment) would benefit from this

although we might prefer the newer Resource Schemas over the older Resource Specifications

@dontirun
Copy link
Author

It would be nice to have some default rules in cfn-guard that relate to unsupported attributes to use with cfn-lint as well for a more complete checking experience

For example

  1. I create a template meant for cross region deployments
  2. Using cfn-lint, the resource specification and resource schemas can tell you that EC2 instances are supported in region X
  3. With cfn-guard I can check if the M6g instance type that I specified for my instance is supported

@razcloud razcloud added needs-triage This issue or PR still needs to be triaged. needs-research labels May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-research needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

3 participants