Skip to content

Commit

Permalink
prettier update
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Park committed Oct 1, 2024
1 parent 1c5e3a7 commit 9459389
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/serverless-deploy-iam/bin/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class ServiceDeployIAM extends cdk.Stack {
type: new Role(this, `ServiceRole-v${version}`, {
assumedBy: new CompositePrincipal(
new ServicePrincipal("cloudformation.amazonaws.com"),
new ServicePrincipal("lambda.amazonaws.com")
new ServicePrincipal("lambda.amazonaws.com"),
),
}),
policies: [
Expand Down Expand Up @@ -471,7 +471,11 @@ export class ServiceDeployIAM extends cdk.Stack {
name: "LAMBDA",
prefix: `arn:aws:lambda:${region}:${accountId}:function:`,
qualifiers: [`${serviceName}*`],
actions: ["lambda:GetFunction", "lambda:InvokeFunction", "lambda:ListTags"],
actions: [
"lambda:GetFunction",
"lambda:InvokeFunction",
"lambda:ListTags",
],
},
{
name: "IAM",
Expand Down Expand Up @@ -537,7 +541,7 @@ export class ServiceDeployIAM extends cdk.Stack {
type: "String",
description: `Custom qualifier values provided for ${policy.name}`,
default: "",
})
}),
);
}

Expand All @@ -550,7 +554,7 @@ export class ServiceDeployIAM extends cdk.Stack {
ServiceDeployIAM.formatResourceQualifier(
policy.name,
policy.prefix || "",
policy.qualifiers || []
policy.qualifiers || [],
);

store.type.addToPolicy(new PolicyStatement(policy));
Expand Down Expand Up @@ -607,7 +611,7 @@ export class ServiceDeployIAM extends cdk.Stack {
static formatResourceQualifier(
serviceName: string,
prefix: string,
qualifiers: string[]
qualifiers: string[],
): string[] {
let delimiter = "/";
switch (serviceName) {
Expand Down

0 comments on commit 9459389

Please sign in to comment.