Don't parse AWS credentials from VCAP_SERVICES in run_app_paas

AWS credentials are provided in the environment variables directly,
so we don't need to parse them from VCAP_SERVICES
This commit is contained in:
Alexey Bezhan
2018-01-09 10:45:03 +00:00
parent d82801fa5d
commit 40c27c6e70
-3
View File
@@ -22,9 +22,6 @@ function configure_aws_logs {
aws configure set plugins.cwlogs cwlogs
export AWS_ACCESS_KEY_ID=$(echo ${VCAP_SERVICES} | jq -r '.["user-provided"][]|select(.name=="notify-aws")|.credentials.aws_access_key_id')
export AWS_SECRET_ACCESS_KEY=$(echo ${VCAP_SERVICES} | jq -r '.["user-provided"][]|select(.name=="notify-aws")|.credentials.aws_secret_access_key')
cat > /home/vcap/app/awslogs.conf << EOF
[general]
state_file = /home/vcap/logs/awslogs-state