aws-amplify / aws-amplify/amplify-cli

support passing Amplify app ID to a Function (similar to `ENV`)

Open
#12,226 12 comments 0 reactions 0 assignees View on GitHub
feature-request functions p3
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

### Amplify CLI Version

10.8.1

### Question

The lambda function in the backed of my amplify app needs to know the amplify app id to be able to make requests to add subdomains to the app. In the cloudformation template of the lambda function, I do not see any way to pass the amplify app id. There are a few references some of which uses SSM but none is clear. I need to set the amplify app id in the environment variables of my lambda function.

Contributor guide

Open the contributing guide

Research direction

Start with the Lambda function's CloudFormation template and the existing path used to pass ENV values into functions. Check how the Amplify app ID is represented elsewhere, including the referenced SSM approach, and verify the deployed function receives the value as an environment variable.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
backend, cli, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.