How do I migrate an Amazon EC2 Instance to a different account - amazon-ec2

Currently we are hosting a customer's instance in our Amazon EC2 Account. We would like to move this to the customer's account so that the billing is transferred.
Is there an easy way to simply migrate an instance to a different Amazon Cloud account?

No, you cannot move an running instance from one account to another.
You can however create an AMI of that instance and share the AMI with the other account. Take note of "Sharing an AMI with Specific Users":
http://aws.amazon.com/articles/530

Related

Aws billing pricing shutting down server

I have a client aws account i cannot get access to and he cannot access gmail to change password. He owns an ec2 instance. I have ssh access. If i go in and shut down the server, not able to terminate, what will my monthly charges be. We have the 30g storage im sure is ebs. Owner says its either micro or medium i assume I can figure that out myself with free command
Firstly - if neither of you have access to the account, who does? As suggested in the comments you should contact AWS support to gain access to the account based on your account information.
Secondly, to your question, if the only thing running on the account is one instance with attached EBS that doesn't get any traffic, no snapshots, and no other services deployed, you would only pay for the EBS volume.
Please note that if you have programmatic access with the right privileges you can use the AWS CLI (or SDK) to terminate the instance and the EBS:
terminate-instances
--instance-ids <value>
[--dry-run | --no-dry-run]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html

How to ransfer(move) AWS EC2 instance from A account to b account but IP unchanged?

I have a instance in AWS EC2 A account,
I want to move it From AWS EC2 A account to AWS EC2 B account,
but the instance IP can not be changed,how do i do it?
Thank you.
That's not possible.
Instances cannot be moved across account boundaries, they can only be clones.
Elastic IPs also cannot be moved.
Your service should use DNS names and not be dependent on a fixed IP address.

Do I need to create an EC2 instance to remotely access my Amazon RDS instance?

Do I need to create an EC2 instance in order to remotely connect to my Amazon RDS instance?
I understand that setting up an Amazon RDS instance automagically creates an EC2 instance 'in the background'. But when looking into my EC2 console I don't see that hidden instance so I can't find the details for the public DNS or Elastic IP, neither the EC2 instance key that I need to connect through SSH.
Yes, an RDS instance creates an EC2 instance to run the database but you don't have direct access to it via ssh, which is kind of the point.
RDS is a service that is managed for you and the idea is to hide the implementation details and simply provide an endpoint to connect to from another EC2 instance. You can find the endpoint name in the EC2 console - just use this as the hostname to connect to from your application and you can treat RDS just like any other database.
Amazon need to maintain a level of control over the server in order to provide it as a service and ssh access would interfere with that. There are a few things you miss out on because of this (e.g. direct access to DB files) but these are far outweighed by having Amazon manage upgrades, backups and replication for you.

How set an amazon ec2 user to have access to a specific instance only?

How set an amazon ec2 user to have access to a specific instance only?
Can the user to whom I want to give access to a specific instance of my EC2 account be using a separate amazon ec2 account from mine?

Using Amazon EC2 as a webserver with a specific IP address

I'm trying to create a personal/professional website within a college-domain. From the university I've requested a static-IP address which is directed to a website-name "http://lastname.someuniversity.edu". I would like to setup an Amazon EC2 instance to host a website.
I know how to create/administer the website on the EC2 instance I just don't know how to get the EC2 instance to talk to the university (and vice-versa). The IT person at the university wasn't terribly helpful.
i know how to setup a local machine to run as the webserver just not how to get the Amazon EC2 instance to 'sit inside" the university.
Thanks for the help,
Will
If you want the Amazon EC2 instance "to sit inside your university" you may want to establish a VPN connection by using the Amazon Virtual Private Cloud service.
This service is still in beta, but it has been publicly available for about a year. A connection currently costs $0.05 per hour (circa $36.5 per month) and you also pay for data transfer.
Check out Amazon Virtual Private Clouds. I think it is exactly what you are asking for.
You will need to work with your "IT person" to setup a VPN connection between your premises and the EC2 cloud. In practice you will likely need to:
1) Define a subnet for your EC2 connections (ie. 10.10.10.x).
2) Build a VPN tunnel between your university and Amazon (Virtual Private Cloud).
3) Enable any routing or firewall changes at the university.
You know you've got it working when you can 'ping' the EC2 host from within your premises.
BTW, I have recently released a new service that specifically runs on Amazon EC2. About 20% of people are now asking for VPC in order to use our service (Virtual Lab Management), and so I can attest that it's a solution that has raised interest in a lot of large organizations.

Resources