File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1054,10 +1054,7 @@ $TRUST_POLICY = @"
10541054 "token.actions.githubusercontent.com:aud": "sts.amazonaws.com"
10551055 },
10561056 "StringLike": {
1057- "token.actions.githubusercontent.com:sub": [
1058- "repo:$GITHUB_USERNAME /$GITHUB_REPO_NAME: ref :refs/heads/main",
1059- "repo:$GITHUB_USERNAME /$GITHUB_REPO_NAME: ref :refs/heads/deploy"
1060- ]
1057+ "token.actions.githubusercontent.com:sub": "repo:$GITHUB_USERNAME /$GITHUB_REPO_NAME :*"
10611058 }
10621059 }
10631060 }
@@ -1111,34 +1108,15 @@ $POLICY_DOCUMENT = @"
11111108 "Effect": "Allow",
11121109 "Action": [
11131110 "cloudformation:*",
1111+ "s3:*",
11141112 "lambda:*",
11151113 "iam:*",
1116- "logs:*"
1117- ],
1118- "Resource": "*"
1119- },
1120- {
1121- "Effect": "Allow",
1122- "Action": [
1123- "s3:GetObject",
1124- "s3:PutObject",
1125- "s3:DeleteObject",
1126- "s3:ListBucket",
1127- "s3:GetBucketLocation",
1128- "s3:GetObjectVersion",
1129- "s3:PutObjectAcl"
1130- ],
1131- "Resource": [
1132- "arn:aws:s3:::cn-seba-aws-sam-cli-managed-default-samclisourcebucket",
1133- "arn:aws:s3:::cn-seba-aws-sam-cli-managed-default-samclisourcebucket/*"
1134- ]
1135- },
1136- {
1137- "Effect": "Allow",
1138- "Action": [
1139- "s3:CreateBucket",
1140- "s3:DeleteBucket",
1141- "s3:ListAllMyBuckets"
1114+ "logs:*",
1115+ "apigateway:*",
1116+ "events:*",
1117+ "sqs:*",
1118+ "sns:*",
1119+ "kms:*"
11421120 ],
11431121 "Resource": "*"
11441122 }
Original file line number Diff line number Diff line change @@ -1057,10 +1057,7 @@ TRUST_POLICY=$(cat <<EOF
10571057 "token.actions.githubusercontent.com:aud": "sts.amazonaws.com"
10581058 },
10591059 "StringLike": {
1060- "token.actions.githubusercontent.com:sub": [
1061- "repo:$GITHUB_USERNAME /$GITHUB_REPO_NAME :ref:refs/heads/main",
1062- "repo:$GITHUB_USERNAME /$GITHUB_REPO_NAME :ref:refs/heads/deploy"
1063- ]
1060+ "token.actions.githubusercontent.com:sub": "repo:$GITHUB_USERNAME /$GITHUB_REPO_NAME :*"
10641061 }
10651062 }
10661063 }
@@ -1094,34 +1091,15 @@ POLICY_DOCUMENT=$(cat <<EOF
10941091 "Effect": "Allow",
10951092 "Action": [
10961093 "cloudformation:*",
1094+ "s3:*",
10971095 "lambda:*",
10981096 "iam:*",
1099- "logs:*"
1100- ],
1101- "Resource": "*"
1102- },
1103- {
1104- "Effect": "Allow",
1105- "Action": [
1106- "s3:GetObject",
1107- "s3:PutObject",
1108- "s3:DeleteObject",
1109- "s3:ListBucket",
1110- "s3:GetBucketLocation",
1111- "s3:GetObjectVersion",
1112- "s3:PutObjectAcl"
1113- ],
1114- "Resource": [
1115- "arn:aws:s3:::cn-seba-aws-sam-cli-managed-default-samclisourcebucket",
1116- "arn:aws:s3:::cn-seba-aws-sam-cli-managed-default-samclisourcebucket/*"
1117- ]
1118- },
1119- {
1120- "Effect": "Allow",
1121- "Action": [
1122- "s3:CreateBucket",
1123- "s3:DeleteBucket",
1124- "s3:ListAllMyBuckets"
1097+ "logs:*",
1098+ "apigateway:*",
1099+ "events:*",
1100+ "sqs:*",
1101+ "sns:*",
1102+ "kms:*"
11251103 ],
11261104 "Resource": "*"
11271105 }
You can’t perform that action at this time.
0 commit comments