Skip to content

Commit

Permalink
IAM: Retry cloudformation by deleting it
Browse files Browse the repository at this point in the history
fixes:

The error was: botocore.exceptions.ClientError: An error occurred (ValidationError) when calling the UpdateStack operation: Stack
:arn:aws:cloudformation:us-east-1:...:stack/roles/... in ROLLBACK_COMPLETE state and can not be updated.
  • Loading branch information
fridim committed Oct 8, 2024
1 parent 59cbd3f commit 00b0e9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions playbooks/roles/infra-aws-sandbox/tasks/iam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
template_body: "{{ lookup('file', 'CF-IAM.json') }}"
region: "{{ aws_region }}"
stack_name: roles
on_create_failure: DELETE
register: _cfiamrole
until: _cfiamrole is succeeded
delay: 60
Expand Down

0 comments on commit 00b0e9a

Please sign in to comment.