Skip to content

Commit

Permalink
prettier fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Park committed Dec 8, 2024
1 parent 44ab1af commit 3586df3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 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 @@ -142,7 +142,9 @@ export class ServiceDeployIAM extends cdk.Stack {
},
{
name: "LAMBDA_EVENT_SOURCE_MAPPING",
resources: [`arn:aws:lambda:${region}:${accountId}:event-source-mapping:*`],
resources: [
`arn:aws:lambda:${region}:${accountId}:event-source-mapping:*`,
],
actions: ["lambda:TagResource"],
},
{
Expand Down Expand Up @@ -539,7 +541,7 @@ export class ServiceDeployIAM extends cdk.Stack {
type: "String",
description: `Custom qualifier values provided for ${policy.name}`,
default: PARAMETER_HASH,
})
}),
);
}

Expand All @@ -552,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 @@ -609,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 3586df3

Please sign in to comment.