-
Notifications
You must be signed in to change notification settings - Fork 80
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
feature(run-task): add run-task command #35
Conversation
Thanks @codingdiaz, I'm excited for this! Could you add a job that wraps this command too? Would you be able to also add an example for this under |
@lokst of course. I’ll do that today. I also didn’t know if an environment variable should be set or if I should handle any of the output from the run command. There are some times where the command runs fine but a task is never launched. I also was unsure how to implement polling of a task. I was thinking just a job that gets the status every 30 seconds or so. What do you think? |
@lokst I updated this PR to include a I was slightly unsure what to put for the version of this orb in my examples since it will be a future release. I was unsure if automation updates that on new releases. |
src/orb.yml.hbs
Outdated
task-definition: "myapp" | ||
awsvpc: true | ||
subnet-ids: "subnet-70faa93b,subnet-bcc54b93" | ||
security-group-ids: "sg-010a460f7f442fa75" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 Surely both of these values should be stubbed out and be required to have "real" values injected at runtime?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm what do you mean @sgerrand ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 Apologies. I should have been clearer in my previous comment.
I meant that the values for the keys in this step (e.g. subnet-ids
and security-group-ids
) are using "real" values. Other examples in this file are using variables for substitution–perhaps this should use the same approach?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean for example:
subnet-ids: $SUBNET_ONE, $SUBNET_TWO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the real values are helpful as an example of what typical values would look like. Perhaps something like this would be nice?
# e.g. "subnet-70faa93b,subnet-bcc54b93"
subnet-ids: $SUBNET_ONE, $SUBNET_TWO
# e.g. "sg-010a460f7f442fa75"
security-group-ids: $SECURITY_GROUP_IDS
@codingdiaz Thanks for the updates! For the examples you could also use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codingdiaz This looks great! Could you review my suggestions?
Hey @lokst I incorporated those comment, thanks! Anything else that should be changed for this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codingdiaz This looks almost ready to be merged! Could you review my comment and also merge the latest changes from master
again?
@codingdiaz Your changes are now published in |
#10
This wraps
aws ecs run-task
with basic logic. I would love to work to get this merged (can update change / write tests etc.) I know of a couple teams that also want this functionality.I can also add examples.