Skip to content

Commit 56330a7

Browse files
committed
Enable all 5 stacks to co-exist
1 parent d49fa1b commit 56330a7

File tree

5 files changed

+3658
-1911
lines changed

5 files changed

+3658
-1911
lines changed

serverless-compare-langs/java-graalvm/infrastructure/src/main/java/software/amazonaws/example/infrastructure/InfrastructureApp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class InfrastructureApp {
1414
public static void main(final String[] args) {
1515
App app = new App();
1616

17-
InfrastructureStack infrastructureStack = new InfrastructureStack(app, "GraalVMPerfTestStack", StackProps.builder()
17+
InfrastructureStack infrastructureStack = new InfrastructureStack(app, "java-graalvm-serverless-demo", StackProps.builder()
1818
.env(Environment.builder()
1919
.account(System.getenv("CDK_DEFAULT_ACCOUNT"))
2020
.region(System.getenv("CDK_DEFAULT_REGION"))

serverless-compare-langs/java-graalvm/infrastructure/src/main/java/software/amazonaws/example/infrastructure/InfrastructureStack.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public InfrastructureStack(final Construct parent, final String id) {
4848
public InfrastructureStack(final Construct parent, final String id, final StackProps props) {
4949
super(parent, id, props);
5050

51-
Table productsTable = Table.Builder.create(this, "Products")
52-
.tableName("Products")
51+
Table productsTable = Table.Builder.create(this, "JavaGraalVMProducts")
52+
.tableName("JavaGraalVMProducts")
5353
.partitionKey(Attribute.builder()
5454
.type(AttributeType.STRING)
5555
.name("PK")
@@ -66,15 +66,15 @@ public InfrastructureStack(final Construct parent, final String id, final StackP
6666

6767
BundlingOptions builderOptions = BundlingOptions.builder()
6868
.command(functionOnePackagingInstructions)
69-
.image(DockerImage.fromRegistry("marksailes/al2-graalvm:17-22.2.0"))
69+
.image(DockerImage.fromRegistry("marksailes/al2-graalvm:17-22.2.0"))
7070
// .image(DockerImage.fromRegistry("marksailes/arm64-al2-graalvm:17-22.2.0"))
71-
.volumes(singletonList(
72-
DockerVolume.builder()
73-
.hostPath(System.getProperty("user.home") + "/.m2/")
74-
.containerPath("/root/.m2/")
75-
.build()
76-
))
77-
.user("root")
71+
// .volumes(singletonList(
72+
// DockerVolume.builder()
73+
// .hostPath(System.getProperty("user.home") + "/.m2/")
74+
// .containerPath("/root/.m2/")
75+
// .build()
76+
// ))
77+
// .user("root")
7878
.outputType(ARCHIVED)
7979
.build();
8080

serverless-compare-langs/kotlin/infrastructure/src/main/kotlin/com/myorg/InfrastructureApp.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import software.amazon.awscdk.Environment
99
fun main() {
1010
val app = App()
1111
val infrastructureStack = InfrastructureStack(
12-
app, "ServerlessKotlinDemo", StackProps.builder()
12+
app, "kotlin-serverless-demo", StackProps.builder()
1313
.env(
1414
Environment.builder()
1515
.account(System.getenv("CDK_DEFAULT_ACCOUNT"))

serverless-compare-langs/typescript/bin/serverless-typescript-demo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as cdk from "aws-cdk-lib";
66
import { ServerlessTypescriptDemoStack } from '../lib/serverless-typescript-demo-stack';
77

88
const app = new cdk.App();
9-
new ServerlessTypescriptDemoStack(app, 'ServerlessTypescriptDemoStack', {
9+
new ServerlessTypescriptDemoStack(app, 'typescript-serverless-demo', {
1010
/* If you don't specify 'env', this stack will be environment-agnostic.
1111
* Account/Region-dependent features and context lookups will not work,
1212
* but a single synthesized template can be deployed anywhere. */

0 commit comments

Comments
 (0)