mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-15 09:42:38 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user