This message was deleted.
# getting-started
s
This message was deleted.
p
@aloof-airport-42412 I’m not AWS specialist but can you change the
targetType
to
ip
instead of
instance
?
For Target type, choose Instance or IP. 
Important: If your service’s task definition uses the awsvpc network mode (required for the AWS Fargate launch type), you must choose IP as the target type.
source: https://aws.amazon.com/premiumsupport/knowledge-center/create-alb-auto-register/
a
@prehistoric-activity-61023, trying using
ip
instead of
instance
I got another error to use instance instead of ip...
Copy code
aws:cloudformation:Stack (infer-asg):
    error: 1 error occurred:
        * creating urn:pulumi:prod.node.prod::autoscaling::awsx:x:ecs:Cluster$awsx:x:autoscaling:AutoScalingGroup$aws:cloudformation/stack:Stack::infer-asg: 1 error occurred:
        * error waiting for CloudFormation Stack (arn:aws:cloudformation:eu-west-2:195185200629:stack/infer-asg-d37817c/7e7ab960-82e0-11ec-be0b-024e4390b09a) create: failed to create CloudFormation stack, rollback requested (ROLLBACK_COMPLETE): ["The following resource(s) failed to create: [Instances]. Rollback requested by user." "Provided Target Group 'arn:aws:elasticloadbalancing:eu-west-2:195185200629:targetgroup/infer-tg-325a286/f7a9ba952ed0f504' has invalid target type. Please ensure all provided Target Groups have target type of instance. (Service: AmazonAutoScaling; Status Code: 400; Error Code: ValidationError; Request ID: 81818206-c902-49a1-bfb0-2c14f168ae52; Proxy: null)"]