I've configured an AWS Kinesis stream and am accessing it via a lambda function but I'm getting a typescript error on the resource saying the arn property does not exist on the type.
Then I'm accessing it in the lambda function like this:
import { Resource } from 'sst';
// failing the type check with "Property 'arn' does not exist"
const streamArn = Resource['twilio-message-stream'].arn;
My sst-env.d.ts file has this entry in the Resource interface:
I've configured an AWS Kinesis stream and am accessing it via a lambda function but I'm getting a typescript error on the resource saying the
arn
property does not exist on the type.The relevant setup in
sst.config.ts
is:Then I'm accessing it in the lambda function like this:
My
sst-env.d.ts
file has this entry in the Resource interface:which I believe should have the
arn
property and look like this:I'm not sure how the Resource is auto-generated, but I'm wondering if the
getSSTLink
function needs to includearn
in it's properties: