# EFS module - subnet does not exist (nondefault VPC)

**URL:** <https://forum.ansible.com/t/efs-module-subnet-does-not-exist-nondefault-vpc/24717>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [June 13, 2017, 9:47pm UTC](https://forum.ansible.com/t/efs-module-subnet-does-not-exist-nondefault-vpc/24717 "2017-06-13T21:47:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Will\_Button](https://avatars.discourse-cdn.com/v4/letter/w/8e8cbc/32.png) [@Will\_Button](https://forum.ansible.com/u/Will_Button)\
**Post date:** [June 13, 2017, 9:47pm UTC](https://forum.ansible.com/t/efs-module-subnet-does-not-exist-nondefault-vpc/24717/1 "2017-06-13T21:47:37Z")

</div>

ansible - v2.3.0  
boto3 - v1.4.4

I’m trying to create an EFS share in a non-default VPC in AWS.

- name: Create EFS share  
efs:  
state: present  
name: “my\_happy\_efs\_share”  
tags:  
name: “my\_happy\_efs\_share”  
targets:
- subnet\_id: subnet-xxxxxxx  
security\_groups: [“sg-xxxxxxx”]

If I provide the subnet\_id of a a subnet in the default VPC, it works. If the subnet exists in a non-default VPC, it fails with:  
botocore.errorfactory.SubnetNotFound: An error occurred (SubnetNotFound) when calling the CreateMountTarget operation: The subnet ID ‘subnet-1173763b’ does not exist

I recall reading something about boto3 and nondefault vpcs, but can’t find it now.

Is there a work-around?

- Will
