Deploying a container on AWS with ECR and EC2
So now that we know a little bit about what a container is, some common geospatial containers that we can deploy, and some AWS services we can use to deploy, let’s walk through an example deployment:
- To create an ECR repository, click the orange Create repository button:
Figure 15.2: Creating an ECR repository
- Select either Public or Private, type in a name, and click Create repository:
Figure 15.3: Settings for repository creation
- Launch a
t2.micro
EC2 instance with Amazon Linux, a public IP address, and a security group open to0.0.0.0/32 TCP
port 8080
:
https://docs.aws.amazon.com/cli/latest/userguide/cli-services-ec2-sg.html
Once you have the security group applied, go ahead and log in to your instance using either SSH or Systems Manager. I recommend Systems Manager for simplicity: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide...