sid88in / serverless-appsync-plugin

serverless plugin for appsync
MIT License
951 stars 189 forks source link

Reference DynamoDB Table Provisioned By A Different Stack? #579

Closed Scott-Allen-Mind-Gyn closed 1 year ago

Scott-Allen-Mind-Gyn commented 1 year ago

Wondering if there was a way I could add the ARN of a ddb table (which exists on the same AWS Account) to use as a datasources within AppSync.

Essentially just adding the name of a table that exists on the same AWS account gives me this error, because the resource is not provisioned within the same project. Cannot resolve variable at "custom.appSync.dataSources.3.config.tableName": Value not found at "self" source,

You can do this through the AWS AppSync UI.

I was hoping to find a way where I could just add the ARN of the ddb table in question to my datasources definition, but cannot find a way of doing this through this plugin.

Scott-Allen-Mind-Gyn commented 1 year ago

nvm this was me being silly and typo'ing stuff.