-
name: Gather EC2 Snapshot Info
ec2_snapshot_info:
filters:
“tag:Name”: fortune
register: snap -
name: AMI registration from EBS Snapshot
ec2_ami:
name: fortune
state: present
architecture: x86_64
virtualization_type: hvm
root_device_name: /dev/xvda
device_mapping: -
device_name: /dev/xvda
volume_size: 8
snapshot_id: “{{ snap.snapshot_id }}”
volume_type: gp2
delete_on_termination: true
register: ami
I’m receiving this error.
The task includes an option with an undefined variable. The error was: ‘dict object’ has no attribute 'snapshot_id
I believe is has something to do with my variable. Anyone have an idea?