aws / aws/aws-sam-cli

Feature request: AWS::Serverless::GraphQLApi EnvironmentVariables Property

Open
#7,959 1 comment 0 reactions 0 assignees View on GitHub
stage/accepted type/feature
Dominant language
Python
Stars
6.7k
Forks
1.2k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

### Describe your idea/feature/enhancement

Please add the `EnvironmentVariables` as a property on the `AWS::Serverless::GraphQLApi` resource type. Currently the only way to set this is to instead use the `AWS::AppSync::GraphQLApi` resource type.

[Serverless GraphQL Resource Type Documentation](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-graphqlapi.html#sam-resource-graphqlapi-syntax)

[AppSync GraphQL Resource Type Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appsync-graphqlapi.html#aws-resource-appsync-graphqlapi-syntax)

### Proposal

Pass through the property from the `::Serverless::` resource type -> `::AppSync::` resource type in the transform.

### Additional Details

This will allow us to add environment variables to our AppSync's JS resolvers.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.