Skip to content

Commit 8047411

Browse files
committed
docs: Add AWS IAM policy template for deployment
- Add aws-iam-policy.json with minimal required permissions - Policy includes ECR, Lambda, CloudFormation, and IAM permissions - Template for creating secure IAM users for CI/CD deployment - Follows principle of least privilege for production security
1 parent ad3c71c commit 8047411

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

aws-iam-policy.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"Version": "2012-10-17",
3+
"Statement": [
4+
{
5+
"Effect": "Allow",
6+
"Action": [
7+
"ecr:GetAuthorizationToken",
8+
"ecr:BatchCheckLayerAvailability",
9+
"ecr:GetDownloadUrlForLayer",
10+
"ecr:BatchGetImage",
11+
"ecr:InitiateLayerUpload",
12+
"ecr:UploadLayerPart",
13+
"ecr:CompleteLayerUpload",
14+
"ecr:PutImage"
15+
],
16+
"Resource": "*"
17+
},
18+
{
19+
"Effect": "Allow",
20+
"Action": [
21+
"lambda:CreateFunction",
22+
"lambda:UpdateFunctionCode",
23+
"lambda:UpdateFunctionConfiguration",
24+
"lambda:GetFunction",
25+
"lambda:ListFunctions"
26+
],
27+
"Resource": "arn:aws:lambda:eu-west-1:*:function:neurobank-*"
28+
},
29+
{
30+
"Effect": "Allow",
31+
"Action": [
32+
"cloudformation:CreateStack",
33+
"cloudformation:UpdateStack",
34+
"cloudformation:DescribeStacks",
35+
"cloudformation:DescribeStackEvents",
36+
"cloudformation:GetTemplate"
37+
],
38+
"Resource": "arn:aws:cloudformation:eu-west-1:*:stack/neurobank-*/*"
39+
},
40+
{
41+
"Effect": "Allow",
42+
"Action": [
43+
"iam:GetRole",
44+
"iam:PassRole"
45+
],
46+
"Resource": "arn:aws:iam::*:role/neurobank-*"
47+
}
48+
]
49+
}

0 commit comments

Comments
 (0)