https://pulumi.com logo
#general
Title
# general
e

early-musician-41645

01/09/2019, 10:41 PM
Anyone understand why I can't convert an ARN that I exported in one stack to a string that I read from config?
Copy code
let iamStack = new pulumi.StackReference(config.require("aws-iam-stack"));

let clusterAutomationAccessRoleArn = iamStack.getOutput("clusterAutomationAccessRoleArn");
if (config.get("clusterAutomationAccessRoleArn") != undefined) {
  clusterAutomationAccessRoleArn = config.require("clusterAutomationAccessRoleArn");
}
Copy code
index.ts(71,3): error TS2322: Type 'string' is not assignable to type 'Output<any>'.
The ARN is exported in another stack like this:
Copy code
export const clusterAutomationAccessRoleArn = automationRole.arn;