image: tombras/amazon-ask-cli:latest
pipelines:
default:
- step:
name : Deploy Lambda Only
deployment : staging
script:
- >-
jq -n --arg access_token "${ACCESS_TOKEN}"
--arg refresh_token "${REFRESH_TOKEN}"
--arg expires_at "${EXPIRES_AT}"
--arg vendor_id "${VENDOR_ID}"
--arg aws_profile "${AWS_PROFILE}"
'{
"profiles": {
"default": {
"token": {
"access_token": $access_token,
"refresh_token": $refresh_token,
"token_type": "bearer",
"expires_in": 3600,
"expires_at": $expires_at
},
"vendor_id": $vendor_id,
"aws_profile": $aws_profile
}
}
}' > /home/node/.ask/cli_config
- printf "[${AWS_PROFILE}]\naws_access_key_id=${AWS_ACCESS_KEY}\naws_secret_access_key=${AWS_SECRET_ACCESS_KEY}" > /home/node/.aws/credentials
- ask deploy -t lambda --force
Content type
Image
Digest
Size
83.5 MB
Last updated
over 6 years ago
docker pull tombras/amazon-ask-cli