Missing Dynamo arn when used as linked resource
Author: mss-dielikoCreated Sep 16, 2026Updated Sep 16, 2026
Recently we ran into an issue when using cross aws-account resources like a DynamoDB table.
We 'imported' the resource using the static get (e.g. sst.aws.Dynamo.get) and linked the resource as usual. But where the resource exposes a arn-getter, the linked Resource doesn't.
Can you expose the DynamoDB arn as well please, what are your thoughts? I can use the workaround mentioned in the code docs but that feels a bit of overkill to me.
sst.config.ts:
sst.Linkable.wrap(sst.aws.Dynamo, (table) => ({
properties: {
name: table.name,
arn: table.arn, // Expose the ARN to the SDK
},
include: [
sst.aws.permission({
actions: ['dynamodb:*'],
resources: [table.arn, $interpolate`${table.arn}/*`],
}),
],
}));Thanks again
Source: anomalyco/sst