options
is optional, defaults to an empty array
This commit is contained in:
parent
f3a63e4879
commit
419427d092
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ fi
|
||||||
# parse incoming config data
|
# parse incoming config data
|
||||||
payload=`cat`
|
payload=`cat`
|
||||||
bucket=$(echo "$payload" | jq -r '.source.bucket')
|
bucket=$(echo "$payload" | jq -r '.source.bucket')
|
||||||
options=$(echo "$payload" | jq -r '.source.options | join(" ")')
|
options=$(echo "$payload" | jq -r '.source.options // [] | join(" ")')
|
||||||
|
|
||||||
# export for `aws` cli
|
# export for `aws` cli
|
||||||
export AWS_ACCESS_KEY_ID=$(echo "$payload" | jq -r '.source.access_key_id')
|
export AWS_ACCESS_KEY_ID=$(echo "$payload" | jq -r '.source.access_key_id')
|
||||||
|
|
|
@ -17,7 +17,7 @@ fi
|
||||||
# parse incoming config data
|
# parse incoming config data
|
||||||
payload=`cat`
|
payload=`cat`
|
||||||
bucket=$(echo "$payload" | jq -r '.source.bucket')
|
bucket=$(echo "$payload" | jq -r '.source.bucket')
|
||||||
options=$(echo "$payload" | jq -r '.source.options | join(" ")')
|
options=$(echo "$payload" | jq -r '.source.options // [] | join(" ")')
|
||||||
|
|
||||||
# export for `aws` cli
|
# export for `aws` cli
|
||||||
export AWS_ACCESS_KEY_ID=$(echo "$payload" | jq -r '.source.access_key_id')
|
export AWS_ACCESS_KEY_ID=$(echo "$payload" | jq -r '.source.access_key_id')
|
||||||
|
|
Loading…
Reference in a new issue