Dear Tean,
I want to encrypt my EBS volume with KMS for that I used the below task.
- ec2_lc:
name: "{{ childtenantname }}-iqb-{{ ami_name }}-{{ ansible_date_time.epoch
}}"
image_id: "{{ ami_facts.images[0].image_id }}"
key_name: "{{ envrn }}-{{ region }}-eks"
security_groups: "{{ envrn }}-iqbot"
instance_type: "{{ instance_type }}"
region: "{{ region }}"
user_data: "{{ lookup('template', './roles/templates/user_data.ps1') }}"
instance_profile_name: "{{ envrn }}-{{ region }}-iqbot-profile"
state: present
instance_monitoring: true
volumes:
- device_name: /dev/sda1
volume_size: 512
volume_type: gp2
delete_on_termination: true
encrypted: true
kms_key_id: "{{ iqbot_ebs_key[\"keys\"][0][\"key_id\"] }}"
but still, it takes AWS/EBS default key. Can anyone knows how to pass our
own encryption key.
Thanks & Regards,
Jayesh D. Mahajan.
ĂˆMobile: +91 9028602679
* [email protected]
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAN5_1%2BZGGta0XxJ0yGMckBMuQxXq4XEu68-zhpXsb5M_gKsHJg%40mail.gmail.com.