diff --git a/packages/@aws-cdk/aws-sns-subscriptions/lib/url.ts b/packages/@aws-cdk/aws-sns-subscriptions/lib/url.ts index 222aa70421851..c3692a0a9852a 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,