Skip to content

Commit 3d02111

Browse files
authored
add callout on reference auth (#8257)
1 parent 4b1d8d4 commit 3d02111

File tree

1 file changed

+7
-1
lines changed
  • src/pages/[platform]/build-a-backend/auth/use-existing-cognito-resources

1 file changed

+7
-1
lines changed

src/pages/[platform]/build-a-backend/auth/use-existing-cognito-resources/index.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ Configuring the mobile client libraries directly is not supported, however you c
112112

113113
## Use auth resources with an Amplify backend
114114

115+
<Callout warning>
116+
117+
Amplify cannot modify the configuration of your referenced resources and only captures the resource configuration at the time of reference, any subsequent changes made to the referenced resources will not be automatically reflected in your Amplify backend.
118+
119+
</Callout>
120+
115121
If you have created Amazon Cognito resources outside of the context of your Amplify app such as creating resources through the AWS Console or consuming resources created by a separate team, you can use `referenceAuth` to reference the existing resources. It requires a user pool, a user pool client, identity pool, and an authenticated & unauthenticated IAM role configured on your identity pool.
116122

117123
```ts title="amplify/auth/resource.ts"
@@ -128,7 +134,7 @@ export const auth = referenceAuth({
128134

129135
<Callout info>
130136

131-
The configuration of your referenced resources cannot be modified. IAM policies specific to your Amplify application will be appended to your authenticated and unauthenticated roles, and applications using the referenced resource will be able to create users in the Cognito user pool and identities in the Cognito identity pool.
137+
IAM policies specific to your Amplify application will be appended to your authenticated and unauthenticated roles, and applications using the referenced resource will be able to create users in the Cognito user pool and identities in the Cognito identity pool.
132138

133139
</Callout>
134140

0 commit comments

Comments
 (0)