AWS Lightsail
AWS Lightsail
Main console:
https://us-east-2.console.aws.amazon.com/lightsail/webapp/home/instances
Docker containers: You purchase a Lightsail container service (serverless option) (that can hold up to 10 containers simultaneously). This is an additional and different purchase from the Lightsail server.
Next Steps:
- You create the Docker containers on your box.
- Then install AWS CLI (purpose is to push containers to the proper spot) using commands from AWS in your Powershell.
- Restart your Powershell (since only really loads things on startup)
- aws update
- aws --version (to check all happy. I saw aws-cli/2.36.31 Python/3.14.6 Windows/11 script-exe/AMD64 )
- docker images (to get REPOSITORY names and IMAGE names for all the docker images you want to push)
- download and install the AWS Lightsail EXE from https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-install-software.html
- aws configure (to give access key and secret key for the session) (from https://us-east-1.console.aws.amazon.com/iam?region=us-east-1#/security_credentials )
Push local Docker containers up:
So my docker ps was:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES4cdcbad990fc my-aspnet-api:local "dotnet CriticalView…" 21 hours ago Up 5 hours 0.0.0.0:5000->8080/tcp aspnet_backend_api
d7273173c187 my-react-ui:local "docker-entrypoint.s…" 47 hours ago Up 5 hours 0.0.0.0:5173->5173/tcp react_frontend_ui
87f30b10bfee mcr.microsoft.com/mssql/server:2025-latest "/opt/mssql/bin/laun…" 47 hours ago Up 5 hours (healthy) 0.0.0.0:1433->1433/tcp sql_server_dev
So my pushes were:
aws lightsail push-container-image --region us-east-2 --service-name container-service-1 --label my-aspnet-api --image my-aspnet-api:local
aws lightsail push-container-image --region us-east-2 --service-name container-service-1 --label my-react-ui --image my-react-ui:local
To push MSSQL, I had to change the tag first: docker tag mcr.microsoft.com/mssql/server:2025-latest my-mssql:local
but this worked:
aws lightsail push-container-image --region us-east-2 --service-name container-service-1 --label mssql-server --image my-mssql:local
However, MSSQL cannot run in the size AWS Lightsail container I have.
Lightsail Managed Database
Limitation: Lightsail Managed DB only supports MySQL and PostgreSQL, not MS SQL Server.
Important Links
UI: https://us-east-2.console.aws.amazon.com/lightsail/webapp/home/instances
Command Line of My AWS Lightsail: https://us-east-2.console.aws.amazon.com/lightsail/remote/us-east-2/instances/Amazon_Linux_2023-1/terminal?protocol=ssh
Pushing Containers: https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-pushing-container-images.html
Credentials: https://us-east-1.console.aws.amazon.com/iam?region=us-east-1#/security_credentials
Comments
Post a Comment