As described here https://aws.amazon.com/blogs/aws/new-amazon-ec2-feature-idempotent-instance-creation/ AWS CLI enforces idempotency of the
aws ec2 run-instances --cli-input-json command. Unfortunately there is no documentation on how a client-token is generated.
I did find that there is a
ClientToken field in the
aws ec2 describe-instances results, but of course you still get the following error if you try to use one:
An error occurred (IdempotentParameterMismatch) when calling the RunInstances operation: Arguments on this idempotent request are inconsistent with arguments used in previous request(s).
How do I get a token to use with