Skip to content

Use Aspire 9's WaitFor feature for making projects wait for CloudFormation #14

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

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

normj
Copy link
Member

@normj normj commented Jan 22, 2025

Description of changes:
To be consistent with other Aspire integrations use the WaitFor mechanism added in Aspire 9 for forcing projects to wait till CloudFormation is ready. This is a switch from the homegrown solution of using our own TaskCompletionSource to force a block in the project resource.

The TaskCompletionSource is still used in other parts of the integration, specifically the public GetValueAsync API for a StackOutputReference so the code still exist but for the common case of having the project reference the stack the experience will be consistent with other integrations.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

"Name": "Aspire.Hosting.AWS",
"Type": "Patch",
"ChangelogMessages": [
"Use Aspire 9\u0027s WaitFor mechanism for waiting CloudFormation resource to be running"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: you might want to remove the unicode char since that's how it'll look in the changelog

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the Unicode character

@normj normj merged commit e6577e1 into dev Jan 24, 2025
5 checks passed
@normj normj deleted the normj/use-waitfor branch January 24, 2025 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants