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 218 days!

Submit A Proposal

Share this project with your friends



Similar Projects

Installation of Chrome extension us...

I have a .crx file which needs to be installed to users. Preferable it would be ideal to have a MSI or EXE file which can be created which can be then run on individual's machines and the Chrome exten...read more

Fixed, $18.00

QR code app development

I have a current nodejs app. When I put in some photos (.jpg) or videos (.mp4) into a folder in the app, it will display out to users. Users can email the photos or videos to themselves. I need to add...read more

Fixed, $18.00

I need a .NET Programmer

I have a erp small bug fixing needed

Fixed, $20.00

Crestron Home A/V Programmer

I have various Crestron related programming tasks I need from time to time. Building scenes, new GUI adjustments, adding devices to system, etc.

Fixed, $20.00

Configure SIP on cisco ip phone

I need a config file for cisco 7942g phones to connect to sip on Twilio

Fixed, $400.00

Here are our top professional picks for you to hire

Software Engineer
mysql Java CPP Programming 
$3 /hr
India
Software Developer
Java Python Scala 
$20 /hr
India
[ Wordpress | Reactjs | Cakephp | Codeignitor | PHP | Android | Ionic ] Expert
Wordpress React JS CakePHP 
$10 /hr
India
software developer
Data Entry software development Copywriting 
$1 /hr
India
Experienced web and mobile application developer
Data Science & Analytics Mobile App Development software development 
$35 /hr
Pakistan
Software Engineer
Perl Perl Mojolicious C++ 
$10 /hr
United States
Software Developer
software development Java MySQL Programming 
$10 /hr
India
Data analyst
software development Linux Amazon Redshift 
$0 /hr
India
Software engineer
software development Software Testing Data Entry 
$20 /hr
India
To view more profile join Toogit

Get Started