" target type instance, which is incompatible with...
# aws
m
" target type instance, which is incompatible with the awsvpc network mode specified in the task definition" , i got this issue when deploying ecs EC2 launch type , why its come when using network mode awsvpc ?
l
From the AWS documentation:
Services with tasks that use the awsvpc network mode only support Application Load Balancer and Network Load Balancer. When you create any target groups for these services, you must choose ip as the target type. Do not use instance. This is because tasks that use the awsvpc network mode are associated with an ENI, not with an Amazon EC2 Linux instance. For more information, see Service load balancing.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking-awsvpc.html This is not related to Pulumi.
Update your target group types to
ip
. If you're not specifying it, it's
instance
, so you need to add it and set it to
ip
. https://www.pulumi.com/registry/packages/aws/api-docs/lb/targetgroup/#targettype_nodejs
m
thanks for response