All Projects → sebdah → Aws Ec2 Assign Elastic Ip

sebdah / Aws Ec2 Assign Elastic Ip

Licence: apache-2.0
Automatically assign Elastic IPs to AWS EC2 Auto Scaling Group instances

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Aws Ec2 Assign Elastic Ip

Aws Scalable Big Blue Button Example
Demonstration of how to deploy a scalable video conference solution based on Big Blue Button
Stars: ✭ 29 (-83.14%)
Mutual labels:  aws, ec2, autoscaling
Ecs Formation
Tool to build Docker cluster composition for Amazon EC2 Container Service(ECS)
Stars: ✭ 114 (-33.72%)
Mutual labels:  aws, ec2, autoscaling
Autospotting
Saves up to 90% of AWS EC2 costs by automating the use of spot instances on existing AutoScaling groups. Installs in minutes using CloudFormation or Terraform. Convenient to deploy at scale using StackSets. Uses tagging to avoid launch configuration changes. Automated spot termination handling. Reliable fallback to on-demand instances.
Stars: ✭ 2,014 (+1070.93%)
Mutual labels:  aws, ec2, autoscaling
Aws Sdk Perl
A community AWS SDK for Perl Programmers
Stars: ✭ 153 (-11.05%)
Mutual labels:  aws, ec2, autoscaling
Aws Workflows On Github
Workflows for automation of AWS services setup from Github CI/CD
Stars: ✭ 95 (-44.77%)
Mutual labels:  aws, ec2
Kube Aws Autoscaler
Simple, elastic Kubernetes cluster autoscaler for AWS Auto Scaling Groups
Stars: ✭ 94 (-45.35%)
Mutual labels:  aws, autoscaling
Check Reserved Instances
Compare instance reservations and running instances for AWS services
Stars: ✭ 102 (-40.7%)
Mutual labels:  aws, ec2
Deploy Strapi On Aws
Deploying a Strapi API on AWS (EC2 & RDS & S3)
Stars: ✭ 121 (-29.65%)
Mutual labels:  aws, ec2
Ladder
A general purpose extensible autoscaler for the cloud
Stars: ✭ 143 (-16.86%)
Mutual labels:  aws, autoscaling
Terraform Aws Labs
Terraform template for AWS provider ☁️
Stars: ✭ 146 (-15.12%)
Mutual labels:  aws, ec2
Replicator
Automated Cluster and Job Scaling For HashiCorp Nomad
Stars: ✭ 166 (-3.49%)
Mutual labels:  aws, autoscaling
Aws Cli Cheatsheet
☁️ AWS CLI + JQ = Make life easier
Stars: ✭ 94 (-45.35%)
Mutual labels:  aws, ec2
Rpcheckup
rpCheckup is an AWS resource policy security checkup tool that identifies public, external account access, intra-org account access, and private resources.
Stars: ✭ 91 (-47.09%)
Mutual labels:  aws, ec2
Awstaghelper
AWS bulk tagging tool
Stars: ✭ 98 (-43.02%)
Mutual labels:  aws, ec2
Content Lambda Boto3
Automating AWS with Lambda, Python, and Boto3
Stars: ✭ 91 (-47.09%)
Mutual labels:  aws, ec2
Awesome Aws
A curated list of awesome Amazon Web Services (AWS) libraries, open source repos, guides, blogs, and other resources. Featuring the Fiery Meter of AWSome.
Stars: ✭ 9,895 (+5652.91%)
Mutual labels:  aws, ec2
Awscloudformation Samples
Sample AWS CloudFormation templates
Stars: ✭ 153 (-11.05%)
Mutual labels:  aws, ec2
Terraform Aws Autoscaling
Terraform module which creates Auto Scaling resources on AWS
Stars: ✭ 166 (-3.49%)
Mutual labels:  aws, autoscaling
Aws Auto Scaling Custom Resource
Libraries, samples, and tools to help AWS customers onboard with custom resource auto scaling.
Stars: ✭ 78 (-54.65%)
Mutual labels:  aws, autoscaling
Aws Automation
AWS automation scripts and lambda functions
Stars: ✭ 81 (-52.91%)
Mutual labels:  aws, ec2

aws-ec2-assign-elastic-ip

Automatically assign Elastic IPs to AWS EC2 instances. This can be really nice in auto scaling groups were you need to communicate the external IP's to third party systems.

The script should be executed on the EC2 instance that should get assigned an Elastic IP. This is typically done as part of the instance boot process.

aws-ec2-assign-elastic-ip is idempotent and will not assign an new Elastic IP if the instance already has one.

Installation

aws-ec2-assign-elastic-ip is easiest to install via PyPI.

pip install aws-ec2-assign-elastic-ip

Configuration options

The script is configured using command line options. You can provide your AWS credentials directly on the command line, but the script also supports all boto credential config options and AWS instance profiles.

usage: aws-ec2-assign-elastic-ip [-h] [--version] [--region REGION]
                                 [--access-key ACCESS_KEY]
                                 [--secret-key SECRET_KEY] [--dry-run]
                                 [--valid-ips VALID_IPS]

Assign EC2 Elastic IP to the current instance

optional arguments:
  -h, --help            show this help message and exit
  --version             Print the Automated EBS Snapshots version and exit
  --region REGION       AWS region. Default: us-east-1
  --access-key ACCESS_KEY
                        AWS access key ID
  --secret-key SECRET_KEY
                        AWS secret access key ID
  --dry-run             Turn on dry run mode. No address will be assigned,
                        we will only print which we whould take
  --valid-ips VALID_IPS
                        A comma separated list of valid Elastic IPs.
                        You can use CIDR expressions to select ranges.
                        Valid examples:
                        - 58.0.0.0/8
                        - 123.213.0.0/16,58.0.0.0/8,195.234.023.0
                        - 195.234.234.23,195.234.234.24
  --invalid-ips INVALID_IPS
                        A comma separated list of Elastic IP ranges that
                        should NOT be used for assigning an ip.
                        You can use CIDR expressions to select ranges.
                        Valid examples:
                        - 58.0.0.0/8
                        - 123.213.0.0/16,58.0.0.0/8,195.234.023.0
                        - 195.234.234.23,195.234.234.24

The --valid-ips and --invalid-ips options require the public IPs in a comma separated sequence. E.g. 56.123.56.123,56.123.56.124,56.123.56.125.

Supported platforms

The aws-ec2-assign-elastic-ip should work fine on Linux, Mac OS X and Microsoft Windows. Please submit an issue if you have any issues with any of the platforms.

We currently support Python 2.6, 2.7 and 3.X

Required IAM permissions

We have been using the following IAM policies to be able to list and associate Elastic IPs. It allows EC2 ec2:DescribeAddresses and ec2:AssociateAddress permissions:

{
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "ec2:AssociateAddress",
        "ec2:DescribeAddresses"
      ],
      "Resource": "*"
    }
  ]
}

License

APACHE LICENSE 2.0

Copyright 2014 Skymill Solutions

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].