Skip to content

Commit ed91382

Browse files
committed
make riff raff yaml generation clearer
1 parent 903f1a2 commit ed91382

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

ab-testing/cdk/lib/riffRaffYamlFile.ts

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,24 @@ export const riffRaffYamlFile = ({
5555
});
5656

5757
const configCloudformationDeployment = deployments.get(
58-
["cfn", region, stack, "ab-testing-config"].join("-"),
58+
`cfn-${region}-${stack}-ab-testing-config`,
5959
)!;
6060

61-
configCloudformationDeployment.dependencies = [
62-
...(configCloudformationDeployment.dependencies ?? []),
63-
// We need the test artifacts in place before running the ab-testing-config CloudFormation deployment
64-
"config/ab-testing",
65-
// We need the lambda to be updated before running the ab-testing-config CloudFormation deployment
66-
["lambda-update", region, stack, "ab-testing-deployment-lambda"].join(
67-
"-",
68-
),
69-
];
61+
deployments.set(`cfn-${region}-${stack}-ab-testing-config`, {
62+
...configCloudformationDeployment,
63+
dependencies: [
64+
...(configCloudformationDeployment.dependencies ?? []),
65+
// We need the test artifacts in place before running the ab-testing-config CloudFormation deployment
66+
"config/ab-testing",
67+
// We need the lambda to be updated before running the ab-testing-config CloudFormation deployment
68+
[
69+
"lambda-update",
70+
region,
71+
stack,
72+
"ab-testing-deployment-lambda",
73+
].join("-"),
74+
],
75+
});
7076

7177
return riffRaff;
7278
};

0 commit comments

Comments
 (0)