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

CFn: Stub WaitCondition resource #8332

Merged
merged 3 commits into from
May 22, 2023

Conversation

simonrw
Copy link
Contributor

@simonrw simonrw commented May 18, 2023

Add a fix for the state fetching of WaitConditionHandle, and add a stub implementation for WaitConditions.

This stub means that anything referencing the wait condition will resolve correctly, but the template deployer won't actually wait until the condition is met. Since we are doing a re-write of CFn anyway, we should factor it into that project.

This PR also includes a bigfix for EC2 instances: the boto3 run_instances method requires MaxCount and MinCount to be passed, but these are not valid CloudFormation properties.

@simonrw simonrw added the semver: patch Non-breaking changes which can be included in patch releases label May 18, 2023
@simonrw simonrw self-assigned this May 18, 2023
@simonrw simonrw requested a review from pinzon May 18, 2023 10:13
@github-actions
Copy link

github-actions bot commented May 18, 2023

LocalStack Community integration with Pro

2 061 tests   1 779 ✔️  1h 19m 14s ⏱️
       2 suites     282 💤
       2 files           0

Results for commit 75a7b80.

♻️ This comment has been updated with latest results.

@simonrw simonrw marked this pull request as draft May 22, 2023 11:22
These are required for the `run_instances` method, but not valid
cloudformation values. We must therefore propagate this information from
the properties defaults.
@simonrw simonrw force-pushed the cfn/cloudformation-waitcondition-resource branch from f4e77b5 to 75a7b80 Compare May 22, 2023 11:36
@simonrw simonrw marked this pull request as ready for review May 22, 2023 11:37
@coveralls
Copy link

Coverage Status

Coverage: 82.265% (+0.007%) from 82.258% when pulling 75a7b80 on cfn/cloudformation-waitcondition-resource into 4b7a6f2 on master.

Copy link
Member

@pinzon pinzon left a comment

Choose a reason for hiding this comment

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

LGTM

@simonrw simonrw merged commit d142b5a into master May 22, 2023
@simonrw simonrw deleted the cfn/cloudformation-waitcondition-resource branch May 22, 2023 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants