Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(aws-kinesisfirehose-s3): fixed name resource causes name collision #990

Open
biffgaut opened this issue Aug 26, 2023 · 0 comments
Open
Labels
bug Something isn't working needs-triage The issue or PR still needs to be triaged

Comments

@biffgaut
Copy link
Contributor

A fixed resource name causes a resource name collision when deploying 2 aws-kinesisfirehose-s3 constructs in the same stack.

Reproduction Steps

import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { KinesisFirehoseToS3 } from '@aws-solutions-constructs/aws-kinesisfirehose-s3';

export class FirehoseBugStack extends cdk.Stack {
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);

new KinesisFirehoseToS3(this, 'test-firehose-s3', {});
new KinesisFirehoseToS3(this, 'second-instance', {});

}
}

Error Log

(...)/node_modules/constructs/src/construct.ts:423
throw new Error(There is already a Construct with name '${childName}' in ${typeName}${name.length > 0 ? ' [' + name + ']' : ''});
^


This is 🐛 Bug Report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage The issue or PR still needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant