Skip to content

Fleet Manager error message - Windows EC2 instance with Single Sign-On - (InvalidParameters) when calling the SendCommand operation - SSM document AWSSSO-CreateSSOUser

0

Testing Fleet Manager to connect to an EC2 Windows instance using Single Sign-on option and getting this error message: "The SendCommand API operation didn't succeed: An error occurred (InvalidParameters) when calling the SendCommand operation: Parameters provided in document AWSSSO-CreateSSOUser are invalid or not supported."

connect error

Then tried to check CloudTrail events for any clues about the invalid Parameters, but they are not shown due to Security reasons.

" "eventTime": "2025-01-28T17:58:38Z", "eventSource": "ssm.amazonaws.com", "eventName": "SendCommand", "awsRegion": "us-east-1", "sourceIPAddress": "ssm-guiconnect.amazonaws.com", "userAgent": "ssm-guiconnect.amazonaws.com", "errorCode": "InvalidParameters", "errorMessage": "Parameters provided in document AWSSSO-CreateSSOUser are invalid or not supported.", "requestParameters": { "instanceIds": [ "i-0123456789012" ], "documentName": "AWSSSO-CreateSSOUser", "parameters": "HIDDEN_DUE_TO_SECURITY_REASONS", "interactive": false } "

The SSM Command parameters for Document "AWSSSO-CreateSSOUser" are these:

  • Username - The name of the user for whom a password is created or reset.
  • Rsa Parameters - A Modulus and Exponent that can be used to generate an RSA public key.
  • Perform Action - (Optional) Set this to 'Yes' to perform the action.
  • Target selection = EC2 instance id

Any ideas on how can I further investigate this issue? Thanks a lot

1 Answer
1

To further investigate this issue with Fleet Manager and the SendCommand operation for the AWSSSO-CreateSSOUser document, you can try the following steps:

  1. Verify IAM permissions: Ensure that the IAM role associated with your EC2 instance has the necessary permissions to execute SSM commands, particularly for the AWSSSO-CreateSSOUser document.

  2. Check SSM Agent: Make sure the SSM Agent on your Windows EC2 instance is up-to-date and running correctly. You can try reinstalling or updating the agent if necessary.

  3. Validate input parameters: Double-check that you're providing all required parameters for the AWSSSO-CreateSSOUser document correctly. Pay special attention to the format of the "Rsa Parameters" as this might be causing the InvalidParameters error.

  4. Examine SSM Agent logs: Look into the SSM Agent logs on the EC2 instance for more detailed error messages or clues about the parameter validation failure.

  5. Use AWS CLI or SDK: Try executing the SendCommand operation using the AWS CLI or SDK. This might provide more verbose error messages that could help identify the specific parameter causing the issue.

  6. Check EC2 instance status: Ensure that the EC2 instance is in a running state and properly configured for SSM operations.

  7. Verify time synchronization: Make sure the EC2 instance's system time is correctly synchronized. Time discrepancies can sometimes cause authentication and API call issues.

  8. Review CloudWatch Logs: If you have enabled CloudWatch Logs for SSM, check these logs for any additional error information that might not be visible in CloudTrail.

  9. Contact AWS Support: If you're still unable to resolve the issue, consider reaching out to AWS Support for more in-depth troubleshooting assistance.

By systematically going through these steps, you should be able to gather more information about the InvalidParameters error and potentially resolve the issue with the AWSSSO-CreateSSOUser document execution.
Sources
SendCommand - AWS Systems Manager
Troubleshooting Session Manager - AWS Systems Manager
AWS SSM can't ping to my ec2 instance | AWS re:Post
Logging AWS Systems Manager API calls with AWS CloudTrail - AWS Systems Manager

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.