Skip to content

Commit 0a5b4ac

Browse files
authored
adds storage, user and data management pages (#7814)
* adds storage, user and data mangement pages
1 parent 7d329ee commit 0a5b4ac

File tree

8 files changed

+252
-3
lines changed

8 files changed

+252
-3
lines changed
643 KB
Binary file not shown.
994 KB
Binary file not shown.
1.5 MB
Binary file not shown.

src/directory/directory.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ export const directory = {
136136
},
137137
{
138138
path: 'src/pages/[platform]/build-a-backend/auth/manage-users/manage-devices/index.mdx'
139+
},
140+
{
141+
path: 'src/pages/[platform]/build-a-backend/auth/manage-users/with-amplify-console/index.mdx'
139142
}
140143
]
141144
},
@@ -311,6 +314,9 @@ export const directory = {
311314
},
312315
{
313316
path: 'src/pages/[platform]/build-a-backend/data/override-resources/index.mdx'
317+
},
318+
{
319+
path: 'src/pages/[platform]/build-a-backend/data/manage-with-amplify-console/index.mdx'
314320
}
315321
]
316322
},
@@ -352,6 +358,9 @@ export const directory = {
352358
},
353359
{
354360
path: 'src/pages/[platform]/build-a-backend/storage/data-usage/index.mdx'
361+
},
362+
{
363+
path: 'src/pages/[platform]/build-a-backend/storage/manage-with-amplify-console/index.mdx'
355364
}
356365
]
357366
},
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
import { getCustomStaticPath } from '@/utils/getCustomStaticPath';
2+
3+
export const meta = {
4+
title: 'Manage users with Amplify console',
5+
description:
6+
'Manage applications Cognito users and groups with Amplify console',
7+
platforms: [
8+
'android',
9+
'angular',
10+
'flutter',
11+
'javascript',
12+
'nextjs',
13+
'react',
14+
'react-native',
15+
'swift',
16+
'vue'
17+
]
18+
};
19+
20+
export function getStaticPaths() {
21+
return getCustomStaticPath(meta.platforms);
22+
}
23+
24+
export function getStaticProps(context) {
25+
return {
26+
props: {
27+
platform: context.params.platform,
28+
meta
29+
}
30+
};
31+
}
32+
33+
The **User management** page in the Amplify console provides a user-friendly interface for managing your application's users. You can create and manage users and groups, edit user attributes, and suspend users.
34+
35+
If you have not yet created an **auth** resource, visit the [Auth setup guide](/[platform]/build-a-backend/auth/set-up-auth/).
36+
37+
## Access User management
38+
39+
After you've deployed your auth resource, you can access the manager on Amplify Console.
40+
41+
1. Log in to the [Amplify console](https://console.aws.amazon.com/amplify/home) and choose your app.
42+
2. Select the branch you would like to access.
43+
3. Select **Authentication** from the left navigation bar.
44+
4. Then, select **User management**.
45+
46+
<Video src="/images/gen2/manage/user-manager.mp4" description="Video - [Access user manager on Amplify console]"/>
47+
48+
### To create a user
49+
50+
1. On the **User management** page, select **Users** tab.
51+
2. Select **Create user**.
52+
3. In the **Create user** window, for Unique identifier enter a email address, username, or phone number. For Temporary password enter a password.
53+
4. Choose Create user.
54+
55+
<Callout>
56+
57+
A user can be confirmed by using the [pre-built UI components](/[platform]/build-a-backend/auth/connect-your-frontend/using-the-authenticator/) and [Amplify libraries](/[platform]/build-a-backend/auth/connect-your-frontend/sign-up/).
58+
59+
</Callout>
60+
61+
## To create a group
62+
63+
1. On the **User management** page, choose the **Groups** tab and then choose **Create group**.
64+
2. In the **Create group** window, for **Title** enter a name for the group.
65+
3. Choose **Create group**.
66+
67+
68+
## To add a users to a group
69+
70+
1. On the **User management** page, choose the **Groups** tab.
71+
2. Select the name of the group to add users to.
72+
3. Choose **Add users**.
73+
4. In the **Add users to group** window, choose how you want to search for users to add from the **Search** menu. You can choose _Email_, _Phone number_, or _Username_.
74+
5. Add one user or multiple users to add to the group and then choose **Add users**.
75+
76+
## To delete a group
77+
78+
1. On the **User management** page, choose the **Groups** tab.
79+
2. In the **Groups** section, select the name of the group to delete.
80+
3. Choose **Delete**.
81+
4. A confirmation window is displayed. Enter _Delete_ and choose, **Confirm deletion**.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
import { getCustomStaticPath } from '@/utils/getCustomStaticPath';
2+
3+
export const meta = {
4+
title: 'Manage Data with Amplify console',
5+
description:
6+
'Manage GraphQL data with Amplify console',
7+
platforms: [
8+
'android',
9+
'angular',
10+
'flutter',
11+
'javascript',
12+
'nextjs',
13+
'react',
14+
'react-native',
15+
'swift',
16+
'vue'
17+
]
18+
};
19+
20+
export function getStaticPaths() {
21+
return getCustomStaticPath(meta.platforms);
22+
}
23+
24+
export function getStaticProps(context) {
25+
return {
26+
props: {
27+
platform: context.params.platform,
28+
meta
29+
}
30+
};
31+
}
32+
33+
The **Data manager** page in the Amplify Console offers a user-friendly interface for managing the backend GraphQL API data of an application. It enables real-time creation and updates of application data, eliminating the need to build separate admin views.
34+
35+
If you have not yet created a **data** resource, visit the [Data setup guide](/[platform]/build-a-backend/data/set-up-data/).
36+
37+
## Access Data manager
38+
39+
After you've deployed your data resource, you can access the manager on Amplify console.
40+
41+
1. Log in to the [Amplify console](https://console.aws.amazon.com/amplify/home) and choose your app.
42+
2. Select the branch you would like to access.
43+
3. Select **Data** from the left navigation bar.
44+
4. Then, select **Data manager**.
45+
46+
<Video src="/images/gen2/manage/data-manager.mp4" description="Video - Access data manager on Amplify console"/>
47+
48+
### To create a record
49+
50+
1. On the **Data manager** page, select a table from the **Select table** dropdown. For this example, we are using a *Todo* table.
51+
2. Select **Create Todo**.
52+
3. In the **Add Todo** pane, specify your custom values for the fields in the table. For example, enter *my first todo* for the *Content* field and toggle the *Is done* field.
53+
4. Select **Submit**.
54+
55+
### To update a record
56+
57+
1. On the **Data manager** page, select a table from the **Select table** dropdown.
58+
2. From the list of records, select a record you want to update.
59+
3. In the **Edit Todo** pane, make any changes to your record, and then select **Submit**.
60+
61+
### To delete a record(s)
62+
63+
1. On the **Data manager** page, select a table from the **Select table** dropdown.
64+
2. From the list of records, select the checkbox to the left of the record(s) you want to delete.
65+
3. Select the **Actions** dropdown, and then select **delete item(s)** .
66+
67+
### To Seed records
68+
69+
1. On the **Data manager** page, select a table from the **Select table** dropdown.
70+
2. Select the **Actions** dropdown and then select **Auto-generate data**.
71+
3. In the **Auto-generate data** pane, specify how many rows of data you want to generate and constraints for the generated data.
72+
4. Then select **Generate data**
73+
74+
You can generate up to 100 records at a time.
75+
76+
<Callout warning>
77+
78+
Seed data cannot be generated for tables that have the following field types: AWSPhone, Enum, Custom Type, or Relationship
79+
80+
</Callout>
81+
82+
### To download records
83+
84+
1. On the **Data manager** page, select a table from the **Select table** dropdown.
85+
2. Select the **Actions** dropdown.
86+
3. Here you have two options for downloading data.
87+
- Choose **Download selected items (.csv)** to download only the selected rows of data.
88+
- Choose **Download all items (.csv)** to download all rows of records on the currently selected table.
89+
4. Once you have selected a download option, your data should immediately start downloading as a CSV file.
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
import { getCustomStaticPath } from '@/utils/getCustomStaticPath';
2+
3+
export const meta = {
4+
title: 'Manage files with Amplify console',
5+
description:
6+
'Manage your applications storage files with Amplify console',
7+
platforms: [
8+
'android',
9+
'angular',
10+
'flutter',
11+
'javascript',
12+
'nextjs',
13+
'react',
14+
'react-native',
15+
'swift',
16+
'vue'
17+
]
18+
};
19+
20+
export function getStaticPaths() {
21+
return getCustomStaticPath(meta.platforms);
22+
}
23+
24+
export function getStaticProps(context) {
25+
return {
26+
props: {
27+
platform: context.params.platform,
28+
meta
29+
}
30+
};
31+
}
32+
33+
The **File storage** page in the Amplify console provides a user-friendly interface for managing your application's backend file storage. It allows for efficient testing and management of your files.
34+
35+
If you have not yet created a **storage** resource, visit the [Storage setup guide](/[platform]/build-a-backend/storage/set-up-storage/).
36+
37+
## Access File storage
38+
39+
After you've deployed your storage resource, you can access the manager on Amplify Console.
40+
41+
1. Log in to the [Amplify console](https://console.aws.amazon.com/amplify/home) and choose your app.
42+
2. Select the branch you would like to access.
43+
3. Select **Storage** from the left navigation bar.
44+
45+
<Video src="/images/gen2/manage/storage-manager.mp4" description="Video - Access storage manager on Amplify console"/>
46+
47+
### To upload a file
48+
49+
1. On the **Storage** page, select the **Upload** button
50+
2. Select the file you would like to upload and then select **Done**
51+
52+
Alternatively, you can **Drag and drop** a file onto the Storage page.
53+
54+
### To delete a file
55+
56+
1. On the **Storage** page, select the file you want to delete.
57+
2. Select the **Actions** dropdown and then select **Delete**.
58+
59+
### To copy a file
60+
61+
1. On the **Storage** page, select the file you want to copy.
62+
2. Select the **Actions** dropdown and then select **Copy to**.
63+
3. Select or create the folder you want a copy of your file to be saved to.
64+
4. Select **Copy** to copy your file to the selected folder.
65+
66+
### To move a file
67+
68+
1. On the **Storage** page, select the file you want to move.
69+
3. Select the **Actions** dropdown and then select **Move to**.
70+
4. Select or create the folder you want to move your file to.
71+
5. Select **Move** to move your file to the selected folder.
72+

src/pages/[platform]/build-a-backend/storage/set-up-storage/index.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -754,9 +754,7 @@ Future<void> uploadFile(File file) async {
754754

755755
## Manage files in Amplify console
756756

757-
After successfully publishing your storage backend and connecting your project with client APIs, you can manage files and folders in [the Amplify console](https://console.aws.amazon.com/amplify). You can perform on-demand actions like upload, download, copy, and more under the Storage tab in the console.
758-
759-
![Showing Amplify console showing Storage tab selected](/images/gen2/storage/amplify-console-storage.png)
757+
After successfully publishing your storage backend and connecting your project with client APIs, you can manage files and folders in [the Amplify console](https://console.aws.amazon.com/amplify). You can perform on-demand actions like upload, download, copy, and more under the Storage tab in the console. Refer to [Manage files in Amplify Console](/[platform]/build-a-backend/storage/manage-with-amplify-console/) guide for additional information.
760758

761759
## Conclusion
762760

0 commit comments

Comments
 (0)