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

fix(servicecatalogappregistry): allow disabling automatic CfnOutput #24483

Merged
merged 3 commits into from
Mar 7, 2023

Conversation

liwewang-amazon
Copy link
Contributor

When an application is created using Application construct, an output is automatically created in the customer defined stack without customer's intention to show related Application Manager URL for the application created. This can increase customer's CFN output usage without customer acknowledge and control.

This commit:

  • emits the CFN Output in the AppRegistry managed stack where the application is created to allow all the stacks deployed in the cdk project to be associated to the application. Customers can control whether to emit the URL as CFN output by setting emitApplicationManagerUrlAsOutput.
  • changes applicationManagerUrl to a string type. Customers can create further create CFN output from this property.

Closes #23779

BREAKING CHANGE: This commit contains destructive changes to the RAM Share.
Since the application RAM share name is calculated by the application construct, where one property is removed. Integration test detects a breaking change where RAM share will be created. Integration test snapshot is updated to cater this destructive change.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

…t. And Add a flag to control if application creating stack emits Application Manager URL as output.

<body>

Testing done
-------------------------------------
*

Related items
------------------------------------
* SIM/auto-cut ticket
<body>

Testing done
-------------------------------------
*

Related items
------------------------------------
* SIM/auto-cut ticket
@github-actions github-actions bot added the beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK label Mar 6, 2023
@aws-cdk-automation aws-cdk-automation requested a review from a team March 6, 2023 20:22
@github-actions github-actions bot added effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2 labels Mar 6, 2023
@liwewang-amazon liwewang-amazon changed the title fix(servicecatalogappregistry): Application Manager URL as CFN Output only if the application is created by TargetApplication.createApplicationStack fix(servicecatalogappregistry): change application manager url as string type in application construct, and add control to application manager url cfn output Mar 6, 2023
@liwewang-amazon liwewang-amazon changed the title fix(servicecatalogappregistry): change application manager url as string type in application construct, and add control to application manager url cfn output feat(servicecatalogappregistry): change application manager url as string type in application construct, and add control to application manager url cfn output Mar 6, 2023
@liwewang-amazon liwewang-amazon changed the title feat(servicecatalogappregistry): change application manager url as string type in application construct, and add control to application manager url cfn output fix(servicecatalogappregistry): change application manager url as string type in application construct, and add control to application manager url cfn output Mar 6, 2023
@liwewang-amazon liwewang-amazon marked this pull request as ready for review March 6, 2023 20:36
@rix0rrr rix0rrr changed the title fix(servicecatalogappregistry): change application manager url as string type in application construct, and add control to application manager url cfn output fix(servicecatalogappregistry): allow disabling automatic CfnOutput Mar 7, 2023
@mergify
Copy link
Contributor

mergify bot commented Mar 7, 2023

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: ab48c21
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 3db1a0d into aws:main Mar 7, 2023
@mergify
Copy link
Contributor

mergify bot commented Mar 7, 2023

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

homakk pushed a commit to homakk/aws-cdk that referenced this pull request Mar 28, 2023
…ws#24483)

When an application is created using `Application` construct, an output is automatically created in the customer defined stack without customer's intention to show related Application Manager URL for the application created. This can increase customer's CFN output usage without customer acknowledge and control. 

This commit:
- emits the CFN Output in the AppRegistry managed stack where the application is created to allow all the stacks deployed in the cdk project to be associated to the application. Customers can control whether to emit the URL as CFN output by setting `emitApplicationManagerUrlAsOutput`.
- changes `applicationManagerUrl` to a string type. Customers can create further create CFN output from this property.

Closes aws#23779 

BREAKING CHANGE: This commit contains destructive changes to the RAM Share.
Since the application RAM share name is calculated by the application construct, where one property is removed. Integration test detects a breaking change where RAM share will be created. Integration test snapshot is updated to cater this destructive change.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

servicecatalogappregistry: Application Manager URL as string property
3 participants