serverless-appsync-plugin icon indicating copy to clipboard operation
serverless-appsync-plugin copied to clipboard

How can I export appsync url and id?

Open zhaoyi0113 opened this issue 3 years ago • 4 comments

I have blow configure to export GraphQlApiId on the cloudformation stack but I can't see the exported name on cloudformation stack console. What is the correct way to export the values?

resources:
  Outputs:
    GraphQlApiId:
      Value: !GetAtt GraphQlApi. GraphQlApiId
      Export:
        Name: !Join ['', ['${self:provider.stackName}', '-graphQlApiId']]

zhaoyi0113 avatar Aug 02 '20 04:08 zhaoyi0113

@zhaoyi0113 the id and urls are exported by default by the plugin here under the names GraphQlApiUrl and `GraphQlApiId``

From another stack, you should be able to access them through:

'Fn::ImportValue': GraphQlApiUrl

bboure avatar Aug 02 '20 07:08 bboure

I see it exports these values but I can't set the Export Name. I can only see key and value.

zhaoyi0113 avatar Aug 02 '20 08:08 zhaoyi0113

Having the same trouble as @zhaoyi0113

rehrumesh avatar Mar 20 '21 07:03 rehrumesh

There is a PR open for that #392

I'll merge it soon

bboure avatar Mar 20 '21 08:03 bboure