sparse-intern-71089
06/14/2023, 12:47 AMmillions-furniture-75402
06/14/2023, 12:42 PMexport const apiAccessKeyIds = [...];
The the stack you create in the automation api can use a stack reference to get those outputs:
const myBaseInfrastructureStack = new pulumi.StackReference("my-org/my-project/my-base-infrastructure-stack");
const apiAccessKeyIds = sharedInfrastructureStack.getOutput("apiAccessKeyIds");
apiAccessKeyIds.apply(apiAccessKeyIdsValue => {
apiAccessKeyIdsValue.forEach(accessKey => {
new aws.apigateway.UsagePlanKey(
`${appName}-api-${accessKey}`,
{ keyId: apiAccessKeyIdsValue[accessKey] as string, keyType: "API_KEY", usagePlanId: apiAppUsagePlan.id },
{ additionalSecretOutputs: ["value"], parent: apiAppUsagePlan },
);
});
});
icy-controller-6092
06/14/2023, 5:52 PMstack.setConfig('databricks:token', ...)
- in the end, Evan's solution to select a dummy stack is what did the magic trick: https://pulumi-community.slack.com/archives/C019YSXN04B/p1686690675302049?thread_ts=1686635500.103289&cid=C019YSXN04B