Skip to content

Commit

Permalink
Document AWS template resource names support
Browse files Browse the repository at this point in the history
  • Loading branch information
amitlicht committed Apr 7, 2024
1 parent 350af9c commit a23ecc3
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions docs/features/aws-iam/reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,32 @@ spec:
awsActions:
- "s3:PutObject"
- "s3:GetObject"
# Multiple call definitions can be defined for a single service.
- name: arn:aws:s3:::read-only-bucket-*/*
# Multiple call definitions can be defined for a single service.
- name: arn:aws:s3:::read-only-bucket-*/*
type: aws
awsActions:
- "s3:GetObject"
```

Otterize supports templating AWS resource names by AWS region & account ID.
The templates `$(AWS_REGION)` & `$(AWS_ACCOUNT_ID)` in AWS resource ARNs will be automatically replaced with the EKS cluster's region & account ID:

```yaml
apiVersion: k8s.otterize.com/v1alpha3
kind: ClientIntents
metadata:
name: server
spec:
service:
name: server
calls:
# $(AWS_REGION) & $(AWS_ACCOUNT_ID) will be replaced with the EKS cluster's region & account ID
- name: arn:aws:sqs:$(AWS_REGION):$(AWS_ACCOUNT_ID):queue1
type: aws
awsActions:
- "sqs:*"
```

### Annotations

| Key | Description | Default |
Expand Down

0 comments on commit a23ecc3

Please sign in to comment.