Skip to content

fix(tags): updating ops-cli to always include tags - #20

Merged
bassrock merged 1 commit into
masterfrom
fix-deploy-update
Jun 21, 2023
Merged

fix(tags): updating ops-cli to always include tags#20
bassrock merged 1 commit into
masterfrom
fix-deploy-update

Conversation

@bassrock

Copy link
Copy Markdown
Contributor

Goals

Web repo feature deploys have been failing for a while after a first deploy with the following error:

panic: error registering the latest deployment, ClientException: Tags can not be empty.
	status code: 400, request id: 086d2bff-fd72-41d5-9d3e-9e422884b62f

This is because ops-cli needs to register a new task definition on a branch update that duplicates the original creation. AWS however during this creation will not allow an empty tags array.

The command where we grab the old task via RegisterTaskDefintion used to return Tags that were on the Task Definition by default. At some point it appears AWS changed this defintion and now it states:

> Determines whether to see the resource tags for the task definition. If TAGS is specified, the tags are included in the response. If this field is omitted, tags aren't included in the response.

To solve for this we now specifically request them

@bassrock
bassrock marked this pull request as ready for review June 21, 2023 04:20
@bassrock

Copy link
Copy Markdown
Contributor Author

Tested on https://github.com/Pocket/Web/pull/4568

@bassrock
bassrock requested a review from a team June 21, 2023 04:20
@bassrock
bassrock merged commit 2e32987 into master Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants