serverless-appsync-plugin
serverless-appsync-plugin copied to clipboard
How can I export appsync url and id?
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 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
I see it exports these values but I can't set the Export Name
. I can only see key
and value
.
Having the same trouble as @zhaoyi0113
There is a PR open for that #392
I'll merge it soon