diff options
| author | Suresh Kumar <sureshkumar.pp@gmail.com> | 2020-08-27 15:56:02 +0530 |
|---|---|---|
| committer | Suresh Kumar <sureshkumar.pp@gmail.com> | 2020-08-27 15:56:02 +0530 |
| commit | 4d6a1bc3c4eb262c643719f65651986023fc01cd (patch) | |
| tree | dc5eaad107db87b8d8716e18a2663429f958a632 /docs-src/content/functions/aws.yml | |
| parent | 8e69d1355658f56e0ef962d10f68952077085342 (diff) | |
Add EC2Tags function
Diffstat (limited to 'docs-src/content/functions/aws.yml')
| -rw-r--r-- | docs-src/content/functions/aws.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs-src/content/functions/aws.yml b/docs-src/content/functions/aws.yml index 5648b80e..c980ff25 100644 --- a/docs-src/content/functions/aws.yml +++ b/docs-src/content/functions/aws.yml @@ -98,6 +98,18 @@ funcs: - | $ echo 'I am a {{ aws.EC2Tag "classification" "meat popsicle" }}.' | ./gomplate I am a meat popsicle. + - name: aws.EC2Tags + alias: ec2tags + description: | + Queries the AWS EC2 API to find all the tags/values [user-defined tag](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html). + pipeline: false + arguments: + examples: + - | + echo '{{ range $key, $value := aws.EC2Tags }}{{(printf "%s=%s\n" $key $value)}}{{ end }}' | ./gomplate + Description=foo + Name=bar + svc:name=foobar - name: aws.KMSEncrypt description: | Encrypt an input string with the AWS Key Management Service (KMS). |
