Module: CloudFormationRSpec::Matchers::Validate
- Defined in:
- lib/cloudformation_rspec/matchers/validate.rb
Instance Method Summary collapse
Instance Method Details
#validate_cf_template(template_body) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/cloudformation_rspec/matchers/validate.rb', line 4 def validate_cf_template(template_body) client = Aws::CloudFormation::Client.new begin client.validate_template(template_body: template_body) rescue Aws::CloudFormation::Errors::ValidationError => e @error = e. return false end true end |