Skip to content

Commit 5e6c978

Browse files
authored
Migrate from deprecated amazon.aws.ec2 module (#81)
Use amazon.aws.ec2_instance in place of amazon.aws.ec2 as it supports role delegated access Signed-off-by: Daniel Chaffelson <[email protected]>
1 parent f8a39f3 commit 5e6c978

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

roles/infrastructure/tasks/setup_aws_compute.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
loop_control:
2222
loop_var: __infra_compute_instance_item
2323
loop: "{{ range(0, infra__dynamic_inventory_count | int ) | list }}"
24-
amazon.aws.ec2:
24+
amazon.aws.ec2_instance:
2525
region: "{{ infra__region }}"
2626
group_id: "{{ infra__aws_security_group_default_id }}"
2727
key_name: "{{ infra__public_key_id }}"
@@ -53,7 +53,7 @@
5353
- name: Create localised Utility Instance to process Downloads
5454
when: infra__create_utility_service
5555
register: __infra_utility_vm_instance
56-
amazon.aws.ec2:
56+
amazon.aws.ec2_instance:
5757
region: "{{ infra__region }}"
5858
group_id: "{{ infra__aws_security_group_default_id }}"
5959
key_name: "{{ infra__public_key_id }}"

roles/infrastructure/tasks/teardown_aws_compute.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106

107107
- name: Handle Compute Removal if Discovered
108108
when: infra__discovered_compute_inventory | count > 0
109-
amazon.aws.ec2:
109+
amazon.aws.ec2_instance:
110110
region: "{{ infra__region }}"
111111
wait: yes
112112
state: absent

0 commit comments

Comments
 (0)