- Newest
- Most votes
- Most comments
The discrepancy you're observing between AWS CLI v1 and v2 for the startDate field in the describe-execution response is due to how each CLI version handles timestamp data.
In the AWS Step Functions API documentation, the startDate field is defined as a Timestamp type. AWS CLI v1 returns this as a Unix epoch timestamp (a number representing seconds since January 1, 1970), while AWS CLI v2 automatically converts this timestamp to a more human-readable ISO 8601 format string.
This difference in representation is part of the improvements made in AWS CLI v2, which provides more user-friendly formatting of date/time values by default. The underlying data is the same, just presented differently.
Both formats are valid representations of the same timestamp data. The intended behavior is that the API returns timestamp data, and the CLI versions format this data according to their respective implementations. If you need consistent formatting across CLI versions, you can use additional formatting options or parsing in your scripts to handle the timestamp in your preferred format.
Sources
DescribeMapRun - AWS Step Functions
ExecutionListItem - AWS Step Functions
DescribeExecution - AWS Step Functions
Ahhh so it is, good bot
answered 9 months ago
Relevant content
asked 2 years ago
