Skip to content

Commit 89789c6

Browse files
Merge branch 'r70963-aws-profile' into r70963-aws-profile-PR-devel
2 parents 928a492 + 9f2bf80 commit 89789c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

roles/_exit/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# If we are operating on an AWS ASG then resume autoscaling.
33
- name: Enable all autoscale processes on ASG.
44
ansible.builtin.command: >
5-
aws autoscaling resume-processes --auto-scaling-group-name {{ aws_asg.name }} --region {{ aws_asg.region }}
5+
aws --profile {{ boto_profile }} autoscaling resume-processes --auto-scaling-group-name {{ aws_asg.name }} --region {{ aws_asg.region }}
66
delegate_to: localhost
77
when:
88
- aws_asg.name is defined

roles/_init/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
# @TODO - the autoscaling_group module can do this - https://docs.ansible.com/ansible/latest/collections/amazon/aws/autoscaling_group_module.html
159159
- name: Disable autoscale processes on ASG.
160160
ansible.builtin.command: >
161-
aws autoscaling suspend-processes --auto-scaling-group-name {{ aws_asg.name }} --scaling-processes {{ aws_asg.suspend_processes }} --region {{ aws_asg.region }}
161+
aws --profile {{ boto_profile }} autoscaling suspend-processes --auto-scaling-group-name {{ aws_asg.name }} --scaling-processes {{ aws_asg.suspend_processes }} --region {{ aws_asg.region }}
162162
delegate_to: localhost
163163
when:
164164
- aws_asg.name is defined

0 commit comments

Comments
 (0)