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

There is no way to run a custom shell script with AWS credentials #54

Closed
lestephane opened this issue Jan 13, 2018 · 9 comments
Closed
Labels
feature-request New feature or enhancement. May require GitHub community feedback.

Comments

@lestephane
Copy link

Motivation: I need to run a hashicorp packer command that makes use of the aws-ebs builder from a private linux agent, using an aws endpoint configured in vsts.

I've tried to use an AWS Powershell Script task, which does not work, since that task is only available for Windows agents (until Powershell.Core support is added, see #53).

I then looked at the AWS Cli task, which does not work, because that task only supports

aws <command> <subcommand>

The big gap in the AWS Tools for Team Services, is (i think) a task like

AWS Shell Script (Run a shell script using bash with aws credentials)

Which would take either a script file name or an inline script.

As a workaround for now, I could configure the aws credentials in the private linux agent statically, and mark that agent with a capability, and use the Shell Script task. But that does not feel right, as the agent might be configured by mistake to access a completely different account.

I looked at the source code, and must admit, i don't have enough knowledge of node / typescript / vsts-extensions to contribute a PR.

Thoughts?

@cameronattard
Copy link
Contributor

+1 for this approach, it's consistent with how Microsoft provide an 'Azure PowerShell script' task.

@stevejroberts stevejroberts added the feature-request New feature or enhancement. May require GitHub community feedback. label Jan 16, 2018
@stevejroberts
Copy link
Contributor

I like the idea, I'll see what the team can do.

@samattridge
Copy link

Any news on whether this is likely to be done @steveataws? This would be a really good enabler for me and my team.

@stevejroberts
Copy link
Contributor

It's still in the backlog for consideration but hasn't received any attention yet, as we've been focused on updating credentials and region settings to be more flexible. That work is coming to an end so I'll bump this up the list, maybe we can sneak something in before release :-)

@samattridge
Copy link

@steveataws That was be fantastic, thank you. Fingers crossed you get time! Any idea when the release can be expected? The credentials and region settings flexibility would also be great.

@stevejroberts
Copy link
Contributor

I can't give an exact ETA but we hope to release the credential changes in July. That gives us some time to consider what to do about shell scripts too :-)

@samattridge
Copy link

Exciting stuff @steveataws! Thanks for the update.

@stevejroberts
Copy link
Contributor

Resolving, included in v1.1.0 released Aug 2nd.

@samattridge
Copy link

This is great @steveataws! Thanks so much for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or enhancement. May require GitHub community feedback.
Projects
None yet
Development

No branches or pull requests

4 participants