Skip to content

Commit

Permalink
Make sure we selete the instance profile
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble committed Dec 11, 2020
1 parent ed35000 commit de20395
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
name: "{{ resource_prefix }}-test-policy"
assume_role_policy_document: "{{ lookup('file','assume-role-policy.json') }}"
state: absent
create_instance_profile: yes
delete_instance_profile: yes
register: iam_removed
until: iam_removed is not failed
ignore_errors: yes
Expand All @@ -97,7 +97,7 @@
name: "{{ resource_prefix }}-test-policy-2"
assume_role_policy_document: "{{ lookup('file','assume-role-policy.json') }}"
state: absent
create_instance_profile: yes
delete_instance_profile: yes
register: iam_2_removed
until: iam_2_removed is not failed
ignore_errors: yes
Expand Down

0 comments on commit de20395

Please sign in to comment.