Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error creating AutoScaling Group for awsvpc network mode in ECS #5561

Open
ghost opened this issue Aug 15, 2018 · 1 comment
Open

Error creating AutoScaling Group for awsvpc network mode in ECS #5561

ghost opened this issue Aug 15, 2018 · 1 comment
Labels
bug Addresses a defect in current functionality. service/ecs Issues and PRs that pertain to the ecs service.

Comments

@ghost
Copy link

ghost commented Aug 15, 2018

This issue was originally opened by @ssarangkar as hashicorp/terraform#18674. It was migrated here as a result of the provider split. The original body of the issue is below.


Error Message:

Error creating AutoScaling Group: ValidationError: Provided Target Group 'arn:aws:elasticloadbalancing:us-west-2:**********:targetgroup/tf-20180814190421843100000001/4b*****7c2d11872' has invalid target type. Please ensure all provided Target Groups have target type of instance.

ASG Config:
resource "aws_alb_target_group" "layserbeam-web" {
port = 4010
protocol = "HTTP"
target_type = "ip"
vpc_id = "vpc-*****"

lifecycle {
create_before_destroy = true
}

health_check {
path = "/up/elb"
}

tags {
Name = "dr-prod-layserbeam"
}
}

Loadbalancer Config:
resource "aws_alb" "layserbeam-alb" {
name = "dr-layserbeam-ecs-alb"
internal = false

security_groups = ["sg-*****b0c"]
subnets = ["subnet-*****5", "subnet-6*b", "subnet-39"]
enable_deletion_protection = false
}

Task Definition has Network Mode set to awsvpc.

@radeksimko radeksimko added bug Addresses a defect in current functionality. service/ecs Issues and PRs that pertain to the ecs service. labels Sep 25, 2018
@mattcamp
Copy link

mattcamp commented May 5, 2021

Any update to this one?

I'm hitting the same thing while trying to create an autoscaling ECS service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/ecs Issues and PRs that pertain to the ecs service.
Projects
None yet
Development

No branches or pull requests

2 participants