# aws


12/15/2023, 2:05 PM
Hello, I'm having the problem mentioned in this issue:, when adding portName to the portMappings in the containerDefinitions. When trying to use service_connect_configuration:
InvalidParameterException: portName(port-name) does not refer to any named PortMapping in the container definitions.
When trying to use network mode
or `bridge`:
InvalidParameterException: When specifying 'host' or 'bridge' for networkMode, values for 'containerName' and 'containerPort' must be specified from the task definition.
The person who opened the issue, also had create a PR. Is there any way I could test this PR locally? Like applying a
git patch
. Or if someone has had this issue before, do know any workaround? Thanks I'm using Pulumi with typescript