Skip to content

Commit a284010

Browse files
committed
Added IAM policy
1 parent 49e4834 commit a284010

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,38 @@ Successfully downloaded boto3
7575
2022/04/03 04:52:44 RES: 127.0.0.1:52066 "GET" 200 "/simple/boto3/" "pip/22.0.4 ...."
7676
```
7777

78+
### IAM Permissions
79+
80+
Use the following permissions to grant the proxy ReadOnly access to the CodeArtifact repository.
81+
82+
```
83+
{
84+
"Version": "2012-10-17",
85+
"Statement": [
86+
{
87+
"Action": [
88+
"codeartifact:Describe*",
89+
"codeartifact:Get*",
90+
"codeartifact:List*",
91+
"codeartifact:ReadFromRepository"
92+
],
93+
"Effect": "Allow",
94+
"Resource": "*"
95+
},
96+
{
97+
"Effect": "Allow",
98+
"Action": "sts:GetServiceBearerToken",
99+
"Resource": "*",
100+
"Condition": {
101+
"StringEquals": {
102+
"sts:AWSServiceName": "codeartifact.amazonaws.com"
103+
}
104+
}
105+
}
106+
]
107+
}
108+
```
109+
78110
## Contributing
79111

80112
If you'd like to contribute to this project, please feel free to raise a pull request. I would highly recommend using the devcontainer setup in this repo, as it will provide you a working development environment.

0 commit comments

Comments
 (0)