-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Hi
Trying to lunch t2.micro but failing with:
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>680064e3-9618-4a40-9b90-2d80487bbd74</RequestID></Response>
config file:
EC2_LAUNCH_CONFIGS = {
't2.micro': {
'description': 'Ubuntu trusty64.',
# Ami ID (E.g.: ami-fb665f8f)
'ami': 'ami-<id>',
# One of: m1.small, m1.large, m1.xlarge, c1.medium, c1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cc1.4xlarge, t1.micro
'instance_type': 't2.micro',
# List of security groups
'security_groups': ['default'],
'subnet' : 'subnet-<id>',
# Use the ``list_regions`` task to see all available regions
'region': DEFAULT_REGION,
# The name of the key pair to use for instances (See http://console.aws.amazon.com -> EC2 -> Key Pairs)
'key_name': 'raidkey',
# The availability zone in which to launch the instances. This is
# automatically prefixed by ``region``.
'availability_zone': 'a',
#Subnet id
# Tags to add to the instances. You can use the ``ec2_*_tag`` tasks or
# the management interface to manage tags. Special tags:
# - Name: Should not be in this dict. It is specified when launching
# an instance (needs to be unique for each instance).
# - awsfab-ssh-user: The ``awsfab`` tasks use this user to log into your instance.
'tags': {
'awsfab-ssh-user': 'ubuntu',
},
'user_data': user_data_example
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels