Skip to content

Include placementConstraints when regenerating task definition#114

Merged
fillup merged 1 commit intosil-org:developfrom
Wyntuition:placement-constraints
Dec 18, 2017
Merged

Include placementConstraints when regenerating task definition#114
fillup merged 1 commit intosil-org:developfrom
Wyntuition:placement-constraints

Conversation

@Wyntuition
Copy link
Contributor

If you have specified placement constraints in your task definition (i.e. only deploy these to this instance), they won't get included when the task generation gets regenerated, for a new deployment. This includes them.

@fillup fillup merged commit 9f2972f into sil-org:develop Dec 18, 2017
@manhtai
Copy link

manhtai commented Dec 19, 2017

But if you don't specify any placement constraints in task definition?

I think this PR commit makes our CI failed with this error:

Parameter validation failed:
Unknown parameter in input: "placementConstraints", must be one of: family, taskRoleArn, networkMode, containerDefinitions, volumes

Master branch works fine.

Please review this again before merge it to master.

@jonashaag
Copy link

Bump?

@Wyntuition
Copy link
Contributor Author

@manhtai you're saying if you don't specify placementConstraints in your taskDefinition, you get that error, but otherwise works? In checking the ECS docs, it looks like this property is still a thing.

@jonashaag
Copy link

Problem seems to be an old version of awscli. Not sure which version you need though. Latest version works.

@manhtai
Copy link

manhtai commented Jan 4, 2018

@Wyntuition Yep
@jonashaag I've tried to upgrade awscli and it works now. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants