From 4d6a1bc3c4eb262c643719f65651986023fc01cd Mon Sep 17 00:00:00 2001 From: Suresh Kumar Date: Thu, 27 Aug 2020 15:56:02 +0530 Subject: Add EC2Tags function --- docs-src/content/functions/aws.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs-src') 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). -- cgit v1.2.3