Skip to content

Commit 08bae6d

Browse files
committed
fix deploymentUtils
1 parent 7e83ca2 commit 08bae6d

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/deploymentUtils/src/specifications/deleteProxygenDeployments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async function deleteEnvProxygenDeployments(
4747
const lambda = new LambdaClient({})
4848

4949
const exports = await getCloudFormationExports()
50-
const proxygenPrivateKeyArn = getCFConfigValue(exports, `account-resources:${proxygenPrivateKeyName}`)
50+
const proxygenPrivateKeyArn = getCFConfigValue(exports, `secrets-cdk:Secrets:${proxygenPrivateKeyName}:Arn`)
5151

5252
console.log(`Checking Apigee deployments of ${apigeeApi} on ${apigeeEnvironment}`)
5353
const instances = JSON.parse(await invokeLambda(

packages/deploymentUtils/src/specifications/deployApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export async function deployApi(
5353
})
5454

5555
const exports = await getCloudFormationExports()
56-
const proxygenPrivateKeyArn = getCFConfigValue(exports, `account-resources:${proxygenPrivateKeyExportName}`)
56+
const proxygenPrivateKeyArn = getCFConfigValue(exports, `secrets-cdk:Secrets:${proxygenPrivateKeyExportName}:Arn`)
5757

5858
let put_secret_lambda = "lambda-resources-ProxygenPTLMTLSSecretPut"
5959
let instance_put_lambda = "lambda-resources-ProxygenPTLInstancePut"

packages/deploymentUtils/tests/specifications/deleteProxygenDeployments.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function createFetchResponse(state: string, ok = true, status = 200, textBody =
3939
describe("deleteProxygenDeployments", () => {
4040
beforeEach(() => {
4141
getCloudFormationExportsMock.mockReset().mockResolvedValue({
42-
"account-resources:proxygenKey": "arn:proxygen-key"
42+
"secrets-cdk:Secrets:proxygenKey:Arn": "arn:proxygen-key"
4343
})
4444
invokeLambdaMock.mockReset()
4545

packages/deploymentUtils/tests/specifications/deployApi.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function createSpec(overrides: SpecOverrides = {}) {
6565
}
6666

6767
const defaultExportsMap = {
68-
"account-resources:proxygenKey": "arn:proxygen-key"
68+
"secrets-cdk:Secrets:proxygenKey:Arn": "arn:proxygen-key"
6969
}
7070

7171
function buildConfig(overrides: Partial<ApiConfig> = {}): ApiConfig {

0 commit comments

Comments
 (0)