Configure Amazon EC2

0

Hi, I'm developing a Java web application, based on Spring boot, which stores data in a MySql DB instance (single instance). It's a "light" application, in terms of use of resources. I'm looking for a Linux virtual machine that hosts my application and which also acts as ftp server. I think a T3 EC2 instance could be the best option for my needs. I used the pricing calculator, in order to have an idea about costs, but what I don't really understand is Amazon Elastic Block Store (EBS): is it the hard disk drive?

Moreover, if i want to publish my application, in order to make it accessible from Internet, what can I do? Do I need to buy an extra "service"?

Thank you,

Andrea

A
asked a year ago222 views
1 Answer
1
Accepted Answer

Hi,

EBS is a network drive ie not local to the hardware on which EC2 runs. You would have alteast one volume attached to an EC2 instance. It has a cost beyond usage of 30 GB under free tier.

Moreover, if i want to publish my application, in order to make it accessible from Internet, what can I do? Do I need to buy an extra "service"?

It depends. If all you need is to have it accessible from the internet, make sure the instance is launched in the public subnet, assign it a static IP ie Elastic IP and configure security groups to allow only necessary traffic. There is no cost incurred for this unless the Elastic IP is not associated with the instance / or assigned to an instance which is stopped. You can have an Ephemeral Public IP dynamically assigned on launch of an instance but that changes on stop / start, hence I suggested EIP to keep the IP constant

Since you have a public facing service, you incur Data Transfer charges.

The other good to have feature might be to have a domain and FQDN pointing to the instance so that you can access via domain name rather than IP, configuring the instance behind load balancers when you have multiple instance. This would also incur additional cost but is not an immediate necessity.

--Syd

profile picture
Syd
answered a year ago
  • Hi Syd, in the pricing calculator I can't find local hard drives, so I can't understand what I have to pay for 40 GB HD. How can I verify that Elastic IP is not associated with the instance or assigned to an instance which is stopped? How can I define a domain and FQDN? Thank you

  • In Pricing calculator search for EBS or Amazon Elastic Block Store. The pricing calculator does not take in account free tier storage, so if you are sure have only one EC2 with 40 GB, you can check the pricing for 10GB (ie. 40-30)

    To verify that the Elastic IP is associated with an EC2 instance, go to AWS -> EC2 -> Elastic IP you should see something mentioned for the selected IP in the associated instance ID / private IP fields. Check the associated instance ID to confirm it's status ie running / stopped

    You can use Route53 for domain and FQDN. AWS documentation should help you to get started in this. Basically you need to buy a domain, and then created DNS records as required.

  • Hi Syd, thank you for the clarification. So, EBS is a network drive, but is there the option to have a locale drive? Thank you

  • There is an option for local drive which is termed instance store but that volume cannot be the OS volume (root volume). It's ephemeral in nature so only save data that you dont mind losing if the underlying hardware fails for some reason. Depending on the instance type you use, you may get the option to allocate multiple drives or maybe none. More details are available at - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions