-
Notifications
You must be signed in to change notification settings - Fork 3
19._Load_Balancers
Ahmad Abdo edited this page Jun 26, 2017
·
1 revision
$ awsm listLoadBalancers --help
NAME:
awsm listLoadBalancers - List Elastic Load Balancers
USAGE:
awsm listLoadBalancers [arguments...]
ARGUMENTS:
[search] - The keyword to search for
awsm listLoadBalancers
This will list all Load Balancers, the output should look similar to this:
$ awsm listLoadBalancers
+------------------+---------+-----------+--------------------+---------------+-----------------+-----------------+---------------+---------+
| NAME | CLASS | REGION | AVAILABILITY ZONES | CREATED | SECURITY GROUPS | SCHEME | VPC | SUBNETS |
+------------------+---------+-----------+--------------------+---------------+-----------------+-----------------+---------------+---------+
| php-vpc | | us-west-2 | us-west-2a | 3 years ago | php-vpc-elb | internet-facing | us-west-2-vpc | Public |
| mysql-vpc | | us-west-2 | us-west-2a | 2 years ago | mysql | internal | us-west-2-vpc | Private |
| kibana | | us-west-2 | us-west-2a | 2 years ago | all, default | internal | us-west-2-vpc | Private |
| syslog | | us-west-2 | us-west-2a | 2 years ago | syslog | internet-facing | us-west-2-vpc | Public |
| elasticpress-vpc | | us-west-2 | us-west-2a | 1 year ago | elasticsearch | internal | us-west-2-vpc | Private |
| webhook-vpc | | us-west-2 | us-west-2a | 10 months ago | webhook-vpc-elb | internet-facing | us-west-2-vpc | Public |
| php-vpc | | us-east-1 | us-east-1a | 3 years ago | php-vpc-elb | internet-facing | us-east-1-vpc | Public |
| rr-vpc | | us-east-1 | us-east-1a | 3 years ago | rr-vpc-elb | internet-facing | us-east-1-vpc | Public |
| media-vpc | | us-east-1 | us-east-1a | 3 years ago | media | internet-facing | us-east-1-vpc | Public |
| rr-private | | us-east-1 | us-east-1a | 3 years ago | rr-vpc-elb | internal | us-east-1-vpc | Private |
| mysql-vpc | | us-east-1 | us-east-1a | 2 years ago | mysql | internal | us-east-1-vpc | Private |
| elasticpress-vpc | | us-east-1 | us-east-1a | 1 year ago | elasticsearch | internal | us-east-1-vpc | Private |
| jenkins | jenkins | us-east-1 | us-east-1a | 3 weeks ago | jenkins | internet-facing | us-east-1-vpc | Public |
| php-vpc | | eu-west-1 | eu-west-1a | 3 years ago | php-vpc-elb | internet-facing | eu-west-1-vpc | Public |
| mysql-vpc | | eu-west-1 | eu-west-1a | 2 years ago | mysql | internal | eu-west-1-vpc | Private |
| elasticpress-vpc | | eu-west-1 | eu-west-1a | 1 year ago | elasticsearch | internal | eu-west-1-vpc | Private |
+------------------+---------+-----------+--------------------+---------------+-----------------+-----------------+---------------+---------+
$ awsm createLoadBalancer --help
NAME:
awsm createLoadBalancer - Create a Load Balancer
USAGE:
awsm createLoadBalancer [arguments...]
ARGUMENTS:
class - The class of the load balancer groups to create
region - The region to create the load balancer in
awsm createLoadBalancer prod us-west-2
This will create a Load Balancer using the prod
class , the output should look similar to this:
$ awsm createLoadBalancer prod us-west-2
✓ Found Load Balancer Class Configuration for [prod]!
✓ Created Load Balancer [prod-996765612.us-west-2.elb.amazonaws.com] named [prod] in [us-west-2]!
$ awsm updateLoadBalancers --help
NAME:
awsm updateLoadBalancers - Update Load Balancers
USAGE:
awsm updateLoadBalancers [arguments...]
ARGUMENTS:
search - The search term of the load balancers to update
[region] - The region to update the load balancers in (optional)
awsm updateLoadBalancers prod
This will update the Load Balancer matching the name prod
, the output should look similar to this:
$ awsm updateLoadBalancers prod
+------+-------+-----------+--------------------+-----------+-----------------+-----------------+---------------+---------+
| NAME | CLASS | REGION | AVAILABILITY ZONES | CREATED | SECURITY GROUPS | SCHEME | VPC | SUBNETS |
+------+-------+-----------+--------------------+-----------+-----------------+-----------------+---------------+---------+
| prod | prod | us-west-2 | us-west-2a | 1 day ago | prod | internet-facing | us-west-2-vpc | Public |
+------+-------+-----------+--------------------+-----------+-----------------+-----------------+---------------+---------+
△ Comparing awsm Load Balancer configuration...
△ [prod us-west-2] - Add - [TCP:22 - TCP:22]
✓ Comparison complete!
▶ Are you sure you want to update these Load Balancers?
◀ y
✓ Done!
$ awsm deleteLoadBalancers --help
NAME:
awsm deleteLoadBalancers - Delete Load Balancer(s)
USAGE:
awsm deleteLoadBalancers [arguments...]
ARGUMENTS:
search - The search term for the load balancer to delete
[region] - The region to create the load balancer in
awsm deleteLoadBalancers prod
This will delete KeyPairs matching the name awsm
, the output should look similar to this:
$ awsm deleteLoadBalancers prod
+------+-------+-----------+--------------------+-----------+-----------------+-----------------+---------------+---------+
| NAME | CLASS | REGION | AVAILABILITY ZONES | CREATED | SECURITY GROUPS | SCHEME | VPC | SUBNETS |
+------+-------+-----------+--------------------+-----------+-----------------+-----------------+---------------+---------+
| prod | prod | us-west-2 | us-west-2a | 1 day ago | prod | internet-facing | us-west-2-vpc | Public |
+------+-------+-----------+--------------------+-----------+-----------------+-----------------+---------------+---------+
▶ Are you sure you want to delete these Load Balancers?
◀ y
△ Deleted Load Balancer [prod] in [us-west-2]!
✓ Done!