Skip to content

Commit

Permalink
Add section on cross-account VPC peering
Browse files Browse the repository at this point in the history
  • Loading branch information
viren-nadkarni committed Sep 19, 2023
1 parent bc8fb5a commit 48fbd5f
Showing 1 changed file with 35 additions and 29 deletions.
64 changes: 35 additions & 29 deletions content/en/references/cross-account-access.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,32 @@ IAM currently does not enforce cross-account access.
Any ACLs, identity-based or resource-based policy attached to these operations or resources will be ignored.
{{< /alert >}}

### EC2 VPCs

It is possible to peer VPCs that are in a different region or account than the requester.
Ensure that the `PeerRegion` and `PeerOwnerId` arguments are correctly set when creating VPC peering connections.

### KMS keys

- `CreateGrant`
- `Decrypt`
- `DescribeKey`
- `Encrypt`
- `GenerateDataKey`
- `GenerateDataKeyPair`
- `GenerateDataKeyPairWithoutPlaintext`
- `GenerateDataKeyWithoutPlaintext`
- `GenerateMac`
- `GetKeyRotationStatus`
- `GetPublicKey`
- `ListGrants`
- `RetireGrant`
- `RevokeGrant`
- `Sign`
- `Verify`
- `VerifyMac`
<!-- - ReEncrypt (NOT IMPLEMENTED IN LOCALSTACK) -->

### Lambda functions and layers

- `AddLayerVersionPermission`
Expand Down Expand Up @@ -55,32 +81,15 @@ Any ACLs, identity-based or resource-based policy attached to these operations o
- `UpdateAlias`
- `UpdateFunctionCode`

### SQS queues

On AWS, all operations except `AddPermission`, `CreateQueue`, `DeleteQueue`, `ListQueues`, `ListQueueTags`, `RemovePermission`, `SetQueueAttributes`, `TagQueue` and `UntagQueue` allow cross-account access.
### S3 buckets

On LocalStack, all operations allow cross-account access.
Like AWS, LocalStack S3 has a bucket namespace which is shared by all accounts.
This means that the bucket name has to be globally unique.

### KMS keys
- `GetObject`
- `ListObjects`
- `PutObject`

- `CreateGrant`
- `Decrypt`
- `DescribeKey`
- `Encrypt`
- `GenerateDataKey`
- `GenerateDataKeyPair`
- `GenerateDataKeyPairWithoutPlaintext`
- `GenerateDataKeyWithoutPlaintext`
- `GenerateMac`
- `GetKeyRotationStatus`
- `GetPublicKey`
- `ListGrants`
- `RetireGrant`
- `RevokeGrant`
- `Sign`
- `Verify`
- `VerifyMac`
<!-- - ReEncrypt (NOT IMPLEMENTED IN LOCALSTACK) -->

### SNS topics

Expand All @@ -93,14 +102,11 @@ On LocalStack, all operations allow cross-account access.
- `SetTopicAttributes`
- `Subscribe`

### S3 buckets
### SQS queues

Like AWS, LocalStack S3 has a bucket namespace which is shared by all accounts.
This means that the bucket name has to be globally unique.
On AWS, all operations except `AddPermission`, `CreateQueue`, `DeleteQueue`, `ListQueues`, `ListQueueTags`, `RemovePermission`, `SetQueueAttributes`, `TagQueue` and `UntagQueue` allow cross-account access.

- `GetObject`
- `ListObjects`
- `PutObject`
On LocalStack, all operations allow cross-account access.

## Cross-Region

Expand Down

0 comments on commit 48fbd5f

Please sign in to comment.