mirror of
https://github.com/trailofbits/algo.git
synced 2025-09-03 02:23:39 +02:00
EC2 credentials fix
This commit is contained in:
parent
84a7ff79a4
commit
8712dcb566
2 changed files with 6 additions and 6 deletions
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
- name: Deploy the template
|
- name: Deploy the template
|
||||||
cloudformation:
|
cloudformation:
|
||||||
aws_access_key: "{{ aws_access_key | default(lookup('env','AWS_ACCESS_KEY_ID'), true)}}"
|
aws_access_key: "{{ access_key }}"
|
||||||
aws_secret_key: "{{ aws_secret_key | default(lookup('env','AWS_SECRET_ACCESS_KEY'), true)}}"
|
aws_secret_key: "{{ secret_key }}"
|
||||||
stack_name: "{{ stack_name }}"
|
stack_name: "{{ stack_name }}"
|
||||||
state: "present"
|
state: "present"
|
||||||
region: "{{ algo_region }}"
|
region: "{{ algo_region }}"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
- name: Check if the encrypted image already exist
|
- name: Check if the encrypted image already exist
|
||||||
ec2_ami_facts:
|
ec2_ami_facts:
|
||||||
aws_access_key: "{{ aws_access_key | default(lookup('env','AWS_ACCESS_KEY_ID'), true)}}"
|
aws_access_key: "{{ access_key }}"
|
||||||
aws_secret_key: "{{ aws_secret_key | default(lookup('env','AWS_SECRET_ACCESS_KEY'), true)}}"
|
aws_secret_key: "{{ secret_key }}"
|
||||||
owners: self
|
owners: self
|
||||||
region: "{{ algo_region }}"
|
region: "{{ algo_region }}"
|
||||||
filters:
|
filters:
|
||||||
|
@ -12,8 +12,8 @@
|
||||||
|
|
||||||
- name: Copy to an encrypted image
|
- name: Copy to an encrypted image
|
||||||
ec2_ami_copy:
|
ec2_ami_copy:
|
||||||
aws_access_key: "{{ aws_access_key | default(lookup('env','AWS_ACCESS_KEY_ID'), true)}}"
|
aws_access_key: "{{ access_key }}"
|
||||||
aws_secret_key: "{{ aws_secret_key | default(lookup('env','AWS_SECRET_ACCESS_KEY'), true)}}"
|
aws_secret_key: "{{ secret_key }}"
|
||||||
encrypted: yes
|
encrypted: yes
|
||||||
name: algo
|
name: algo
|
||||||
kms_key_id: "{{ kms_key_id | default(omit) }}"
|
kms_key_id: "{{ kms_key_id | default(omit) }}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue