Migrating .NET Classic Applications to Amazon ECS Using Windows Containers¶
start from¶
- initiate-ec2-windows-dev-environment
- clone repo
- open vs2022
lab walkthrough¶
- windows 2019 base AMI
- assign instance profile
- install microsoft edge
- ../../CLI/windows/docker-on-windows
- install ms-visual-studio
- download 4.5.2 sdk
- restart ms vs 2022
- open solution explorer
- change Dockerfile (../../../../dotnet-core-and-framework)
- right click project AWSECSSample, Add Docker support
- start debugging, Container (Dockerfile)
- you will see docker image from cli
- install awscli on windows
- upload docker image to ECS
- download cloudformation (../../git-attachment/aspnetwincontainer.json)
- need windows 2019 AMI (Windows_Server-2019-English-Full-ECS_Optimized-) (git/git-mkdocs/CLI/awscli/ecs-cmd)
- assign public subnet
refer¶
another ecs github
https://github.com/aws-samples/ecs-refarch-cloudformation-windows