Sample app for aws-amplify/amplify-swift#1337
amplify add api
? Please select from one of the below mentioned services: GraphQL
? Provide API name: amplify1337
? Choose the default authorization type for the API Amazon Cognito User Pool
Using service: Cognito, provided by: awscloudformation
The current configured provider is Amazon Cognito.
Do you want to use the default authentication and security configuration? Default configuration
Warning: you will not be able to edit these selections.
How do you want users to be able to sign in? Username
Do you want to configure advanced settings? No, I am done.
? Do you want to configure advanced settings for the GraphQL API Yes, I want to make some additional changes.
? Configure additional auth types? `Yes`
? Choose the additional authorization types you want to configure for the API
? Enable conflict detection? `Yes`
? Select the default resolution strategy `Auto Merge`
? Do you have an annotated GraphQL schema? `Yes`
? Provide your schema file path: `schema.graphql`
-
amplify push
-
(Optional - can skip this step since the models should already be generated if using the sample project)
amplify codegen models
-
pod install
-
Create the user via AWS CLI
aws cognito-idp admin-create-user --user-pool-id [POOL_ID] --username [USERNAME]
aws cognito-idp admin-set-user-password --user-pool-id [POOL_ID] --username [USERNAME] --password [PASSWORD] --permanent
```# amplify1337