PARALLAX

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

NameTypeRequiredDefaultDescription
access_keystr
accountslist
administration_role_arnstr
aws_ca_bundlepath
aws_configdict
capabilitieslist
debug_botocore_endpoint_logsboolfalse
descriptionstr
endpoint_urlstr
execution_role_namestr
failure_tolerancedictmap[]
namestryes
parametersdictmap[]
profilestr
purge_stacksbooltrue
regionstr
regionslist
secret_keystr
session_tokenstr
statestrpresent
tagsdict
templatepath
template_bodystr
template_urlstr
validate_certsbooltrue
waitboolfalse
wait_timeoutint900

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
Search
    ↑ ↓ move↵ openesc close