I'm facing an issue while trying to import values generated and exported from a cdk stack that deploys into eu-west-1 into a different stack that needs to be deployed into af-south-1. The error message states that the export name does not exist:
EU
new CfnOutput(this, 'userPoolArn', {
value: this.userPoolPattern.userPoolArn,})
AF
const userPoolArn = cdk.Fn.importValue('EuWest1Infrastructure:userPoolArn');
Error:
AfSouth1Infrastructure | 0/44 | 20:10:55 | ROLLBACK_IN_PROGRESS | AWS::CloudFormation::Stack | AfSouth1Infrastructure No export named EuWest1Infrastructure:userPoolArn found. Rollback requested by user.
I have also tried using the value displayed in the console, but it still results in the same error.