cloudformation_stack_set
Manage groups of CloudFormation stacks
Collection: community.aws
Full Name: community.aws.cloudformation_stack_set
Synopsis
Manage groups of CloudFormation stacks
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| accounts | list | |||
| administration_role_arn | str | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| capabilities | list | |||
| debug_botocore_endpoint_logs | bool | false | ||
| description | str | |||
| endpoint_url | str | |||
| execution_role_name | str | |||
| failure_tolerance | dict | map[] | ||
| name | str | yes | ||
| parameters | dict | map[] | ||
| profile | str | |||
| purge_stacks | bool | true | ||
| region | str | |||
| regions | list | |||
| secret_key | str | |||
| session_token | str | |||
| state | str | present | ||
| tags | dict | |||
| template | path | |||
| template_body | str | |||
| template_url | str | |||
| validate_certs | bool | true | ||
| wait | bool | false | ||
| wait_timeout | int | 900 |
Example
yaml
- name: Create a stack set with instances in two accounts
community.aws.cloudformation_stack_set:
name: my-stack
description: Test stack in two accounts
state: present
template_url: https://s3.amazonaws.com/my-bucket/cloudformation.template
accounts:
- 123456789012
- 234567890123
regions:
- us-east-1
- name: on subsequent calls, templates are optional but parameters and tags can be altered
community.aws.cloudformation_stack_set:
name: my-stack
state: present
parameters:
InstanceName: my_stacked_instance
tags:
foo: bar
test: stack
accounts:
- 123456789012
- 234567890123
regions:
- us-east-1
- name: The same type of update, but wait for the update to complete in all stacks
community.aws.cloudformation_stack_set:
name: my-stack
state: present
wait: true
parameters:
InstanceName: my_restacked_instance
tags:
foo: bar
test: stack
accounts:
- 123456789012
- 234567890123
regions:
- us-east-1
- name: Register new accounts (create new stack instances) with an existing stack set.
community.aws.cloudformation_stack_set:
name: my-stack
state: present
wait: true
parameters:
InstanceName: my_restacked_instance
tags:
foo: bar
test: stack
accounts:
- 123456789012
- 234567890123
- 345678901234
regions:
- us-east-1