How a New User Can Run Just One Container in the AWS Cloud…Maybe
Picture this, you’re a new user in the AWS Cloud and you want to run just one, single, solitary container—a package containing all the pieces needed to run your app. It might be for a few seconds, maybe the better part of an hour, perhaps even 24/7.
How do you go about it? Where do you start? What services should you use?
In this—admittedly lengthy—Twitter thread, I attempt to tackle this problem and find out a lot about containers in the AWS Cloud along the way…
I click on “Containers on AWS”
☁️ #cloud #devops
☁️ #cloud #devops
this makes it easier to understand all that’s on offer
☁️ #cloud #devops
1. AWS Fargate => “Run containers without managing servers”
2. AWS Lightsail => “Run simple containerized applications for a fixed, monthly price”
but which one?
☁️ #cloud #devops
“#Serverless compute for containers” is very promising, I’m going to scroll down to learn more
☁️ #cloud #devops
1. Build the container image
2. Define memory & CPU
3. Run & manage the application
4. Pay for what I use
☁️ #cloud #devops
☁️ #cloud #devops
um, @awscloud, is this the right place? the word “Fargate” appears NO WHERE on this page
☁️ #cloud #devops
down near the bottom there is some documentation about Fargate but nothing is “Services” or “Features”
☁️ #cloud #devops
better? still no direct link but I do see the “ECS” service from before so maybe that was correct
there are more docs and KB links this time
☁️ #cloud #devops
☁️ #cloud #devops
the blue “Get started” button takes me to this page…that says the actual word “Fargate” on it
☁️ #cloud #devops
Fargate seemed to be “give it a container & press go” & this is anything but
step 3 is “cluster”, do I have to worry about that?!??!
☁️ #cloud #devops
I click the blue “Next” button
☁️ #cloud #devops
I know have to configure a “service” and then a “cluster”
there are options here but I leave them and boldly click “Next”…
☁️ #cloud #devops
the word “cluster” is so insanely far from #serverless that I don’t want to get into it here
again, a few options that I don’t want to care about to create something I don’t want to create
“Next” for the win?
☁️ #cloud #devops
if I click the blue “Create” button at the bottom of the page, will this launch?
☁️ #cloud #devops
☁️ #cloud #devops

the launch type if “FARGATE” which at least gives me a hint that I have taken the route I wanted to
☁️ #cloud #devops
how do I contact that HTTP server? no idea
is this a container? I think but that word DOES NOT APPEAR anywhere on this page
☁️ #cloud #devops
can this container receive requests? no idea
how much did this cost? no idea
☁️ #cloud #devops
I click back up to the cluster I never wanted to create or have anything to do with & it appears that I can simply delete it
☁️ #cloud #devops
☁️ #cloud #devops
over the @awscloud Lightsail…
☁️ #cloud #devops
this is night and day from the last path I took…and yes, I realize that this is targeted at a different audience but you wouldn’t know that if you started on the “Containers on AWS” page like I did
I can learn more or “Create a container service” …not sure why the word “service” is tacked on there but, ok…
☁️ #cloud #devops
@awscloud please have this team re-design all of the consoles. this is crystal clear & user-friendly
☁️ #cloud #devops
“A deployment specifies the containers you want to launch on your container service, and their configuration.”
so, a service can be more than one container
☁️ #cloud #devops
looks like I can specify my customer container right here by clicking the “Specify a custom deployment” option
☁️ #cloud #devops
☁️ #cloud #devops
☁️ #cloud #devops
☁️ #cloud #devops
☁️ #cloud #devops
☁️ #cloud #devops
I can even change the size or domain here. though for a new domain, it does look like I’ll have to use another @awscloud service
☁️ #cloud #devops
☁️ #cloud #devops
success!
☁️ #cloud #devops
all of those prices + the console are listed as per month
however, the service actually bills per hour
you’ll need a little math to figure it out but it’s pretty cheap way to run a container
☁️ #cloud #devops
☁️ #cloud #devops
it’s worth exploring for these types of simple jobs!
/☁️ #cloud #devops
https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-creating-container-images
☁️ #cloud #devops