Skip to content

Commit

Permalink
Merge pull request #29 from unifio/kj-update-curl
Browse files Browse the repository at this point in the history
Update curl command to use silent option
  • Loading branch information
kjonick1 authored Jan 31, 2019
2 parents db81d6c + ab9ac7f commit 9b7061e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion group/templates/name.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#cloud-config
runcmd:
- "`which aws` ec2 create-tags --region=${region} --resources `curl http://169.254.169.254/latest/meta-data/instance-id` --tags Key=Name,Value=${name_prefix}-`curl -s http://169.254.169.254/latest/meta-data/instance-id | tr -d 'i-'`"
- "`which aws` ec2 create-tags --region=${region} --resources `curl -s http://169.254.169.254/latest/meta-data/instance-id` --tags Key=Name,Value=${name_prefix}-`curl -s http://169.254.169.254/latest/meta-data/instance-id | tr -d 'i-'`"
output : { all : '| tee -a /var/log/cloud-init-output.log' }
2 changes: 1 addition & 1 deletion group/templates/tag.tpl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- "`which aws` ec2 create-tags --region ${region} --resources `curl http://169.254.169.254/latest/meta-data/instance-id` --tags Key=${key},Value=${value}"
- "`which aws` ec2 create-tags --region ${region} --resources `curl -s http://169.254.169.254/latest/meta-data/instance-id` --tags Key=${key},Value=${value}"

0 comments on commit 9b7061e

Please sign in to comment.