InvalidParameterException: The container app did not have a container port 80 defined #1172
Labels
awaiting-feedback
Blocked on input from the author
kind/bug
Some behavior is incorrect or out of spec
What happened?
I am creating a fargate service based on the ECS Fargate template provided on the site.
My NodejS app uses Port 3000. If Port 80 is used, the default tempalte works fine.
However, on Port 3000, and having set the container and host port manually to 3000, doing a pulumi up causes this to occur:
InvalidParameterException: The container app did not have a container port 80 defined.
Do I need to add something else? Here's the actual part of the code where containerPort and hostPort is defined.
Example
Output of
pulumi about
CLI
Version 3.95.0
Go Version go1.21.4
Go Compiler gc
Plugins
NAME VERSION
aws 6.13.1
awsx 2.3.0
docker 4.5.0
docker 3.6.1
nodejs unknown
Host
OS darwin
Version 14.0
Arch arm64
This project is written in nodejs: executable='/Users/alvindecruz/.nvm/versions/node/v18.18.0/bin/node' version='v18.18.0'
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: