Shell script to redeploy existing ec2 instance

Budget

$75.00FIXED

Client

Jian Chen Australia

Status

ExpiredApr 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 

Project closed for bidding!



Share this project with your friends



Similar Projects

Mortgage Calculator Development

I need some help creating some new mortgage calculators, as well as updating an existing mortgage calculator.

Hourly, $18.00

Need a bot created

I need someone to make a bot that will automatically check me in for SW flights. I give the bot my confirmation number, name, and desired check-in time, and then it automatically checks me in even if...read more

Fixed, $100.00

Shopify store edits

I need someone to make some quick edits to my store. I need the background color of my store page to be changed. And pictures on my homepage to be resized and repositioned.

Hourly, $5.00

Clickfunnel SMTP Integration to GSu...

I need someone to take my gmail business suite email address and integrate it into the clickfunnel platform and integrate it with SMTP so that I can use clickfunnels to send out my emails through my g...read more

Fixed, $35.00

A disk read error occured

I received the following message on my computer. Need help on removing this and access my computer

message reads

a disk read error occured
press ctrl+alt+del to restart

Hourly, $5.00

Here are our top professional picks for you to hire

Software Architect
NodeJS Software Architecture software development 
$60 /hr
India
Program Manager
Blockchain IIoT Project Management 
$17 /hr
India
MUMPS DEVELOPER
software development 
$17 /hr
India
Expert Responsive Emails, Newsletter Templates, Mailchimp, CC, CM
HTML Newsletter Email Design PSD to MailChimp 
$20 /hr
India
email marketing Lead Generation Web Scraping 
/hr
India
Full Stack Developer
Website Development software development Python Developers 
$8 /hr
India
Senior software author, and French writer
software development C++ Python 
$30 /hr
France
Content writer
Content Writing English Proofreading software development 
$10 /hr
India
Web Developer | Graphic Designer | Software Developer | Data Scientist
Website Design Responsive Web Design Website Development 
$3 /hr
India
To view more profile join Toogit

Get Started