Skip to content

Instantly share code, notes, and snippets.

@jackowayed
Created October 22, 2012 00:16
Show Gist options
  • Save jackowayed/3929053 to your computer and use it in GitHub Desktop.
Save jackowayed/3929053 to your computer and use it in GitHub Desktop.
myth3:~/144/ec2_script $ ./setup_ec2.sh [0]
Checking if an VPC already existed in your account ....
Using existing VPC ID: vpc-d0d892bb, 10.0.0.0/16
Checking if an Internet Gateway aleady existed in your account ...
igw-aed892c5
Using existing Internet Gateway ID: igw-aed892c5
Associate the Internet Gateway to our VPC
the Internet Gateway already attach to our VPC
Using zone us-east-1a
subet 10.0.0.0/24 exists
subet 10.0.1.0/24 exists
Setting up routing table ...
ASSOCIATION rtbassoc-83d892e8 rtb-d6d892bd subnet-b7d892dc
ASSOCIATION rtbassoc-85d892ee rtb-d6d892bd subnet-89d892e2
ROUTE igw-aed892c5 0.0.0.0/0
Setting up Security Group ...
Client.InvalidPermission.Duplicate: the specified rule "peer: 0.0.0.0/0, ICMP, type: ALL, code: ALL, ALLOW" already exists
Client.InvalidPermission.Duplicate: the specified rule "peer: 0.0.0.0/0, TCP, from port: 22, to port: 22, ALLOW" already exists
Client.InvalidPermission.Duplicate: the specified rule "peer: 0.0.0.0/0, TCP, from port: 80, to port: 80, ALLOW" already exists
Client.InvalidPermission.Duplicate: the specified rule "peer: 0.0.0.0/0, TCP, from port: 8888, to port: 8888, ALLOW" already exists
Client.InvalidPermission.Duplicate: the specified rule "peer: 0.0.0.0/0, UDP, from port: 33000, to port: 34000, ALLOW" already exists
Setting up network interfaces
Using existing network interface for management: eni-4ed99325
Using existing network interface for routing: eni-5bd99330
RETURN true
myth3:~/144/ec2_script $ ./start.sh [0]
Checking network interface settings ...
passed
Checking elastic IPs ...
Elastic IPs are 107.23.107.112, 107.23.107.134, 107.23.107.133, 107.23.107.137, 107.23.107.131
Associate elastic IPs to private IPs
Client.Resource.AlreadyAssociated: resource eni-4ed99325 and 10.0.0.100 is already associated with public address 107.23.107.137
ADDRESS eipalloc-2fde9444 eipassoc-3bde9450 eni-5bd99330 10.0.1.10
Client.Resource.AlreadyAssociated: resource eni-5bd99330 and 10.0.1.12 is already associated with public address 107.23.107.112
Client.Resource.AlreadyAssociated: resource eni-5bd99330 and 10.0.1.13 is already associated with public address 107.23.107.133
ADDRESS eipalloc-2ade9441 eipassoc-30de945b eni-5bd99330 10.0.1.14
Generate IP configuration file for lab 3
Generate routing table for lab 3
There is no running instance, check if there is stopped instance
There is no stopped instance, creating one
Client.Unsupported: The requested Availability Zone is currently constrained and we are no longer accepting new customer requests for t1/m1/c1/m2 instance types. Please retry your request by not specifying an Availability Zone or choosing us-east-1d, us-east-1e, us-east-1c.
Your EC2 Instance started now, generating ./ec2_ssh.sh ...
Now you can use ./ec2_ssh.sh to login your EC2 Instance
myth22:~/144/ec2_script $ ./setup_ec2.sh [0]
Checking if an VPC already existed in your account ....
Using existing VPC ID: vpc-d0d892bb, 10.0.0.0/16
Checking if an Internet Gateway aleady existed in your account ...
igw-aed892c5
Using existing Internet Gateway ID: igw-aed892c5
Associate the Internet Gateway to our VPC
the Internet Gateway already attach to our VPC
Using zone us-east-1d
subet 10.0.0.0/24 exists
subet 10.0.1.0/24 exists
Setting up routing table ...
ASSOCIATION rtbassoc-83d892e8 rtb-d6d892bd subnet-b7d892dc
ASSOCIATION rtbassoc-85d892ee rtb-d6d892bd subnet-89d892e2
ROUTE igw-aed892c5 0.0.0.0/0
Setting up Security Group ...
Client.InvalidPermission.Duplicate: the specified rule "peer: 0.0.0.0/0, ICMP, type: ALL, code: ALL, ALLOW" already exists
Client.InvalidPermission.Duplicate: the specified rule "peer: 0.0.0.0/0, TCP, from port: 22, to port: 22, ALLOW" already exists
Client.InvalidPermission.Duplicate: the specified rule "peer: 0.0.0.0/0, TCP, from port: 80, to port: 80, ALLOW" already exists
Client.InvalidPermission.Duplicate: the specified rule "peer: 0.0.0.0/0, TCP, from port: 8888, to port: 8888, ALLOW" already exists
Client.InvalidPermission.Duplicate: the specified rule "peer: 0.0.0.0/0, UDP, from port: 33000, to port: 34000, ALLOW" already exists
Setting up network interfaces
Using existing network interface for management: eni-4ed99325
Using existing network interface for routing: eni-5bd99330
RETURN true
myth22:~/144/ec2_script $ ./start.sh [0]
Checking network interface settings ...
passed
Checking elastic IPs ...
Elastic IPs are 107.23.107.134, 107.23.107.137, 107.23.107.112, 107.23.107.131, 107.23.107.133
Associate elastic IPs to private IPs
Client.Resource.AlreadyAssociated: resource eni-4ed99325 and 10.0.0.100 is already associated with public address 107.23.107.137
Client.Resource.AlreadyAssociated: resource eni-5bd99330 and 10.0.1.10 is already associated with public address 107.23.107.134
ADDRESS eipalloc-50de943b eipassoc-3fde9454 eni-5bd99330 10.0.1.12
Client.Resource.AlreadyAssociated: resource eni-5bd99330 and 10.0.1.13 is already associated with public address 107.23.107.133
Client.Resource.AlreadyAssociated: resource eni-5bd99330 and 10.0.1.14 is already associated with public address 107.23.107.131
Generate IP configuration file for lab 3
Generate routing table for lab 3
There is no running instance, check if there is stopped instance
There is no stopped instance, creating one
Client.Unsupported: The requested Availability Zone is currently constrained and we are no longer accepting new customer requests for t1/m1/c1/m2 instance types. Please retry your request by not specifying an Availability Zone or choosing us-east-1d, us-east-1e, us-east-1c.
Your EC2 Instance started now, generating ./ec2_ssh.sh ...
Now you can use ./ec2_ssh.sh to login your EC2 Instance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment