aws-amplify / aws-amplify/docs

add non-global resource example for function's `custom-policies.json`

Open
#3,972 1 comment 0 reactions 1 assignee Claimed by @josefaidt View on GitHub
amplify/cli p4 planned
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.