Lambda Deployment failing with InvalidParameterValueException | Reserved keys used in this request:

While deploying Lambda function with Harness, you might result into below error:

Exception: 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_REGION (Service: AWSLambda; Status Code: 400; 
Error Code: InvalidParameterValueException; Request ID: xxda975-xxxx; Proxy: null) while deploying function: functionaname

This will ideally happen when you try to override any reserved variable, which doesn’t allow the modification and AWS_REGION is one of such variable and below is the list of reserved variable:

1 Like