CloudFormation without template
ID |
aws_cloudformation_stack_template |
Severity |
info |
Vendor |
AWS |
Resource |
Other |
Tags |
non-reachable |
Description
CloudFormation without template. CloudFormation should have a template defined through the attribute template
, template_url
or template_body
.
To fix it you must configure template
, template_url
or template_body
property.
Learn more about this topic at AWS CloudFormation creating stack.
Examples
---
- name: Example playbook
hosts: localhost
tasks:
- name: create a cloudformation stack
amazon.aws.cloudformation:
stack_name: "ansible-cloudformation"
state: "present"
region: "us-east-1"
disable_rollback: true
tags:
Stack: "ansible-cloudformation"
Mitigation / Fix
---
- name: Example playbook
hosts: localhost
tasks:
- name: create a cloudformation stack
amazon.aws.cloudformation:
stack_name: "ansible-cloudformation"
state: "present"
region: "us-east-1"
disable_rollback: true
template: "files/cloudformation-example.json"
template_parameters:
KeyName: "jmartin"
DiskType: "ephemeral"
InstanceType: "m1.small"
ClusterSize: 3
tags:
Stack: "ansible-cloudformation"