gpasse
gpasse

Reputation: 4489

Serverless deploy error provisionning stack

When I try to deploy my application on AWS, I get the following error :

An error occurred while provisioning your stack: HelloLambdaFunction - Lambda was unable to configure your environment variables because the environment variables you have provided contains reserved keys that are currently not supported for modification. Reserved keys used in this request: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY.

My AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY are stored in env.yml and I access them using process.env.AWS_ACCESS_KEY_ID

How can I fix this error ?

Upvotes: 5

Views: 4930

Answers (1)

catbadger
catbadger

Reputation: 1832

I would try removing those keys from the config and see what happens.

Upvotes: 5

Related Questions