AWS Unused Elastic IP charges

+2 votes

I have unassigned Elastic IP because my instance was brought down. This instance however is not release. Would I be charged for this IP if I don’t assign it to an instance

Apr 13, 2018 in Cloud Computing by brat_1
• 7,200 points
1,220 views

3 answers to this question.

+1 vote
Best answer
answered Aug 21, 2018 by Priyaj
• 58,020 points
+1 vote
The per hour charge should be around 0.005 to 0.010 per hour ie for unassigned instances. I am referring to pro rata basis.
answered Apr 13, 2018 by hemant
• 5,790 points
0 votes

Elastic IP

According to the answer from Shibashis you will be charged:

$0.005 x 24hr x 30 days = $3.60 / months / per Elastic IP address not associated with

DynamicURL

You may consider other option that does not require for an assignment of an Elastic IP.
There is a service called DynamicURL that change IP Address on A of your domain dynamically.

https://ipv4.cloudns.net/api/dynamicURL/?q=XXX...

Some services are free. You need only to set NAME SERVER of your domain.
Following are the example script to run each time an instance is started:

Wget

wget -q --read-timeout=0.0 --waitretry=5 --tries=400 \\
--background https://ipv4.cloudns.net/api/dynamicURL/?q=XXX... 

php

<?php file_get_contents('https://ipv4.cloudns.net/api/dynamicURL/?q=XXX...'); ?>

Python

#!/usr/bin/python
import urllib
page = urllib.urlopen("https://ipv4.cloudns.net/api/dynamicURL/?q=XXX...");
page.close();

Perl

#!/usr/bin/perl
my $uri = 'https://ipv4.cloudns.net/api/dynamicURL/?q=XXX...';

use IO::Socket;
my ($domain, $path) = $uri =~ m{^https://([^/]*)(.*)};
$path = '/' unless length $path;
my $sock = IO::Socket::INET->new(
    Proto => 'tcp',
    PeerAddr => $domain,
    PeerPort => '80',
) or die "can't connect to $domain\n";
my $CRLF = "\x{0d}\x{0a}";
print $sock "GET $path HTTP/1.0$CRLF$CRLF";
close($sock);

If you are behind proxy and your real IP is set in the header X-Forwarded-For you need to add &proxy=1 at the end of the DynamicURL.

answered Aug 30, 2018 by eatcodesleeprepeat
• 4,710 points

Related Questions In Cloud Computing

0 votes
1 answer

AWS: Elastic IP

Depends! Every instance comes with its own ...READ MORE

answered Jun 4, 2018 in Cloud Computing by DragonLord999
• 8,450 points
648 views
0 votes
1 answer

AWS: What is Elastic IP and Public IP?

A public IP address is assigned to ...READ MORE

answered Sep 17, 2018 in Cloud Computing by hemant
• 5,790 points
1,434 views
+2 votes
2 answers

AWS Autoscaling without Elastic load balancing

Yes, you can use Auto Scaling without ...READ MORE

answered Aug 1, 2018 in Cloud Computing by bug_seeker
• 15,510 points
10,996 views
0 votes
1 answer

Is one Elastic IP address enough for every instance that I have running?

Depends! Every instance comes with its own ...READ MORE

answered Jun 6, 2018 in Cloud Computing by brat_1
• 7,200 points
1,155 views
0 votes
1 answer

AWS: Accessing Internet without IP address

There are two ways in which instances ...READ MORE

answered Jun 8, 2018 in Cloud Computing by DragonLord999
• 8,450 points
1,605 views
0 votes
1 answer

Can someone tell if one Elastic IP address enough for every instance that I have running and would do the job?

Depends! Every instance comes with its own ...READ MORE

answered Jun 26, 2018 in Cloud Computing by brat_1
• 7,200 points
646 views
0 votes
1 answer

AWS : Elastic Cloud Compute

Choose Option A. The best way of ...READ MORE

answered Jun 27, 2018 in Cloud Computing by code_ninja
• 6,300 points
695 views
+1 vote
1 answer

what is difference between elastic IP and public IP?

IP address is used to communicate with ...READ MORE

answered Jul 12, 2018 in Cloud Computing by ArchanaNagur
• 2,360 points
22,260 views
+1 vote
3 answers

How to upload files on aws elastic beanstalk?

yes once you store it in (AWS) ...READ MORE

answered Sep 3, 2018 in Cloud Computing by bug_seeker
• 15,510 points
6,921 views
+4 votes
4 answers

AWS S3 cli isn’t working on Windows server

The error message has nothing to do ...READ MORE

answered Aug 20, 2018 in Cloud Computing by Priyaj
• 58,020 points
1,802 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP