CreateECSService.ps1 container does not have a container port 8080 defined
Opened this issue · 2 comments
Doing the workshop on Windows 10 developer workstation.
Module-2
Creating a Service with Fargate
Creating a Service Linked Role for ECS
When run CreateECSService.ps1 get this error:
New-ECSService : The container MythicalMysfits-Service did not have a container port 8080 defined.
I don't know if it is related but earlier in the module I applied this fix from issue 132:
#132
Go the same issue and fixed it by going to Amazon ECS -> Task Definitions -> mythicalmysfitsservice -> mythicalmysfitsservice:1 -> Create New Revision -> Configure via JSON and change:
"portMappings": [],
to:
"portMappings": [
{
"hostPort": 8080,
"protocol": "tcp",
"containerPort": 8080
}
],
Than click save and ran again CreateECSService.ps1 script.
See my reply in #132 (comment)
After I fixed that and ran RegisterECSTaskDefinition.ps1
again I got a valid task definition and CreateECSService.ps1
succeeded, too.