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

Not able to specify task definition in ECS service with external deployment #32562

Closed
tdekoning93 opened this issue Jul 18, 2023 · 3 comments
Closed
Labels
bug Addresses a defect in current functionality. service/ecs Issues and PRs that pertain to the ecs service.

Comments

@tdekoning93
Copy link

Terraform Core Version

1.5.3

AWS Provider Version

5.8.0

Affected Resource(s)

aws_ecs_service

Expected Behavior

Possibility to supply a task definition or family to the service. This is mandatory from the console, so I wouldn't know why its not possible to run a task through Terraform. Maybe I'm doing something wrong here and just need the proper explanation, but I can't figure out how to run a task from Terraform using the aws_ecs_service resource.

Actual Behavior

TaskDefinition must be blank.

Relevant Error/Panic Output Snippet

It seems task definition was removed in this issue to make external work. I can probably deploy the service now, but how do I run a task?

https://github.com/hashicorp/terraform-provider-aws/issues/27362

Terraform Configuration Files

resource "aws_ecs_service" "mosquitto" {
name = "mosquitto"
cluster = aws_ecs_cluster.default.id
task_definition = aws_ecs_task_definition.mosquitto.arn
desired_count = 1
propagate_tags = "TASK_DEFINITION"

deployment_controller {
type = "EXTERNAL"
}
}

Steps to Reproduce

Literally putting in the mentioned config

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

No

@tdekoning93 tdekoning93 added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Jul 18, 2023
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/ecs Issues and PRs that pertain to the ecs service. label Jul 18, 2023
@tdekoning93
Copy link
Author

My bad. Its ecs_task_set

@github-actions github-actions bot removed the needs-triage Waiting for first response or review from a maintainer. label Jul 18, 2023
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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

1 participant