Skip to content

Commit

Permalink
delete additional key pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
abikouo committed Feb 1, 2024
1 parent a9813d0 commit f89c274
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@
# Delete EC2 key pair
- name: Delete EC2 key pair
amazon.aws.ec2_key:
name: "{{ deploy_flask_app_sshkey_pair_name }}"
name: "{{ item }}"
state: absent
with_items: "{{ ec2_instances.instances | map(attribute='key_name') | unique | list }}"

# Delete RDS information
- name: Delete RDS instance
Expand Down

0 comments on commit f89c274

Please sign in to comment.