Skip to content

Commit 2d1739a

Browse files
committed
style: prettier and eslint
1 parent aff0b44 commit 2d1739a

File tree

6 files changed

+59
-36
lines changed

6 files changed

+59
-36
lines changed

aws-vpc-lattice/README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ Code features it has:
66

77
1. Construction of VPC Lattice artifacts
88
2. Deployment of htsget-rs as a Lambda Target Group
9-
3. Use of `bun` for CDK.
109

1110
To deploy:
1211

1312
1. Authenticate to your AWS account (preferably using SSO).
1413
2. Modify the [`htsget-vpc-lattice-app.ts`][htsget-vpc-lattice-app], according to your preferences.
15-
3. Run `bunx cdk deploy`.
14+
3. Run `pnpm cdk deploy`.
1615

1716
### Does it work?
1817

@@ -58,11 +57,3 @@ Should return a response similar to the following:
5857
}
5958
}
6059
```
61-
62-
## Local development
63-
64-
This project uses bun.
65-
66-
```sh
67-
bun install
68-
```

aws-vpc-lattice/htsget-vpc-lattice-app.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ new HtsgetVpcLatticeStack(
1313
destinationAccounts: ["534840902377"],
1414
htsgetConfig: {
1515
environment_override: {
16-
HTSGET_LOCATIONS: '[]',
17-
HTSGET_DATA_SERVER: 'None',
18-
HTSGET_AUTH_AUTHORIZATION_URL: `https://elsa-data.dev.umccr.org/api/integration/htsget-rs`,
19-
HTSGET_AUTH_FORWARD_ENDPOINT_TYPE: true,
20-
HTSGET_AUTH_FORWARD_ID: true,
21-
HTSGET_AUTH_SUPPRESS_ERRORS: true,
22-
HTSGET_AUTH_ADD_HINT: true,
23-
HTSGET_AUTH_FORWARD_EXTENSIONS: `[{ json_path=$.requestContext.identity.sourceVpcArn, name=SourceVpcArn }]`,
24-
AWS_LAMBDA_HTTP_IGNORE_STAGE_IN_PATH: true,
16+
HTSGET_LOCATIONS: "[]",
17+
HTSGET_DATA_SERVER: "None",
18+
HTSGET_AUTH_AUTHORIZATION_URL: `https://elsa-data.dev.umccr.org/api/integration/htsget-rs`,
19+
HTSGET_AUTH_FORWARD_ENDPOINT_TYPE: true,
20+
HTSGET_AUTH_FORWARD_ID: true,
21+
HTSGET_AUTH_SUPPRESS_ERRORS: true,
22+
HTSGET_AUTH_ADD_HINT: true,
23+
HTSGET_AUTH_FORWARD_EXTENSIONS: `[{ json_path=$.requestContext.identity.sourceVpcArn, name=SourceVpcArn }]`,
24+
AWS_LAMBDA_HTTP_IGNORE_STAGE_IN_PATH: true,
2525
},
2626
},
2727
build: {

aws-vpc-lattice/lib/htsget-vpc-lattice-lambda.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
import { Architecture } from "aws-cdk-lib/aws-lambda";
22
import { CfnOutput, Duration } from "aws-cdk-lib";
33
import { Construct } from "constructs";
4-
import {
5-
ManagedPolicy,
6-
Role,
7-
ServicePrincipal,
8-
} from "aws-cdk-lib/aws-iam";
4+
import { ManagedPolicy, Role, ServicePrincipal } from "aws-cdk-lib/aws-iam";
95
import { RustFunction } from "cargo-lambda-cdk";
10-
import {
11-
HtsgetVpcLatticeLambdaProps,
12-
} from "./htsget-vpc-lattice-lambda-props";
6+
import { HtsgetVpcLatticeLambdaProps } from "./htsget-vpc-lattice-lambda-props";
137
import { IVpc, SubnetType, Vpc } from "aws-cdk-lib/aws-ec2";
148
import { ARecord, HostedZone, RecordTarget } from "aws-cdk-lib/aws-route53";
159
import * as vpclattice from "aws-cdk-lib/aws-vpclattice";

aws-vpc-lattice/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"aws-cdk-lib": "^2.112.0"
1010
},
1111
"devDependencies": {
12-
"@types/node": "24.3.1",
12+
"@types/node": "^24.5.1",
1313
"aws-cdk": "^2.1031.0",
1414
"aws-cdk-lib": "^2.112.0",
1515
"constructs": "10.4.2",

aws/lib/htsget-lambda.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,10 @@ export class HtsgetLambda extends Construct {
112112
...props.buildEnvironment,
113113
},
114114
cargoLambdaFlags: props.cargoLambdaFlags ?? [
115-
HtsgetLambda.resolveFeatures(props.htsgetConfig, props.copyTestData ?? false),
115+
HtsgetLambda.resolveFeatures(
116+
props.htsgetConfig,
117+
props.copyTestData ?? false,
118+
),
116119
],
117120
},
118121
memorySize: 128,
@@ -178,7 +181,10 @@ export class HtsgetLambda extends Construct {
178181
/**
179182
* Determine the correct features based on the locations.
180183
*/
181-
public static resolveFeatures(config: HtsgetConfig, bucketSetup: boolean): string {
184+
public static resolveFeatures(
185+
config: HtsgetConfig,
186+
bucketSetup: boolean,
187+
): string {
182188
const features = [];
183189

184190
if (
@@ -344,7 +350,11 @@ export class HtsgetLambda extends Construct {
344350
/**
345351
* Creates a lambda role with the configured permissions.
346352
*/
347-
public static createRole(scope: Construct, id: string, roleName?: string): Role {
353+
public static createRole(
354+
scope: Construct,
355+
id: string,
356+
roleName?: string,
357+
): Role {
348358
return new Role(scope, "Role", {
349359
assumedBy: new ServicePrincipal("lambda.amazonaws.com"),
350360
description: "Lambda execution role for " + id,

pnpm-lock.yaml

Lines changed: 33 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)