Adding cloudformation-validate. Cfn-lint does the heavy lifting.
This commit is contained in:
parent
71a054af92
commit
b66965e6e8
6 changed files with 181 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ from .utils import (
|
|||
generate_changeset_id,
|
||||
generate_stack_id,
|
||||
yaml_tag_constructor,
|
||||
validate_template_cfn_lint,
|
||||
)
|
||||
from .exceptions import ValidationError
|
||||
|
||||
|
|
@ -270,6 +271,9 @@ class CloudFormationBackend(BaseBackend):
|
|||
next_token = str(token + 100) if len(all_exports) > token + 100 else None
|
||||
return exports, next_token
|
||||
|
||||
def validate_template(self, template):
|
||||
return validate_template_cfn_lint(template)
|
||||
|
||||
def _validate_export_uniqueness(self, stack):
|
||||
new_stack_export_names = [x.name for x in stack.exports]
|
||||
export_names = self.exports.keys()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue