diff --git a/plugins/modules/cloudformation_stack_set.py b/plugins/modules/cloudformation_stack_set.py index bc5c757dc90..b7e21463eab 100644 --- a/plugins/modules/cloudformation_stack_set.py +++ b/plugins/modules/cloudformation_stack_set.py @@ -182,9 +182,11 @@ description: Test stack in two accounts state: present template_url: https://s3.amazonaws.com/my-bucket/cloudformation.template - accounts: [1234567890, 2345678901] + accounts: + - 123456789012 + - 234567890123 regions: - - us-east-1 + - us-east-1 - name: on subsequent calls, templates are optional but parameters and tags can be altered community.aws.cloudformation_stack_set: @@ -195,9 +197,11 @@ tags: foo: bar test: stack - accounts: [1234567890, 2345678901] + accounts: + - 123456789012 + - 234567890123 regions: - - us-east-1 + - us-east-1 - name: The same type of update, but wait for the update to complete in all stacks community.aws.cloudformation_stack_set: @@ -209,7 +213,26 @@ tags: foo: bar test: stack - accounts: [1234567890, 2345678901] + 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 """