# Get the vpc id
- name: Get the VPC net details
ec2_vpc_net_facts:
aws_access_key: "{{ aws_access_key }}"
aws_secret_key: "{{ aws_secret_key }}"
region: "{{ aws_region }}"
filters:
is_default: "true"
register: returned_vpc
- name: The VPC id
debug:
var: returned_vpc.vpcs[0].id
There seems to be conflicting variable names and types used through out.
Is there something I'm missing in regards what filters to pass? how variables are set? their types? It all seems pretty confusing and inconsistent, what (documentation/reference) am I missing?