diff --git a/packages/@aws-cdk/aws-sns-subscriptions/lib/url.ts b/packages/@aws-cdk/aws-sns-subscriptions/lib/url.ts index ca423094f2f88..7bcdf82b38e08 100644 --- a/packages/@aws-cdk/aws-sns-subscriptions/lib/url.ts +++ b/packages/@aws-cdk/aws-sns-subscriptions/lib/url.ts @@ -30,7 +30,7 @@ export class UrlSubscription implements sns.ITopicSubscription { } public bind(scope: Construct, topic: sns.ITopic): void { - new sns.Subscription(scope, topic.node.uniqueId + 'Url', { + new sns.Subscription(scope, Token.isUnresolved(this.url) ? 'UnresolvedUrl' : this.url, { topic, endpoint: this.url, protocol: this.protocol,