Skip to content

Commit 87f31ef

Browse files
authored
Merge pull request #2793 from ElijahQuinones/mangedPolicyClones
Revise docs and example to account for managed policy change
2 parents fdb921d + 7e2373c commit 87f31ef

File tree

3 files changed

+15
-55
lines changed

3 files changed

+15
-55
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": {

docs/install.md

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -93,57 +93,6 @@ Modification of tags of existing volumes can, in some configurations, allow the
9393
</pre>
9494
</details>
9595

96-
<details>
97-
<summary>Creating a clone of a volume</summary>
98-
<br>
99-
The following statements give the EBS CSI Driver access to clone volumes:
100-
<pre>
101-
{
102-
"Effect": "Allow",
103-
"Action": [
104-
"ec2:CopyVolumes"
105-
],
106-
"Resource": "arn:aws:ec2:*:*:volume/vol-*"
107-
},
108-
{
109-
"Effect": "Allow",
110-
"Action": [
111-
"ec2:CopyVolumes"
112-
],
113-
"Resource": "arn:aws:ec2:*:*:volume/*",
114-
"Condition": {
115-
"StringLike": {
116-
"aws:RequestTag/ebs.csi.aws.com/cluster": "true"
117-
}
118-
}
119-
},
120-
{
121-
"Effect": "Allow",
122-
"Action": [
123-
"ec2:CopyVolumes"
124-
],
125-
"Resource": "arn:aws:ec2:*:*:volume/*",
126-
"Condition": {
127-
"StringLike": {
128-
"aws:RequestTag/CSIVolumeName": "*"
129-
}
130-
}
131-
},
132-
{
133-
"Effect": "Allow",
134-
"Action": [
135-
"ec2:CreateTags"
136-
],
137-
"Resource": "arn:aws:ec2:*:*:volume/*",
138-
"Condition": {
139-
"StringEquals": {
140-
"ec2:CreateAction": "CopyVolumes"
141-
}
142-
}
143-
}
144-
</pre>
145-
</details>
146-
14796
There are several options to pass credentials to the EBS CSI Driver, each documented below:
14897

14998
#### (EKS Only) EKS Pod Identity

examples/kubernetes/clone/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
## Prerequisites
44

55
1. The [aws-ebs-csi-driver](https://github.com/kubernetes-sigs/aws-ebs-csi-driver) on at least v1.51.0 installed.
6-
2. Default managed policy will need to be adjusted see [install.md](https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/docs/install.md)
76

87
## Usage
98

0 commit comments

Comments
 (0)