-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> * rename page * update intro * Update src/pages/[platform]/start/connect-existing-aws-resources/index.mdx Co-authored-by: Rene Brandel <[email protected]> * Update src/pages/[platform]/start/connect-existing-aws-resources/index.mdx Co-authored-by: Rene Brandel <[email protected]> --------- Co-authored-by: Rene Brandel <[email protected]>
- Loading branch information
1 parent
a8f3bcc
commit 82126fa
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
src/pages/[platform]/start/connect-existing-aws-resources/index.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { getCustomStaticPath } from '@/utils/getCustomStaticPath'; | ||
import { Card } from '@aws-amplify/ui-react'; | ||
|
||
export const meta = { | ||
title: 'Connect to existing AWS resources', | ||
description: 'You can use Amplify client libraries to connect directly to your AWS resources without having to set up an Amplify backend.', | ||
platforms: [ | ||
'android', | ||
'angular', | ||
'flutter', | ||
'javascript', | ||
'nextjs', | ||
'react', | ||
'react-native', | ||
'swift', | ||
'vue' | ||
] | ||
}; | ||
|
||
export const getStaticPaths = async () => { | ||
return getCustomStaticPath(meta.platforms); | ||
}; | ||
|
||
export function getStaticProps(context) { | ||
return { | ||
props: { | ||
platform: context.params.platform, | ||
meta | ||
} | ||
}; | ||
} | ||
|
||
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. | ||
|
||
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: | ||
|
||
<Columns columns={2}> | ||
<Card variation="outlined"> | ||
[Connect to Cognito](/[platform]/build-a-backend/auth/use-existing-cognito-resources/) | ||
|
||
Connect to Cognito resources using Amplify Auth's client library | ||
</Card> | ||
</Columns> |