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

Add --enable-execute-command support (requires an aws-sdk-go version bump) #1135

Open
wants to merge 2 commits into
base: mainline
Choose a base branch
from

Conversation

knoxilla
Copy link

@knoxilla knoxilla commented Oct 3, 2021

Added support for boolean EnableExecuteCommand flag when using ecs-cli compose service commands.

Modeled on how support for ForceNewDeployment was added way back in the olden days.

Addresses #1133

I wanted to use this flag to update some existing tasks and services, so I did my best to implement it, despite not being a golang expert. I included tests for the new functionality.

The required aws-sdk-go version bump led me to regenerate mocks, revendor, update Gopkg.toml, and run dep ensure.

make and make docker-build run successfuly on my dev machine.

make docker-test comes back with no failures.

I used the generated binary to do some 'compose service create' and 'compose service up' actions, and it worked!

Hope this is a useful effort!


Enter [N/A] in the box, if an item is not applicable to your change.

Testing

  • Unit tests passed
  • Integration tests passed
  • Unit tests added for new functionality
  • Listed manual checks and their outputs in the comments (example)
  • Link to issue or PR for the integration tests:

Documentation

  • Contacted our doc writer
  • Updated our README

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

- Minimum aws-sdk-go is v1.38.66 for enable execute command support
- Updated Gopkg.toml
- 'dep ensure' boosted version to 1.40.54 despite constraint
  added to to Gopkg.toml
- Ran 'make generate'
Added support for boolean EnableExecuteCommand flag when
using `ecs-cli compose service` commands.

Modeled on how support for ForceNewDeployment was added
way back in the olden days.

Updated github.com/aws/aws-sdk-go dependency to 1.38.66
in the process and re-generated needed mocks.

Running `dep ensure` updated aws-sdk-go in Gopkg.lock
to 1.40.54 despite the constraint placed in Gopkg.toml
@christophbrejla
Copy link

Hello, are you planning to merge this at some point?

thanks

@Doctor-God
Copy link

This feature would be extremely useful. Having to use "aws ecs update-service" is kind of troublesome since tasks are already running after compose up'ing with ecs-cli. Maybe this PR could reduce number of file changes to facilitate its review?

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.

None yet

3 participants