Skip to content

How to access a plugin? #1371

Discussion options

You must be logged in to vote

If you're having timeouts, maybe have a look at adjusting the AWS_TIMEOUT environment variable - see Configuring AWS for details.

As far as using plugins, the plugins docs should cover usage. In short, it makes a new function available with the same name that you use in your config. In your case that would be awsAccount.

As a general note, since you're piping output in your particular command you'll probably need to put that in a shell script, or at least interpret it with sh (like cmd: sh -c "curl 169.254.169.254/latest/meta-data/identity-credentials/ec2/info 2>/dev/null | jq '.AccountId'"), because pipes (2> and | in your command) are shell-specific constructs.

Hope that helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@github-reader
Comment options

Answer selected by hairyhenderson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants