Skip to content

Commit

Permalink
feat(api): allow ${env} reference in custom-roles.json (#4591)
Browse files Browse the repository at this point in the history
Co-authored-by: josef <josef.aidt@gmail.com>
  • Loading branch information
2 people authored and rachelnabors committed Apr 4, 2023
1 parent 03edf2d commit cd07886
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/cli/graphql/authorization-rules.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,8 @@ To grant an external AWS Resource or an IAM role access to this GraphQL API, you
}
```

You can use the symbol `${env}` to reference the current Amplify CLI environment.

These "Admin Roles" have special access privileges that are scoped based on their [IAM policy](https://docs.aws.amazon.com/appsync/latest/devguide/security-authz.html#aws-iam-authorization) instead of any particular `@auth` rule.

</Block>
Expand Down

0 comments on commit cd07886

Please sign in to comment.