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 4, 2024
1 parent 350af9c commit 6875232
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions docs/features/aws-iam/reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,31 @@ 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"
```

AWS intents support templating 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: client
spec:
service:
name: client
calls:
- name: arn:aws:sqs:$(AWS_REGION):$(AWS_ACCOUNT_ID):queue1
type: aws
awsActions:
- "sqs:*"
```

### Annotations

| Key | Description | Default |
Expand Down

0 comments on commit 6875232

Please sign in to comment.