getlift / lift

Expanding Serverless Framework beyond functions using the AWS CDK
MIT License
912 stars 111 forks source link

Can not reference table generated by contruct #282

Open richard457 opened 1 year ago

richard457 commented 1 year ago

Description

Hi, I used to reference table like this

EVENT:
    handler: EVENT.handler
    tracing: "false"
    events:
      - stream:
          type: "dynamodb"
          batchSize: 1
          startingPosition: LATEST
          arn:
            Fn::GetAtt:
              - Table
              - StreamArn
          filterPatterns:
            - eventName: [INSERT]

but now I want to reference table in Fn::GetAtt: generated by construct how can I do that?

How to Reproduce

Generate a simple project use table construct and try to reference table in event, it won't work as it is not resource :) No response

richard457 commented 1 year ago

@mnapoli do you have a recommendation on the above use case or a workaround?