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'm trying to add the generated table names from the cdk construct to the appsync api as environment variables so that I can reference them in my pipeline resolvers for batch requests.
Something like this: amplifyApi.resources.cfnResources.cfnGraphqlApi.environmentVariables = { TABLENAME: amplifyApi.resources.tables["Table"].tableName };
causes circular dependencies. As there doesn't seem to be an equivalent like this:
Hey @jimjiminyjimjim,Thanks for raising this. As of now, fetching the table dynamically is not supported. We will mark it is a feature request for the team.As a workaround you can use the hard coded table name.
Amplify CLI Version
@aws-amplify/graphql-api-construct v1.1.2
Question
I'm trying to add the generated table names from the cdk construct to the appsync api as environment variables so that I can reference them in my pipeline resolvers for batch requests.
Something like this:
amplifyApi.resources.cfnResources.cfnGraphqlApi.environmentVariables = { TABLENAME: amplifyApi.resources.tables["Table"].tableName };
causes circular dependencies. As there doesn't seem to be an equivalent like this:
api.addEnvironmentVariable('EnvKey2', 'non-empty-2');
to add them after the tables / api has been created. Is there a better way to do this?
The text was updated successfully, but these errors were encountered: