Troubleshooting AWS CLI Error: "Found request with the same client request token, but parameters do not match" when adding Cloud9 Environment Membership
Introduction : When working with AWS CLI to create environment memberships for a Cloud9 resource, you may encounter an error message stating: "An error occurred (BadRequestException) when calling the CreateEnvironmentMembership operation: Found request with the same client request token, but parameters do not match. Try again with a new token." This article will guide you through the possible cause of this error and provide a solution to resolve it. Error Explanation: The above error occurs when you attempt to create an environment membership while logged in as a different user. The AWS CLI command fails to match the user information and the ownership of the Cloud9 environment, resulting in the error message. Consequently, you cannot open your Cloud9 IDE. aws cli command aws cloud9 create-environment-membership --environment-id abcdenvironmentid --user-arn arn:aws:iam::123123123:user/theusername --permissions read -write Troubleshooting Steps: If you encou...