aws-amplify / aws-amplify/docs
add non-global resource example for function's `custom-policies.json`
- Dominant language
- MDX
- Stars
- 506
- Forks
- 1.1k
- Avg merge
- 3h 14m
- Merged PRs (30d)
- 1
Description
**Is your feature request related to a problem? Please describe.**
Currently examples for `custom-policies.json` use global resources as an example, whereas other resources such as SSM will require wildcards (`*`) in place of the placeholder `:::` in the resource ARN
https://docs.amplify.aws/cli/function/#access-existing-aws-resource-from-lambda-function
example policy for accessing parameters
```json
[
{
"Action": ["ssm:GetParameters"],
"Resource": [
"arn:aws:ssm:*:*:parameter/*"
]
}
]
```
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
Contributor guide
Assessment
This issue has not been assessed yet.