Skip to content

Commit 64adf55

Browse files
committed
riff raff deplyment name format
1 parent 02c28e4 commit 64adf55

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

ab-testing/cdk/lib/riffRaffYamlFile.test.ts

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ test("riffRaffYamlFile", async () => {
4343
const region = "eu-west-1";
4444

4545
new AbTestingConfig(app, "AbTestingConfig", {
46-
stack: "frontend",
46+
stack,
4747
stage: "CODE",
4848
env: {
49-
region: "eu-west-1",
49+
region,
5050
},
5151
});
5252

5353
new AbTestingDeploymentLambda(app, "AbTestingDeploymentLambda", {
54-
stack: "frontend",
54+
stack,
5555
stage: "CODE",
5656
env: {
57-
region: "eu-west-1",
57+
region,
5858
},
5959
});
6060

@@ -63,19 +63,9 @@ test("riffRaffYamlFile", async () => {
6363
riffRaffYaml: { deployments },
6464
} = riffRaff;
6565

66-
const configCloudformationDeploymentName = [
67-
"cfn",
68-
region,
69-
stack,
70-
"ab-testing-config",
71-
].join("-");
66+
const configCloudformationDeploymentName = `cfn-${region}-${stack}-ab-testing-config`;
7267

73-
const deploymentLambdaDeploymentName = [
74-
"lambda-update",
75-
region,
76-
stack,
77-
"ab-testing-deployment-lambda",
78-
].join("-");
68+
const deploymentLambdaDeploymentName = `lambda-update-${region}-${stack}-ab-testing-deployment-lambda`;
7969

8070
const configCloudformationDeployment = deployments.get(
8171
configCloudformationDeploymentName,

0 commit comments

Comments
 (0)