Skip to content

Commit 82126fa

Browse files
add page for using libraries without Amplify backend (#7724)
* add page for using libraries without Amplify backend * Update src/pages/[platform]/start/libraries-standalone/index.mdx Co-authored-by: Rene Brandel <4989523+renebrandel@users.noreply.github.com> * rename page * update intro * Update src/pages/[platform]/start/connect-existing-aws-resources/index.mdx Co-authored-by: Rene Brandel <4989523+renebrandel@users.noreply.github.com> * Update src/pages/[platform]/start/connect-existing-aws-resources/index.mdx Co-authored-by: Rene Brandel <4989523+renebrandel@users.noreply.github.com> --------- Co-authored-by: Rene Brandel <4989523+renebrandel@users.noreply.github.com>
1 parent a8f3bcc commit 82126fa

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

src/directory/directory.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ export const directory = {
3838
{
3939
path: 'src/pages/[platform]/start/manual-installation/index.mdx'
4040
},
41+
{
42+
path: 'src/pages/[platform]/start/connect-existing-aws-resources/index.mdx'
43+
},
4144
{
4245
path: 'src/pages/[platform]/start/kotlin-coroutines/index.mdx'
4346
},
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import { getCustomStaticPath } from '@/utils/getCustomStaticPath';
2+
import { Card } from '@aws-amplify/ui-react';
3+
4+
export const meta = {
5+
title: 'Connect to existing AWS resources',
6+
description: 'You can use Amplify client libraries to connect directly to your AWS resources without having to set up an Amplify backend.',
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 const getStaticPaths = async () => {
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+
Amplify client libraries provide you with the flexibility to directly connect your application to AWS resources, regardless of whether you choose to set up an Amplify backend environment or manually configure individual AWS services, such as AWS AppSync, Amazon Cognito, Amazon S3, and more.
34+
35+
If you configured AWS resources outside of an Amplify backend, you can still use the Amplify libraries to connect to them by following the instructions provided:
36+
37+
<Columns columns={2}>
38+
<Card variation="outlined">
39+
[Connect to Cognito](/[platform]/build-a-backend/auth/use-existing-cognito-resources/)
40+
41+
Connect to Cognito resources using Amplify Auth's client library
42+
</Card>
43+
</Columns>

0 commit comments

Comments
 (0)