Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to create a new instances of my stack set #52870

wants to merge 2 commits into
base: devel


None yet
2 participants
Copy link

ismferd commented Feb 22, 2019


Stack set don't create more stack instaces.

  • Bugfix Pull Request
ansible 2.7.1
  config file = /Users/ismaelfernandez/.ansible.cfg
  configured module search path = [u'/Users/ismaelfernandez/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/ismaelfernandez/Library/Python/2.7/lib/python/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 2.7.10 (default, Aug 17 2018, 17:41:52) [GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)]

Firstly, change_set and instances have been created without errors:

- name: Create a stack set with instances
    profile: "{{ boto_profile | default(omit) }}"
    name: my-stack-to-delete-jessio
    description: Create stack set
    state: present
    capabilities: CAPABILITY_IAM
    administration_role_arn: arn:aws:iam::{{ admin_account.stdout }}:role/PlatformAdministrationRole
    execution_role_name: PlatformExecutionRole
    template:  roles/stack_sets/templates/example_pre_cfn.yaml
      - eu-west-1
      parallel_percentage: 100
      fail_percentage: 40
    accounts: "{{ executors_account_id.stdout }}"

I added new account for unexpected readon my stack set was updated instead of create a new instance with the account added:

fatal: [localhost]: FAILED! => {
    "changed": false,
    "module_stderr": "Traceback (most recent call last):\n  File \"/Users/ismaelfernandez/.ansible/tmp/ansible-tmp-1541700373.86-89204874531189/\", line 113, in <module>\n    _ansiballz_main()\n  File \"/Users/ismaelfernandez/.ansible/tmp/ansible-tmp-1541700373.86-89204874531189/\", line 105, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/Users/ismaelfernandez/.ansible/tmp/ansible-tmp-1541700373.86-89204874531189/\", line 48, in invoke_module\n    imp.load_module('__main__', mod, module, MOD_DESC)\n  File \"/var/folders/tt/mlmx2kd91vs1y11my58n74s00000gn/T/ansible_cloudformation_stack_set_payload_3U73E6/\", line 669, in <module>\n  File \"/var/folders/tt/mlmx2kd91vs1y11my58n74s00000gn/T/ansible_cloudformation_stack_set_payload_3U73E6/\", line 615, in main\n  File \"/var/folders/tt/mlmx2kd91vs1y11my58n74s00000gn/T/ansible_cloudformation_stack_set_payload_3U73E6/\", line 251, in deciding_wrapper\n  File \"/Users/ismaelfernandez/Library/Python/2.7/lib/python/site-packages/botocore/\", line 320, in _api_call\n    return self._make_api_call(operation_name, kwargs)\n  File \"/Users/ismaelfernandez/Library/Python/2.7/lib/python/site-packages/botocore/\", line 623, in _make_api_call\n    raise error_class(parsed_response, operation_name)\nbotocore.errorfactory.OperationInProgressException: An error occurred (OperationInProgressException) when calling the UpdateStackInstances operation: Another Operation on StackSet arn:aws:cloudformation:eu-west-1:XXXXXXXXX:stackset/my-stack-to-delete-jessio:bfb8d800-a03b-4b28-950b-56480c7b9c85 is in progress\n",
    "module_stdout": "",
    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
    "rc": 1

I changed a little the order of code doing posible create new instances of the current change set

@ismferd ismferd changed the title I want to create a new stack set instaces I want to create a new instances of my stack set Feb 22, 2019


This comment has been minimized.

Copy link

ansibot commented Feb 22, 2019


This comment has been minimized.

Copy link

ansibot commented Feb 22, 2019

@ismferd, just so you are aware we have a dedicated Working Group for aws.
You can find other people interested in this in #ansible-aws on Freenode IRC
For more information about communities, meetings and agendas see

click here for bot help

@ansibot ansibot added the stale_ci label Mar 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.