Skip to content

Commit

Permalink
Merge pull request #52 from aligent/feature/additional_serverless_dep…
Browse files Browse the repository at this point in the history
…loy_permissions

Feature/additional serverless deploy permissions
  • Loading branch information
crispy101 authored Oct 1, 2024
2 parents 707d0ec + 6682fa9 commit e368175
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/serverless-deploy-iam/bin/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export class ServiceDeployIAM extends cdk.Stack {
"iam:GetRole",
"iam:DeleteRole",
"iam:UpdateRole",
"iam:TagRole",
"iam:GetRolePolicy",
"iam:DeleteRolePolicy",
"iam:PutRolePolicy",
Expand Down Expand Up @@ -476,7 +477,11 @@ export class ServiceDeployIAM extends cdk.Stack {
name: "LAMBDA",
prefix: `arn:aws:lambda:${region}:${accountId}:function:`,
qualifiers: [`${serviceName}*`],
actions: ["lambda:GetFunction", "lambda:InvokeFunction"],
actions: [
"lambda:GetFunction",
"lambda:InvokeFunction",
"lambda:ListTags",
],
},
{
name: "IAM",
Expand Down
6 changes: 5 additions & 1 deletion packages/serverless-deploy-iam/test/deploy-role.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ describe("Deploy user policy", () => {
PolicyDocument: {
Statement: arrayWith(
objectLike({
Action: ["lambda:GetFunction", "lambda:InvokeFunction"],
Action: [
"lambda:GetFunction",
"lambda:InvokeFunction",
"lambda:ListTags",
],
Effect: "Allow",
Resource: [
{
Expand Down

0 comments on commit e368175

Please sign in to comment.