mlops-club / awscdk-minecraft

An AWS CDK package written in Python for deploying an entire Minecraft Server Platform-as-a-Service
Other
13 stars 4 forks source link

deprovision state machine error message #28

Open mathematicalmichael opened 1 year ago

mathematicalmichael commented 1 year ago

/awscdk-minecraft/src/cdk_minecraft/deploy_server_batch_job/deprovision_state_machine.py

right now we use a generic "Wait time is too short..." message but would like to supply the values that were requested as part of the cause (or comment).

The question fundamentally comes down to how we can translate "$.wait_n_seconds_before_destroy" into a python variable that we can reference in an f-string.

Similarly, we have the Wait condition with "Wait N seconds" as the id, and we can use an f-string there as well.