You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a lambda function which is listening to dynamodb events for one of my tables. Below is a basic example of how my table and function are defined in my backend.ts file.
In the docs you are instructed to add your defined lambda functions as allow.resource(functionWithDataAccess) on the data schema.
I assume this adds permissions, which I can do via cdk, but also provides some key env variables like env.<amplifyData>_GRAPHQL_ENDPOINT and env.AWS_ACCESS_KEY_ID which seem to be needed to configure the amplify data client and perform operations on the graphql api.
It looks like I might be able to access the endpoint url via backend.data.graphqlUrl, but I am not sure where I can get access to the authorization values.
The text was updated successfully, but these errors were encountered:
Amplify CLI Version
Amplify Gen 2 ampx v1.0.4
Question
I have a lambda function which is listening to dynamodb events for one of my tables. Below is a basic example of how my table and function are defined in my backend.ts file.
In the docs you are instructed to add your defined lambda functions as
allow.resource(functionWithDataAccess)
on the data schema.I assume this adds permissions, which I can do via cdk, but also provides some key env variables like
env.<amplifyData>_GRAPHQL_ENDPOINT
andenv.AWS_ACCESS_KEY_ID
which seem to be needed to configure the amplify data client and perform operations on the graphql api.It looks like I might be able to access the endpoint url via
backend.data.graphqlUrl
, but I am not sure where I can get access to the authorization values.The text was updated successfully, but these errors were encountered: