Shell script to redeploy existing ec2 instance

Budget

$75.00FIXED

Client

Jian Chen Australia

Status

OpenApr 25, 2018
Hello -

Looking for a someone who can do the following in shell scripting(Bash). We are in process of moving our EC2 instance that are running in dedicated tenancy to default tenancy. We need to create and image and launch new instance but make sure to keep the same IP address and the MAC address of the network interface card.

Assume that the API Key or the EC2 instance role has full admin privileges.

Need shell functions that do below(which can be called at a later point)

1) Take input for instance-id then gather all the tags (we usually have name, cust, role), gather the security-groups attached to that instance, ENI-id(network interface ID), VPC-id, subnet-id, IP address

2) For the Network interface ID of instance-id passed, change the termination behavior so 'Delete on termination is UNCHECK' (if we check from console)

3) Shutdown the instance, make sure its in stopped state

4) Create an image of above instance, make sure image creation is in success state

5) terminate the above instance, make sure its in terminated state. Make sure the Network Interface ID still exist. If this does not exit script... THIS SHOULD EXIST AS WE MADE SURE 'DELETE ON TERMINATION' IS UNCHECKED

6) launch new instance from image created in step# 4 with all parameters gathers in step#1. One thing to note here is, we need to make sure TO attach the Network interface ID that we kept from deleting.

We need to make sure to have good error checking for each function as well as good loggin....

Skills & Expertise Required

software development 

Offer to work on this project closes in 153 days!

Submit A Proposal

Share this project with your friends



Similar Projects

Need an expert in HP/HPE

We need an experienced person in HP/HPE to do the following tasks in Pennsylvania.
Date and time will be determine by this week.

1. Install Tape Backup HP StoreEver MSL2024 configu...read more

Hourly, $14.00

Jira Cloud Add-On

1. Plugin will support Jira cloud
2. Plugin will export the following Jira objects:
- Issues
- Change History
- Sprints
- Work Flows
- Users
- Groups
- Projects
- W...read more

Fixed, $500.00

Desktop Support Level II-West Holly...

1. Work to promote excellent customer service, effective response times and provide expert insights into general support issues. Enforce quality of service guidelines for dealing with customers, compl...read more

Hourly, $10.00

funeral poems

A 2500 word article.
2000 words for the keywords:
Funeral poems
Funeral Verses
Short funeral verses, poems etc
the last 500 words to include the keywords
how to cope with the...read more

Fixed, $25.00

Fix a zimbra server after failure u...

After Zimbra upgrade from 8.7.9 to 8.8.8, process was not finished and mail server is unavailable.

Fixed, $150.00

Here are our top professional picks for you to hire

Software Engineer
software development Website Design Mobile App 
$10 /hr
India
Software Testing software development Manual Testing 
/hr
India
Machine learning engineer \ Data Scientist
software development 
$40 /hr
India
Software Developer
Customer Support Website Design WebService 
$5 /hr
India
SOFTWARE ENGINEER AND WEB DEVELOPER AND OWNER AT JANGADA'S
C Programming C++ Core Java 
$10 /hr
India
software developer
software development 
$2 /hr
India
Customer Service Email Technical Support Technical Support 
/hr
India
Web and Mobile application Developer
Website Development Responsive Web Design Mobile App Development 
$8 /hr
India
Software Developer
Python Django MongoDB 
$70 /hr
India
To view more profile join Toogit

Get Started