Skip to content

Commit 975ce26

Browse files
committed
Update example IAM policy with CopyVolumes
1 parent a3e62b7 commit 975ce26

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

docs/example-iam-policy.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@
2222
],
2323
"Resource": "arn:aws:ec2:*:*:volume/*"
2424
},
25+
{
26+
"Effect": "Allow",
27+
"Action": [
28+
"ec2:CopyVolumes"
29+
],
30+
"Resource": [
31+
"arn:aws:ec2:*:*:volume/vol-*"
32+
]
33+
},
2534
{
2635
"Effect": "Allow",
2736
"Action": [
@@ -54,7 +63,8 @@
5463
"StringEquals": {
5564
"ec2:CreateAction": [
5665
"CreateVolume",
57-
"CreateSnapshot"
66+
"CreateSnapshot",
67+
"CopyVolumes"
5868
]
5969
}
6070
}
@@ -72,7 +82,8 @@
7282
{
7383
"Effect": "Allow",
7484
"Action": [
75-
"ec2:CreateVolume"
85+
"ec2:CreateVolume",
86+
"ec2:CopyVolumes"
7687
],
7788
"Resource": "arn:aws:ec2:*:*:volume/*",
7889
"Condition": {
@@ -84,7 +95,8 @@
8495
{
8596
"Effect": "Allow",
8697
"Action": [
87-
"ec2:CreateVolume"
98+
"ec2:CreateVolume",
99+
"ec2:CopyVolumes"
88100
],
89101
"Resource": "arn:aws:ec2:*:*:volume/*",
90102
"Condition": {

0 commit comments

Comments
 (0)