Shell script to redeploy existing ec2 instance

Budget

$75.00FIXED

Client

Jian Chen Australia

Status

DeletedApr 1, 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

Plesk Ubuntu server not sending/rec...

Hello, my Plesk back Ubuntu server is not sending emails using Outlook or iPhone. It was sending email from mail.domain.com (and this is the server URL in Plesk). Now if i change to another domain, li...read more

Fixed, $10.00

Network Admin to Configure AD Role...

Hello, we have one server running Windows 2016 Server, this server is running an SQL DB. We have a network of four computers, now we would like to make the network more secure and we think of implemen...read more

Fixed, $100.00

PR and marketing for ICO launch.

Hey Guys,

I am after someone who can assist me with PR amd Marketing for my ICO launch.

Thanks!

Fixed, $11.00

Need an assistant for expanding my...

Hey there,
I am currently in the growing phase of two businesses:
one real estate investment company and one natural weight loss company for mummies. There are many exciting tasks that need t...read more

Fixed, $8.00

Executive coach needed (3 hours / w...

Hi there!

I'm looking for an executive coach who can help me during the week 1/2 hour each day. MUST speak English.

We'll be on video chat or the phone 1/2 hour each day at a regular...read more

Fixed, $9.00

Need a on-going creative writer for...

Hi

I do have a one-year-old Facebook page, and I would need to prepare FB posts containing small articles and congrats messages for my successful students along with their score report.
<...read more

Fixed, $6.00