Skip to content

Commit 2c8d7db

Browse files
authored
chore: remove appsync events test backend files and move setup instructions to README (#3186)
1 parent 2ae2cb7 commit 2c8d7db

File tree

8 files changed

+42
-37027
lines changed

8 files changed

+42
-37027
lines changed

appsync/aws-sdk-appsync-events/src/androidTest/backend/amplify/backend.ts renamed to appsync/aws-sdk-appsync-events/src/androidTest/README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
## AWS Amplify + AWS AppSync Events Template
2+
3+
## Getting Started
4+
5+
1. Setup AWS Account with Amplify
6+
7+
https://docs.amplify.aws/android/start/account-setup/
8+
9+
2. The backend is provisioned with creating an Amplify CLI Gen 2 project by runing the following command.
10+
11+
```
12+
npm create amplify@latest
13+
```
14+
15+
3. Update `auth/resource.ts`
16+
17+
```
18+
import { defineAuth } from '@aws-amplify/backend';
19+
20+
/**
21+
* Define and configure your auth resource
22+
* @see https://docs.amplify.aws/gen2/build-a-backend/auth
23+
*/
24+
export const auth = defineAuth({
25+
loginWith: {
26+
email: true,
27+
},
28+
});
29+
```
30+
31+
4. Update `backend.ts`
32+
33+
```
134
import { defineBackend } from '@aws-amplify/backend'
235
import { auth } from './auth/resource'
336
import {
@@ -103,3 +136,12 @@ backend.addOutput({
103136
},
104137
},
105138
})
139+
```
140+
141+
6. Deploy your backend.
142+
143+
```
144+
npx ampx sandbox
145+
```
146+
147+
7. Make note of the `amplify_outputs.json` file that was generated. You will need to copy this file to the test project.

appsync/aws-sdk-appsync-events/src/androidTest/backend/README.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

appsync/aws-sdk-appsync-events/src/androidTest/backend/amplify.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

appsync/aws-sdk-appsync-events/src/androidTest/backend/amplify/auth/resource.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

appsync/aws-sdk-appsync-events/src/androidTest/backend/amplify/package.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

appsync/aws-sdk-appsync-events/src/androidTest/backend/amplify/tsconfig.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)