|
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 { Platform } from "aws-cdk-lib/aws-ecr-assets"; |
@@ -351,28 +352,29 @@ export class StactoolsItemGenerator extends Construct { |
351 | 352 | // The consuming construct should handle this permission |
352 | 353 |
|
353 | 354 | // Create outputs |
| 355 | + const exportPrefix = Stack.of(this).stackName; |
354 | 356 | new CfnOutput(this, "TopicArn", { |
355 | 357 | value: this.topic.topicArn, |
356 | 358 | description: "ARN of the StactoolsItemGenerator SNS Topic", |
357 | | - exportName: "stactools-item-generator-topic-arn", |
| 359 | + exportName: `${exportPrefix}-stactools-item-generator-topic-arn`, |
358 | 360 | }); |
359 | 361 |
|
360 | 362 | new CfnOutput(this, "QueueUrl", { |
361 | 363 | value: this.queue.queueUrl, |
362 | 364 | description: "URL of the StactoolsItemGenerator SQS Queue", |
363 | | - exportName: "stactools-item-generator-queue-url", |
| 365 | + exportName: `${exportPrefix}-stactools-item-generator-queue-url`, |
364 | 366 | }); |
365 | 367 |
|
366 | 368 | new CfnOutput(this, "DeadLetterQueueUrl", { |
367 | 369 | value: this.deadLetterQueue.queueUrl, |
368 | 370 | description: "URL of the StactoolsItemGenerator Dead Letter Queue", |
369 | | - exportName: "stactools-item-generator-deadletter-queue-url", |
| 371 | + exportName: `${exportPrefix}-stactools-item-generator-deadletter-queue-url`, |
370 | 372 | }); |
371 | 373 |
|
372 | 374 | new CfnOutput(this, "FunctionName", { |
373 | 375 | value: this.lambdaFunction.functionName, |
374 | 376 | description: "Name of the StactoolsItemGenerator Lambda Function", |
375 | | - exportName: "stactools-item-generator-function-name", |
| 377 | + exportName: `${exportPrefix}-stactools-item-generator-function-name`, |
376 | 378 | }); |
377 | 379 | } |
378 | 380 | } |
0 commit comments