From 00b0e9aaa55c9fdd3bc7b57da90dbf14ccfc0284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Cor=C3=A9?= Date: Tue, 8 Oct 2024 13:31:21 +0200 Subject: [PATCH] IAM: Retry cloudformation by deleting it 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. --- playbooks/roles/infra-aws-sandbox/tasks/iam.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/playbooks/roles/infra-aws-sandbox/tasks/iam.yml b/playbooks/roles/infra-aws-sandbox/tasks/iam.yml index 0f1672e..93a57d9 100644 --- a/playbooks/roles/infra-aws-sandbox/tasks/iam.yml +++ b/playbooks/roles/infra-aws-sandbox/tasks/iam.yml @@ -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