Error code 4
anthony-cervantes opened this issue · comments
Anthony Cervantes commented
Getting the following error tried with nano and small instance types as well
➜ autovpn git:(master) ./autovpn -C -r us-east-1 -k us-east-1_vpnkey.pem
Creating ec2 instance in us-east-1. This can take some time...
Traceback (most recent call last):
File "./scripts/create_ec2.py", line 69, in <module>
auto_vpn()
File "./scripts/create_ec2.py", line 54, in auto_vpn
user_data=user_data)
File "/usr/local/lib/python2.7/site-packages/boto/ec2/connection.py", line 977, in run_instances
verb='POST')
File "/usr/local/lib/python2.7/site-packages/boto/connection.py", line 1208, in get_object
raise self.ResponseError(response.status, response.reason, body)
boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>VPCResourceNotSpecified</Code><Message>The specified instance type can only be used in a VPC. A subnet ID or network interface ID is required to carry out the request.</Message></Error></Errors><RequestID>112fa4aa-383c-4511-8120-6117b6574974</RequestID></Response>
Error code 4
Dominick Krachtus commented
Remove the .pem from key name.
…On Thu, Mar 2, 2017, 08:22 Anthony Cervantes ***@***.***> wrote:
Getting the following error tried with nano and small instance types as
well
➜ autovpn git:(master) ./autovpn -C -r us-east-1 -k us-east-1_vpnkey.pem
Creating ec2 instance in us-east-1. This can take some time...
Traceback (most recent call last):
File "./scripts/create_ec2.py", line 69, in <module>
auto_vpn()
File "./scripts/create_ec2.py", line 54, in auto_vpn
user_data=user_data)
File "/usr/local/lib/python2.7/site-packages/boto/ec2/connection.py", line 977, in run_instances
verb='POST')
File "/usr/local/lib/python2.7/site-packages/boto/connection.py", line 1208, in get_object
raise self.ResponseError(response.status, response.reason, body)
boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request<?xml version="1.0" encoding="UTF-8"?><Response><Errors><Error><Code>VPCResourceNotSpecified</Code><Message>The specified instance type can only be used in a VPC. A subnet ID or network interface ID is required to carry out the request.</Message></Error></Errors><RequestID>112fa4aa-383c-4511-8120-6117b6574974</RequestID></Response>
Error code 4
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#31>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIRxhLfdQyBe_d0sZZ8Ufra6bhyBXSOaks5rhuymgaJpZM4MRNBn>
.
Anthony Cervantes commented
still the same issue
Dominick Krachtus commented
Do you have proper permissions to create instances and VPCs?
…On Thu, Mar 2, 2017, 09:05 Anthony Cervantes ***@***.***> wrote:
still the same issue
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIRxhMZc0Hui2UV1NxDsycM3ZfgXpz_iks5rhvbqgaJpZM4MRNBn>
.