|
8 | 8 | aws_logs as logs, |
9 | 9 | Duration, |
10 | 10 | CfnOutput, |
| 11 | + Stack, |
11 | 12 | } from "aws-cdk-lib"; |
12 | 13 | import { Construct } from "constructs"; |
13 | 14 | import { PgStacDatabase } from "../database"; |
@@ -451,28 +452,29 @@ export class StacLoader extends Construct { |
451 | 452 | ); |
452 | 453 |
|
453 | 454 | // Create outputs |
| 455 | + const exportPrefix = Stack.of(this).stackName; |
454 | 456 | new CfnOutput(this, "TopicArn", { |
455 | 457 | value: this.topic.topicArn, |
456 | 458 | description: "ARN of the StacLoader SNS Topic", |
457 | | - exportName: "stac-loader-topic-arn", |
| 459 | + exportName: `${exportPrefix}-stac-loader-topic-arn`, |
458 | 460 | }); |
459 | 461 |
|
460 | 462 | new CfnOutput(this, "QueueUrl", { |
461 | 463 | value: this.queue.queueUrl, |
462 | 464 | description: "URL of the StacLoader SQS Queue", |
463 | | - exportName: "stac-loader-queue-url", |
| 465 | + exportName: `${exportPrefix}-stac-loader-queue-url`, |
464 | 466 | }); |
465 | 467 |
|
466 | 468 | new CfnOutput(this, "DeadLetterQueueUrl", { |
467 | 469 | value: this.deadLetterQueue.queueUrl, |
468 | 470 | description: "URL of the StacLoader Dead Letter Queue", |
469 | | - exportName: "stac-loader-deadletter-queue-url", |
| 471 | + exportName: `${exportPrefix}-stac-loader-deadletter-queue-url`, |
470 | 472 | }); |
471 | 473 |
|
472 | 474 | new CfnOutput(this, "FunctionName", { |
473 | 475 | value: this.lambdaFunction.functionName, |
474 | 476 | description: "Name of the StacLoader Lambda Function", |
475 | | - exportName: "stac-loader-function-name", |
| 477 | + exportName: `${exportPrefix}-stac-loader-function-name`, |
476 | 478 | }); |
477 | 479 | } |
478 | 480 | } |
|
0 commit comments