Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Make removal or aws prefixes more general
Browse files Browse the repository at this point in the history
Handle aws- as well as as aws:

Co-authored-by: Christopher Mundus <17323411+crashGoBoom@users.noreply.github.com>
  • Loading branch information
gilfreund and crashGoBoom authored Oct 24, 2021
1 parent 95af988 commit 536c143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/create-ebs-volume
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function create_and_attach_volume() {
instance_tags=$(
aws ec2 describe-tags \
--region $region \
--filters "Name=resource-id,Values=$instance_id" | jq -r .Tags | jq -c 'map({Key, Value})' | tr -d '[]"' | sed 's/{Key:/{Key=/g ; s/,Value:/,Value=/g ; s/{Key=aws:.*}//g ; s/,,/,/g ; s/,$//g ; s/^,//g'
--filters "Name=resource-id,Values=$instance_id" | jq -r .Tags | jq -c 'map({Key, Value})' | tr -d '[]"' | sed 's/{Key:/{Key=/g ; s/,Value:/,Value=/g ; s/{Key=aws.*}//g ; s/,,/,/g ; s/,$//g ; s/^,//g'
)

local max_attempts=10
Expand Down

0 comments on commit 536c143

Please sign in to comment.