Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions codegen/src/policies/ElastioAwsBackupEc2Scan.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as iam from "../iam";

export default {
description: "Allows Elastio to scan AWS Backup recovery points.",
description: "Allows Elastio to scan AWS Backup EC2 and EBS recovery points.",

statements: [
{
Expand Down Expand Up @@ -41,7 +41,7 @@ export default {
// Common for all resources
"ec2:DescribeTags",

// Used for cost estimation
// Used for cost estimation and scanning itself
"ebs:ListSnapshotBlocks",
"ebs:ListChangedBlocks",
],
Expand Down Expand Up @@ -70,14 +70,15 @@ export default {
Action: ["ec2:ModifySnapshotAttribute"],
Resource: "*",
Condition: {
// Needed to add createVolumePermission for the sharing the snapshot
// Needed to add createVolumePermission for sharing the snapshot
// with the connector account.
StringLike: {
"ec2:Add/userId": "*",
},
},
},

// Required for encrypted backups
{
Sid: "KmsAccess",

Expand Down
2 changes: 1 addition & 1 deletion iam-policies/terraform/.module.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
name = "aws-elastio-iam-policies"
description = "A collection of AWS IAM policies for use with Elastio"
type = "terraform"
version = "0.33.0"
version = "0.33.1"
4 changes: 2 additions & 2 deletions iam-policies/terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This Terraform module deploys additional Elastio IAM managed policies that you c
```tf
module "elastio_policies" {
source = "terraform.cloudsmith.io/public/elastio-iam-policies/aws"
version = "0.33.0"
version = "0.33.1"

// Provide input parameters
}
Expand All @@ -30,7 +30,7 @@ See the basic [usage example](./examples/basic/main.tf).
| Policy | Description |
| ------------------------------------------------------------ | -------------------------------------------------------------- |
| [`ElastioAssetAccountDeployer`][ElastioAssetAccountDeployer] | Permissions required to deploy the Elastio Asset Account stack |
| [`ElastioAwsBackupEc2Scan`][ElastioAwsBackupEc2Scan] | Allows Elastio to scan AWS Backup recovery points. |
| [`ElastioAwsBackupEc2Scan`][ElastioAwsBackupEc2Scan] | Allows Elastio to scan AWS Backup EC2 and EBS recovery points. |

[ElastioAssetAccountDeployer]: ../../codegen/src/policies/ElastioAssetAccountDeployer.ts
[ElastioAwsBackupEc2Scan]: ../../codegen/src/policies/ElastioAwsBackupEc2Scan.ts
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Description": "Allows Elastio to scan AWS Backup recovery points.",
"Description": "Allows Elastio to scan AWS Backup EC2 and EBS recovery points.",
"PolicyDocument": {
"Version": "2012-10-17",
"Statement": [
Expand Down