STAC-25580: Update stepfunction.py - #316
Conversation
…-limit STAC-0: Bump the metric limit for prometheus and open metrics check
Explicitly only retrieve METADATA_ONLY Not setting this value can result in errors if the agent does not have access to the KMS key or the kms:decrypt action, while the description is always discarded. Instead, we can prevent these errors and remove the need to remove the description. See: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/stepfunctions/client/describe_state_machine.html
|
Thanks for this, and apologies for the long silence — it was not neglect alone. Tracked as STAC-25522 (the protection fix) and STAC-25580 (this change). The reasoning holds up: the definition is fetched and then discarded, so |
|
Hey @LouisParkin, as far as I see the whole stepfunction and AWS_topology has been removed in 7.78.2. |
Explicitly only retrieve METADATA_ONLY
Not setting this value can result in errors if the agent does not have access to the KMS key or the kms:decrypt action, while the description is always discarded.
Instead, we can prevent these errors and remove the need to remove the description.
See: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/stepfunctions/client/describe_state_machine.html
Step 1: Link to Jira issue
Step 2: Description of changes
Only retrieve METADATA to prevent errors on permissions that are needed to retrieve data that are discarded later on.
Step 3: Did you add / update tests for your changes in the right area?
Step 4: I'm confident that everything is properly tested:
I got a PO / QA Approval by:
Step 5: Can we ship this feature to production?