Open Jimmy89 opened 11 months ago
Hi @Jimmy89 Thank you for filing this issue and apologies for a slow response.
I'm trying to reproduce your issue but I get this error while running your program:
CREATE failed with "InvalidRequest": Invalid State Machine Definition: 'SCHEMA_VALIDATION_FAILED: Value cannot be an empty string at /StartAt, SCHEMA_VALIDATION_FAILED: Value cannot be empty at /States, MISSING_TRANSITION_TARGET: Missing 'Next' target: at /StartAt, MISSING_END_STATE: Workflow has no terminal state at null' (Service: AWSStepFunctions; Status Code: 400; Error Code: InvalidDefinition
I'm not super familiar with step functions, do you know how I should fix it?
@mikhailshilkov Sorry, I didn't see you comment. I will come back this week with an updated example
@mikhailshilkov I updated the original post with a hello world example from AWS itself.
What happened?
I created a step function with version and alias. When I change the step function definition, a new version is published. The version resource triggers a replacement. However, the the step function alias is still referring to the 'old' version and therefore AWS forbids the delete action of the version resource (and generating an error).
The proper solution would be to detect somehow that an alias is attached to the version and trigger a replacement after updating the alias.
Also: when using a workaround (retainOnDelete on the version) the alias cannot be updated (see error as well). This looks like an upstream error
Example
Output of
pulumi about
Additional context
If I replace after step 5 the step function alias with aws-classic package I do not have an error (on updating the alias, version is still a problem)
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).