Amith M S
Amith M S

Reputation: 183

Reference existing setup of AppSync and Cognito Auth

How can I use cloudformation to spin up new instances of AppSync(DynamoDB)? I'm using Cognito for the authentication. Is there any way to reference the existing setup to duplicate the existing schema and queries?

Upvotes: 0

Views: 54

Answers (2)

mparis
mparis

Reputation: 3683

The best option is to use the "GetIntrospectionSchema", "ListResolvers", "ListDataSources", & "ListDataSources" APIs to fetch the contents of your previously deployed API and then to transform and output those as a CFN template that you can deploy independently. Doing this would require writing a small script that uses the AWS SDK to make API calls and that then writes the results to a json/yaml file that can be deployed via CloudFormation.

Upvotes: 1

Lisa M Shon
Lisa M Shon

Reputation: 502

Unfortunately, there currently isn't a way to reference existing setup in cfn.

Upvotes: 0

Related Questions