Confirm fix

Now you can verify the changes:

Run container:

docker run -p 5106:80 -e AWS_ACCESS_KEY_ID="XXX" -e AWS_SECRET_ACCESS_KEY="YYY" -e AWS_DEFAULT_REGION="eu-west-1" northwind

Open application, go to Login page (link on the top right corner).

Login

Do not close the browser window!

Find running container:

docker container ls

This command will list all running containers:

CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                  NAMES
e51eec7a137e        northwind           "dotnet Northwind.We…"   13 seconds ago      Up 12 seconds       0.0.0.0:5106->80/tcp   thirsty_germain

Find container running northwind image and stop it:

docker stop e51eec7a137e

Run container again:

docker run -p 5106:80 -e AWS_ACCESS_KEY_ID="XXX" -e AWS_SECRET_ACCESS_KEY="YYY" -e AWS_DEFAULT_REGION="eu-west-1" northwind

Login

Enter some dummy email and password and click Log in button. button. Application works as expected.

Verify that DataProtection Key is stored in AWS Systems Manager Parameter Store

Open AWS Console and navigate to AWS Systems Manager -> Parameter Store and verify that the ASP.NET Core DataProtection Key is created and stored as new parameter in AWS Systems Manager Parameter Store.

Data protection key