diff --git a/group/templates/name.tpl b/group/templates/name.tpl index ad52648..ba1dd4b 100644 --- a/group/templates/name.tpl +++ b/group/templates/name.tpl @@ -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' } diff --git a/group/templates/tag.tpl b/group/templates/tag.tpl index 55cb900..4abb2de 100644 --- a/group/templates/tag.tpl +++ b/group/templates/tag.tpl @@ -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}"