LoginSignup
4
2

More than 5 years have passed since last update.

AWS LAMBDA で AWS_ACCESS_KEY_ID の環境変数を使うとエラーになる

Posted at

こちらのエラーがでて、時間無駄にしてしまったのでメモ

An error occurred: ScreenshotLambdaFunction - 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 (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: XXXX).

こちら README.md にも書いてありましたね。

Credentials

We recommend using a tool like AWS Vault to manage your AWS credentials.

You must configure your AWS credentials either by defining AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environmental variables, or using an AWS profile. You can read more about this on the Serverless Credentials Guide.
```

4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2