Windows Authentication with gMSA for .NET Linux Containers in Amazon ECS¶
workshop
https://catalog.us-east-1.prod.workshops.aws/workshops/a6761c4f-f1f8-44e9-8455-fda420122632/en-US
lab¶
wait until CDKToolkit
bootstrap template display on cloudformation, you could logon to your windows dev EC2 with credential in Secret Manager
git clone https://github.com/aws-samples/gmsa-linux-containers-ecs.git
# has send pull request
# change cdk-dotnet\src\CdkDotnet\CdkDotnet.csproj
# 2.93.0 --> 2.130.0
$Env:AWS_DEFAULT_REGION = "us-east-1"
$Env:EC2_INSTANCE_KEYPAIR_NAME = "gmsa"
$Env:MY_SG_INGRESS_IP = "0.0.0.0"
$Env:DOMAIN_JOIN_ECS = 0
# npm --verison
# if version is lower, for example 1.4.9
# choco uninstall npm
npm install -g aws-cdk # npm upgrade
cdk --version
# cd cdk-dotnet
cdk deploy "*" --require-approval "never" --verbose
# if got cdk cli version compatibility issue
# add "npx" at the front of CLI
wiat 1 hour to deploy complete
create cloudformation stack to upgrade existing one
directory.amazon-ecs-gmsa-linux.com