You can access the instance with public IPv4 address.
Later if you have purchased a domain, connect it with Route53
Public IPs will change when servers are shutdown and re-intiated.
If you want a stable IP address, use Elastic IP
Go to connect on the instance you want to connect and open SSH client tab
Follow the instructions
For security options, add an inboud rule to enable
HTTP, port 80 from your IP address.
Create an Elastic IP and associate with your EC2 instance.
Then you can login with your ssh pem file to the Elastic IP address.
Elastic IPs will stay stable even when the server is shut down.
Elastic Beanstalk wil take care of volume provisioning, load balancing and application monitoring on it's own.
This is great for web apps.
Create deafult Elastic Beanstalk after selecting the keypair and environment settings.
Setup proper role for the Elastic Beanstalk.
Had to go to IAM role settings to configure because I did not use a default role
Use the given Elastic IP from Beanstalk and same command as EC2
$ ssh -i foo.pem ec2-user@ELASTIC_IP
In Beanstalk, apps are contained in $ cd /var/app
logs are in $ cd log
The default nginx port is 5000 instead of 80.
CDN service that provides caching for image and video files.
Pros:
SSL certificates only work if it's in NA-region