From 0c7c7e4a7c34957ff7877eda5171f82c5feaba1d Mon Sep 17 00:00:00 2001 From: Jung Lee <97768438+jungle-amazon@users.noreply.github.com> Date: Thu, 16 Feb 2023 13:25:17 -0800 Subject: [PATCH] fix(servicecatalogappregistry): Allow user to control stack id via stack name for Application stack (#24171) * Assign value of `stackName` to `stackId` for Application stack, so the stack id will always be the same as stack name. Users wanting to control stack id can do so via `stackName`. Closes #24160. Background: * Customers wish to control or modify the stack id of the Application stack to follow their project conventions within CDK. * In previous [fix](https://github.com/aws/aws-cdk/pull/23823), we had deprecated the stack id to push users towards using stack name as the main mechanism for stack identification. Note on backward-compatibility: After this change, the `stackId` parameter can no longer be used to control the application stack id. The stack id will always match stack name, and the default stack name if not specified will be `Application-${APPLICATION_IDENTIFIER}-Stack`. `${APPLICATION_IDENTIFIER}` is application name for CreateTargetApplication and application id for ExistingTargetApplication. If you created an application stack prior to aws-cdk [release v2.64.0](https://github.com/aws/aws-cdk/releases/tag/v2.64.0) and did not specify a stack id or name, you may run into the following error during deployment due to the creation attempt of a new stack with the same application: ```log Resource handler returned message: "You already own an application 'MyApplicationName' (Service: ServiceCatalogAppRegistry, Status Code: 409, Request ID: xxxx)" (RequestToken: yyyy, HandlerErrorCode: InvalidRequest) ``` To address this error, you can set the `stackName` value to match your existing stack. For example: ```typescript const associatedApp = new ApplicationAssociator(app, 'MyApplicationAssociator', { applications: [ TargetApplication.createApplicationStack({ applicationName: 'MyApplicationName', stackName: 'ApplicationAssociatorStack', // Add your existing stack name here ... ``` This will result in the existing stack deploying with the previous name, and the id in CDK will reflect this same stack name. Related links: * Previous PR: https://github.com/aws/aws-cdk/pull/23823 * Previous GitHub issue: https://github.com/aws/aws-cdk/issues/23861 * Original reason that introduced `stackId`: https://github.com/aws/aws-cdk/pull/22508 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .../lib/target-application.ts | 8 ++--- ...ryAssociatedApplication-Stack.assets.json} | 4 +-- ...AssociatedApplication-Stack.template.json} | 0 ...efaultTestDeployAssert2A5F2DB9.assets.json | 2 +- ...aultTestDeployAssert2A5F2DB9.template.json | 0 .../cdk.out | 1 + ...catalogappregistry-application.assets.json | 2 +- ...talogappregistry-application.template.json | 0 .../integ.json | 2 +- ...licationresourcesStack4399A149.assets.json | 2 +- ...cationresourcesStack4399A149.template.json | 0 .../manifest.json | 35 +++++++++---------- .../tree.json | 18 +++++----- ...stacks-association-no-stack-id-or-name.ts} | 0 .../cdk.out | 1 - 15 files changed, 37 insertions(+), 38 deletions(-) rename packages/@aws-cdk/aws-servicecatalogappregistry/test/{integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/ApplicationAssociatorStack.assets.json => integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/Application-AppRegistryAssociatedApplication-Stack.assets.json} (84%) rename packages/@aws-cdk/aws-servicecatalogappregistry/test/{integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/ApplicationAssociatorStack.template.json => integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/Application-AppRegistryAssociatedApplication-Stack.template.json} (100%) rename packages/@aws-cdk/aws-servicecatalogappregistry/test/{integ.application-associator.all-stacks-association-no-stack-name.js.snapshot => integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot}/ApplicationAssociatorTestDefaultTestDeployAssert2A5F2DB9.assets.json (96%) rename packages/@aws-cdk/aws-servicecatalogappregistry/test/{integ.application-associator.all-stacks-association-no-stack-name.js.snapshot => integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot}/ApplicationAssociatorTestDefaultTestDeployAssert2A5F2DB9.template.json (100%) create mode 100644 packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/cdk.out rename packages/@aws-cdk/aws-servicecatalogappregistry/test/{integ.application-associator.all-stacks-association-no-stack-name.js.snapshot => integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot}/integ-servicecatalogappregistry-application.assets.json (96%) rename packages/@aws-cdk/aws-servicecatalogappregistry/test/{integ.application-associator.all-stacks-association-no-stack-name.js.snapshot => integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot}/integ-servicecatalogappregistry-application.template.json (100%) rename packages/@aws-cdk/aws-servicecatalogappregistry/test/{integ.application-associator.all-stacks-association-no-stack-name.js.snapshot => integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot}/integ.json (93%) rename packages/@aws-cdk/aws-servicecatalogappregistry/test/{integ.application-associator.all-stacks-association-no-stack-name.js.snapshot => integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot}/integservicecatalogappregistryapplicationresourcesStack4399A149.assets.json (96%) rename packages/@aws-cdk/aws-servicecatalogappregistry/test/{integ.application-associator.all-stacks-association-no-stack-name.js.snapshot => integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot}/integservicecatalogappregistryapplicationresourcesStack4399A149.template.json (100%) rename packages/@aws-cdk/aws-servicecatalogappregistry/test/{integ.application-associator.all-stacks-association-no-stack-name.js.snapshot => integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot}/manifest.json (90%) rename packages/@aws-cdk/aws-servicecatalogappregistry/test/{integ.application-associator.all-stacks-association-no-stack-name.js.snapshot => integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot}/tree.json (92%) rename packages/@aws-cdk/aws-servicecatalogappregistry/test/{integ.application-associator.all-stacks-association-no-stack-name.ts => integ.application-associator.all-stacks-association-no-stack-id-or-name.ts} (100%) delete mode 100644 packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/cdk.out diff --git a/packages/@aws-cdk/aws-servicecatalogappregistry/lib/target-application.ts b/packages/@aws-cdk/aws-servicecatalogappregistry/lib/target-application.ts index 68e77d73031ff..4cfc387a90e67 100644 --- a/packages/@aws-cdk/aws-servicecatalogappregistry/lib/target-application.ts +++ b/packages/@aws-cdk/aws-servicecatalogappregistry/lib/target-application.ts @@ -10,8 +10,8 @@ export interface TargetApplicationCommonOptions extends cdk.StackProps { * Stack ID in which application will be created or imported. The id of a stack is also the identifier that you use to * refer to it in the [AWS CDK Toolkit](https://docs.aws.amazon.com/cdk/v2/guide/cli.html). * - * @default - ApplicationAssociatorStack - * @deprecated - Use `stackName` instead to control the name of the stack + * @default - The value of `stackName` will be used as stack id + * @deprecated - Use `stackName` instead to control the name and id of the stack */ readonly stackId?: string; } @@ -91,9 +91,9 @@ class CreateTargetApplication extends TargetApplication { super(); } public bind(scope: Construct): BindTargetApplicationResult { - const stackId = this.applicationOptions.stackId ?? 'ApplicationAssociatorStack'; (this.applicationOptions.stackName as string) = this.applicationOptions.stackName || `Application-${this.applicationOptions.applicationName}-Stack`; + const stackId = this.applicationOptions.stackName; (this.applicationOptions.description as string) = this.applicationOptions.description || 'Stack to create AppRegistry application'; (this.applicationOptions.env as cdk.Environment) = @@ -122,9 +122,9 @@ class ExistingTargetApplication extends TargetApplication { public bind(scope: Construct): BindTargetApplicationResult { const arnComponents = cdk.Arn.split(this.applicationOptions.applicationArnValue, cdk.ArnFormat.SLASH_RESOURCE_SLASH_RESOURCE_NAME); const applicationId = arnComponents.resourceName; - const stackId = this.applicationOptions.stackId ?? 'ApplicationAssociatorStack'; (this.applicationOptions.stackName as string) = this.applicationOptions.stackName || `Application-${applicationId}-Stack`; + const stackId = this.applicationOptions.stackName; const applicationStack = new cdk.Stack(scope, stackId, this.applicationOptions); const appRegApplication = Application.fromApplicationArn(applicationStack, 'ExistingApplication', this.applicationOptions.applicationArnValue); return { diff --git a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/ApplicationAssociatorStack.assets.json b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/Application-AppRegistryAssociatedApplication-Stack.assets.json similarity index 84% rename from packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/ApplicationAssociatorStack.assets.json rename to packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/Application-AppRegistryAssociatedApplication-Stack.assets.json index 70221d811cb08..74162339e9012 100644 --- a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/ApplicationAssociatorStack.assets.json +++ b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/Application-AppRegistryAssociatedApplication-Stack.assets.json @@ -1,9 +1,9 @@ { - "version": "29.0.0", + "version": "30.0.0", "files": { "c4d674e9642d6dbbd0df5c93890473101fc95bbc70de7e28d79ba771b5284de8": { "source": { - "path": "ApplicationAssociatorStack.template.json", + "path": "Application-AppRegistryAssociatedApplication-Stack.template.json", "packaging": "file" }, "destinations": { diff --git a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/ApplicationAssociatorStack.template.json b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/Application-AppRegistryAssociatedApplication-Stack.template.json similarity index 100% rename from packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/ApplicationAssociatorStack.template.json rename to packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/Application-AppRegistryAssociatedApplication-Stack.template.json diff --git a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/ApplicationAssociatorTestDefaultTestDeployAssert2A5F2DB9.assets.json b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/ApplicationAssociatorTestDefaultTestDeployAssert2A5F2DB9.assets.json similarity index 96% rename from packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/ApplicationAssociatorTestDefaultTestDeployAssert2A5F2DB9.assets.json rename to packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/ApplicationAssociatorTestDefaultTestDeployAssert2A5F2DB9.assets.json index 19cf0cfbe5262..c141cef89ac42 100644 --- a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/ApplicationAssociatorTestDefaultTestDeployAssert2A5F2DB9.assets.json +++ b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/ApplicationAssociatorTestDefaultTestDeployAssert2A5F2DB9.assets.json @@ -1,5 +1,5 @@ { - "version": "29.0.0", + "version": "30.0.0", "files": { "19dd33f3c17e59cafd22b9459b0a8d9bedbd42252737fedb06b2bcdbcf7809cc": { "source": { diff --git a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/ApplicationAssociatorTestDefaultTestDeployAssert2A5F2DB9.template.json b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/ApplicationAssociatorTestDefaultTestDeployAssert2A5F2DB9.template.json similarity index 100% rename from packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/ApplicationAssociatorTestDefaultTestDeployAssert2A5F2DB9.template.json rename to packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/ApplicationAssociatorTestDefaultTestDeployAssert2A5F2DB9.template.json diff --git a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/cdk.out b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/cdk.out new file mode 100644 index 0000000000000..ae4b03c54e770 --- /dev/null +++ b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/cdk.out @@ -0,0 +1 @@ +{"version":"30.0.0"} \ No newline at end of file diff --git a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/integ-servicecatalogappregistry-application.assets.json b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/integ-servicecatalogappregistry-application.assets.json similarity index 96% rename from packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/integ-servicecatalogappregistry-application.assets.json rename to packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/integ-servicecatalogappregistry-application.assets.json index 465a46f897a34..f1e120d999314 100644 --- a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/integ-servicecatalogappregistry-application.assets.json +++ b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/integ-servicecatalogappregistry-application.assets.json @@ -1,5 +1,5 @@ { - "version": "29.0.0", + "version": "30.0.0", "files": { "19dd33f3c17e59cafd22b9459b0a8d9bedbd42252737fedb06b2bcdbcf7809cc": { "source": { diff --git a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/integ-servicecatalogappregistry-application.template.json b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/integ-servicecatalogappregistry-application.template.json similarity index 100% rename from packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/integ-servicecatalogappregistry-application.template.json rename to packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/integ-servicecatalogappregistry-application.template.json diff --git a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/integ.json b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/integ.json similarity index 93% rename from packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/integ.json rename to packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/integ.json index 6f9dd948020ab..71cb8691fb18e 100644 --- a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/integ.json +++ b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/integ.json @@ -1,5 +1,5 @@ { - "version": "29.0.0", + "version": "30.0.0", "testCases": { "ApplicationAssociatorTest/DefaultTest": { "stacks": [ diff --git a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/integservicecatalogappregistryapplicationresourcesStack4399A149.assets.json b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/integservicecatalogappregistryapplicationresourcesStack4399A149.assets.json similarity index 96% rename from packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/integservicecatalogappregistryapplicationresourcesStack4399A149.assets.json rename to packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/integservicecatalogappregistryapplicationresourcesStack4399A149.assets.json index 9ca55e04832e1..721234bcc5aec 100644 --- a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/integservicecatalogappregistryapplicationresourcesStack4399A149.assets.json +++ b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/integservicecatalogappregistryapplicationresourcesStack4399A149.assets.json @@ -1,5 +1,5 @@ { - "version": "29.0.0", + "version": "30.0.0", "files": { "19dd33f3c17e59cafd22b9459b0a8d9bedbd42252737fedb06b2bcdbcf7809cc": { "source": { diff --git a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/integservicecatalogappregistryapplicationresourcesStack4399A149.template.json b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/integservicecatalogappregistryapplicationresourcesStack4399A149.template.json similarity index 100% rename from packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/integservicecatalogappregistryapplicationresourcesStack4399A149.template.json rename to packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/integservicecatalogappregistryapplicationresourcesStack4399A149.template.json diff --git a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/manifest.json b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/manifest.json similarity index 90% rename from packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/manifest.json rename to packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/manifest.json index 60176a0715996..a6c88f1f852df 100644 --- a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/manifest.json +++ b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/manifest.json @@ -1,5 +1,5 @@ { - "version": "29.0.0", + "version": "30.0.0", "artifacts": { "integservicecatalogappregistryapplicationresourcesStack4399A149.assets": { "type": "cdk:asset-manifest", @@ -30,7 +30,7 @@ } }, "dependencies": [ - "ApplicationAssociatorStack", + "Application-AppRegistryAssociatedApplication-Stack", "integservicecatalogappregistryapplicationresourcesStack4399A149.assets" ], "metadata": { @@ -94,7 +94,7 @@ } }, "dependencies": [ - "ApplicationAssociatorStack", + "Application-AppRegistryAssociatedApplication-Stack", "integ-servicecatalogappregistry-application.assets" ], "metadata": { @@ -129,19 +129,19 @@ }, "displayName": "integ-servicecatalogappregistry-application" }, - "ApplicationAssociatorStack.assets": { + "Application-AppRegistryAssociatedApplication-Stack.assets": { "type": "cdk:asset-manifest", "properties": { - "file": "ApplicationAssociatorStack.assets.json", + "file": "Application-AppRegistryAssociatedApplication-Stack.assets.json", "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" } }, - "ApplicationAssociatorStack": { + "Application-AppRegistryAssociatedApplication-Stack": { "type": "aws:cloudformation:stack", "environment": "aws://416623072619/us-east-1", "properties": { - "templateFile": "ApplicationAssociatorStack.template.json", + "templateFile": "Application-AppRegistryAssociatedApplication-Stack.template.json", "validateOnSynth": false, "assumeRoleArn": "arn:${AWS::Partition}:iam::416623072619:role/cdk-hnb659fds-deploy-role-416623072619-us-east-1", "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::416623072619:role/cdk-hnb659fds-cfn-exec-role-416623072619-us-east-1", @@ -149,51 +149,50 @@ "requiresBootstrapStackVersion": 6, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", "additionalDependencies": [ - "ApplicationAssociatorStack.assets" + "Application-AppRegistryAssociatedApplication-Stack.assets" ], "lookupRole": { "arn": "arn:${AWS::Partition}:iam::416623072619:role/cdk-hnb659fds-lookup-role-416623072619-us-east-1", "requiresBootstrapStackVersion": 8, "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" - }, - "stackName": "Application-AppRegistryAssociatedApplication-Stack" + } }, "dependencies": [ - "ApplicationAssociatorStack.assets" + "Application-AppRegistryAssociatedApplication-Stack.assets" ], "metadata": { - "/ApplicationAssociatorStack/DefaultCdkApplication/Resource": [ + "/Application-AppRegistryAssociatedApplication-Stack/DefaultCdkApplication/Resource": [ { "type": "aws:cdk:logicalId", "data": "DefaultCdkApplication4573D5A3" } ], - "/ApplicationAssociatorStack/DefaultCdkApplication/ApplicationManagerUrl": [ + "/Application-AppRegistryAssociatedApplication-Stack/DefaultCdkApplication/ApplicationManagerUrl": [ { "type": "aws:cdk:logicalId", "data": "DefaultCdkApplicationApplicationManagerUrl27C138EF" } ], - "/ApplicationAssociatorStack/AppRegistryAssociation": [ + "/Application-AppRegistryAssociatedApplication-Stack/AppRegistryAssociation": [ { "type": "aws:cdk:logicalId", "data": "AppRegistryAssociation" } ], - "/ApplicationAssociatorStack/BootstrapVersion": [ + "/Application-AppRegistryAssociatedApplication-Stack/BootstrapVersion": [ { "type": "aws:cdk:logicalId", "data": "BootstrapVersion" } ], - "/ApplicationAssociatorStack/CheckBootstrapVersion": [ + "/Application-AppRegistryAssociatedApplication-Stack/CheckBootstrapVersion": [ { "type": "aws:cdk:logicalId", "data": "CheckBootstrapVersion" } ] }, - "displayName": "ApplicationAssociatorStack" + "displayName": "Application-AppRegistryAssociatedApplication-Stack" }, "ApplicationAssociatorTestDefaultTestDeployAssert2A5F2DB9.assets": { "type": "cdk:asset-manifest", @@ -224,7 +223,7 @@ } }, "dependencies": [ - "ApplicationAssociatorStack", + "Application-AppRegistryAssociatedApplication-Stack", "ApplicationAssociatorTestDefaultTestDeployAssert2A5F2DB9.assets" ], "metadata": { diff --git a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/tree.json b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/tree.json similarity index 92% rename from packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/tree.json rename to packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/tree.json index cdc1e803cbc18..1ff61db9ea6f7 100644 --- a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/tree.json +++ b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.js.snapshot/tree.json @@ -100,17 +100,17 @@ "version": "0.0.0" } }, - "ApplicationAssociatorStack": { - "id": "ApplicationAssociatorStack", - "path": "ApplicationAssociatorStack", + "Application-AppRegistryAssociatedApplication-Stack": { + "id": "Application-AppRegistryAssociatedApplication-Stack", + "path": "Application-AppRegistryAssociatedApplication-Stack", "children": { "DefaultCdkApplication": { "id": "DefaultCdkApplication", - "path": "ApplicationAssociatorStack/DefaultCdkApplication", + "path": "Application-AppRegistryAssociatedApplication-Stack/DefaultCdkApplication", "children": { "Resource": { "id": "Resource", - "path": "ApplicationAssociatorStack/DefaultCdkApplication/Resource", + "path": "Application-AppRegistryAssociatedApplication-Stack/DefaultCdkApplication/Resource", "attributes": { "aws:cdk:cloudformation:type": "AWS::ServiceCatalogAppRegistry::Application", "aws:cdk:cloudformation:props": { @@ -128,7 +128,7 @@ }, "ApplicationManagerUrl": { "id": "ApplicationManagerUrl", - "path": "ApplicationAssociatorStack/DefaultCdkApplication/ApplicationManagerUrl", + "path": "Application-AppRegistryAssociatedApplication-Stack/DefaultCdkApplication/ApplicationManagerUrl", "constructInfo": { "fqn": "@aws-cdk/core.CfnOutput", "version": "0.0.0" @@ -142,7 +142,7 @@ }, "AppRegistryAssociation": { "id": "AppRegistryAssociation", - "path": "ApplicationAssociatorStack/AppRegistryAssociation", + "path": "Application-AppRegistryAssociatedApplication-Stack/AppRegistryAssociation", "attributes": { "aws:cdk:cloudformation:type": "AWS::ServiceCatalogAppRegistry::ResourceAssociation", "aws:cdk:cloudformation:props": { @@ -165,7 +165,7 @@ }, "BootstrapVersion": { "id": "BootstrapVersion", - "path": "ApplicationAssociatorStack/BootstrapVersion", + "path": "Application-AppRegistryAssociatedApplication-Stack/BootstrapVersion", "constructInfo": { "fqn": "@aws-cdk/core.CfnParameter", "version": "0.0.0" @@ -173,7 +173,7 @@ }, "CheckBootstrapVersion": { "id": "CheckBootstrapVersion", - "path": "ApplicationAssociatorStack/CheckBootstrapVersion", + "path": "Application-AppRegistryAssociatedApplication-Stack/CheckBootstrapVersion", "constructInfo": { "fqn": "@aws-cdk/core.CfnRule", "version": "0.0.0" diff --git a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.ts b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.ts similarity index 100% rename from packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.ts rename to packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-id-or-name.ts diff --git a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/cdk.out b/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/cdk.out deleted file mode 100644 index d8b441d447f8a..0000000000000 --- a/packages/@aws-cdk/aws-servicecatalogappregistry/test/integ.application-associator.all-stacks-association-no-stack-name.js.snapshot/cdk.out +++ /dev/null @@ -1 +0,0 @@ -{"version":"29.0.0"} \ No newline at end of file