# Create aws vpc peering connection between 2 different accounts

**URL:** <https://discourse.chef.io/t/create-aws-vpc-peering-connection-between-2-different-accounts/14824>\
**Category:** Chef Automate\
**Created:** [March 27, 2019, 4:53am UTC](https://discourse.chef.io/t/create-aws-vpc-peering-connection-between-2-different-accounts/14824 "2019-03-27T04:53:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahli008](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@ahli008](https://discourse.chef.io/u/ahli008)\
**Post date:** [March 27, 2019, 4:53am UTC](https://discourse.chef.io/t/create-aws-vpc-peering-connection-between-2-different-accounts/14824/1 "2019-03-27T04:53:31Z")

</div>

Hi Expert,

I am creating an aws vpc peering connection between 2 different aws accounts.  
It's ok to create it from aws cli by specifying vpc\_id, peer\_vpc\_id and peer\_vpc\_owner\_id.  
However if I try to use chef aws\_vpc\_peering\_connection, I got:

Error: Chef failed to converge: aws\_vpc\_peering\_connection[sharedservice\_peering\_connection] (no AWS object id) (provision::poc line 36) had an error: RuntimeError: Chef::Resource::AwsVpc[vpc-085c496d] does not exist! from file /Users/haoli/Downloads/my-chef-test-kwiwaonubnwuo9ck/cookbooks/provision/libraries/chef/provisioning/aws\_driver/aws\_resource.rb:129:in `get\_aws\_object'

Anybody has similiar issue and how to fix it?

Regards,

Eddie
