Skip to content

Commit

Permalink
Fix formatting in AppStack.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
NiallJoeMaher committed Jan 4, 2024
1 parent 0426add commit 9811285
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions cdk/lib/app-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class AppStack extends cdk.Stack {
const domainName = ssm.StringParameter.valueForStringParameter(
this,
`/env/domainName`,
1
1,
);

const wwwDomainName = `www.${domainName}`;
Expand Down Expand Up @@ -56,7 +56,7 @@ export class AppStack extends cdk.Stack {
effect: iam.Effect.ALLOW,
actions: ["s3:*Object", "SES:*"],
resources: ["*"],
})
}),
);

taskDef
Expand All @@ -73,57 +73,57 @@ export class AppStack extends cdk.Stack {
ssm.StringParameter.fromSecureStringParameterAttributes(
this,
"sentryEnvironment",
{ parameterName: "/env/sentry/environment", version: 1 }
)
{ parameterName: "/env/sentry/environment", version: 1 },
),
),
SENTRY_DSN: ecs.Secret.fromSsmParameter(
ssm.StringParameter.fromSecureStringParameterAttributes(
this,
"sentryDsn",
{ parameterName: "/env/sentry/dsn", version: 1 }
)
{ parameterName: "/env/sentry/dsn", version: 1 },
),
),
DATABASE_URL: ecs.Secret.fromSsmParameter(
ssm.StringParameter.fromSecureStringParameterAttributes(
this,
"dbUrl",
{ parameterName: "/env/db/dbUrl", version: 1 }
)
{ parameterName: "/env/db/dbUrl", version: 1 },
),
),
GITHUB_SECRET: ecs.Secret.fromSsmParameter(
ssm.StringParameter.fromStringParameterName(
this,
"githubSecret",
"/env/githubSecret"
)
"/env/githubSecret",
),
),
GITHUB_ID: ecs.Secret.fromSsmParameter(
ssm.StringParameter.fromStringParameterName(
this,
"githubId",
"/env/githubId"
)
"/env/githubId",
),
),
NEXTAUTH_SECRET: ecs.Secret.fromSsmParameter(
ssm.StringParameter.fromStringParameterName(
this,
"nextauthSecret",
"/env/nextauthSecret"
)
"/env/nextauthSecret",
),
),
DISCORD_INVITE_URL: ecs.Secret.fromSsmParameter(
ssm.StringParameter.fromStringParameterName(
this,
"discordInviteUrl",
"/env/discordInviteUrl"
)
"/env/discordInviteUrl",
),
),
ADMIN_EMAIL: ecs.Secret.fromSsmParameter(
ssm.StringParameter.fromStringParameterName(
this,
"adminEmail",
"/env/adminEmail"
)
"/env/adminEmail",
),
),
},
logging: ecs.LogDrivers.awsLogs({
Expand All @@ -144,7 +144,7 @@ export class AppStack extends cdk.Stack {
cpu: production ? 512 : 256, // Can alter if need more
publicLoadBalancer: true,
protocol: elbv2.ApplicationProtocol.HTTP,
}
},
);

fargateService.listener.addAction("DefaultListenerRule", {
Expand Down Expand Up @@ -198,7 +198,7 @@ export class AppStack extends cdk.Stack {

fargateService.service.connections.allowFromAnyIpv4(
ec2.Port.tcp(this.appPort),
"app-inbound"
"app-inbound",
);

this.loadbalancer = fargateService.loadBalancer;
Expand Down

0 comments on commit 9811285

Please sign in to comment.