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

Change on port does not follow lifecycle of services #4227

Closed
cordoval opened this issue Dec 9, 2015 · 5 comments
Closed

Change on port does not follow lifecycle of services #4227

cordoval opened this issue Dec 9, 2015 · 5 comments

Comments

@cordoval
Copy link

cordoval commented Dec 9, 2015

after updating the port mappings on my task definition and changed the port for my elb then i get this error after a terraform apply even though terraform plan passed.

* aws_ecs_service.test-http: InvalidParameterException: The container test-http did not have a container port 3333 defined.
    status code: 400, request id: 31637559-9e1d-11e5-af18-8d60ba3f3e52
@catsby
Copy link
Contributor

catsby commented Dec 9, 2015

Hey @cordoval – do you by chance have an example config that I could use to reproduce this? What did the plan phase show, did it correctly show a change in both the ELB and the Task Definition?

@catsby catsby added the waiting-response An issue/pull request is waiting for a response from the community label Dec 9, 2015
@cordoval
Copy link
Author

cordoval commented Dec 9, 2015

@catsby I grabbed https://github.com/alex/ecs-terraform and just change the port mappings on the .json file for the task definition. Plan passes but fails on apply.

@catsby catsby removed the waiting-response An issue/pull request is waiting for a response from the community label Dec 9, 2015
@yissachar
Copy link
Contributor

I am seeing this issue as well. I'm forced to create a new service if I want to change the port numbers on the container.

@radeksimko
Copy link
Member

Reproduced, see #4366

radeksimko added a commit to MeredithCorpOSS/terraform that referenced this issue Dec 22, 2015
@ghost
Copy link

ghost commented Apr 29, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants