# VPC redefine: TypeError: string indices must be integers, not str

**URL:** <https://forum.ansible.com/t/vpc-redefine-typeerror-string-indices-must-be-integers-not-str/17810>\
**Category:** Ansible Project\
**Created:** [March 23, 2015, 9:40am UTC](https://forum.ansible.com/t/vpc-redefine-typeerror-string-indices-must-be-integers-not-str/17810 "2015-03-23T09:40:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [March 23, 2015, 9:40am UTC](https://forum.ansible.com/t/vpc-redefine-typeerror-string-indices-must-be-integers-not-str/17810/1 "2015-03-23T09:40:05Z")

</div>

Hi Everyone, I am need of help to make it work in order to add the nat instance id as gw for private subnet inside the routing table.

Here is my vpc playbook:

/tasks/vpc.yml
