- Newest
- Most votes
- Most comments
The error you're encountering suggests that the --permission-set-arn argument is missing a value in one of the AWS CLI commands. This typically occurs when a required parameter is not provided or is incorrectly formatted.
To resolve this issue, you should ensure that all the variables in your script are correctly set and that they contain the expected values. Specifically, check that the $permissionSetArn variable is properly populated before it's used in subsequent commands.
Here are some steps you can take to troubleshoot:
-
Echo each variable after it's set to verify it contains the expected value. For example: echo "permissionSetArn: $permissionSetArn"
-
Make sure the AWS CLI commands are returning the expected output. The jq commands used to parse the JSON responses might not be extracting the correct values if the response format has changed.
-
Verify that you have the necessary permissions to execute these AWS CLI commands. Ensure your IAM user or role has the required access to SSO Admin and Identity Store services.
-
Check if there are any typos or formatting issues in the script, especially around the variable names and their usage.
-
If you're copying the script from a web page, make sure no special characters were introduced that might interfere with the script execution.
If the issue persists after these checks, you may need to run each command individually to identify which specific command is causing the error. This will help isolate the problem and provide more context for troubleshooting.
Sources
Giving users permission to access Amazon Personalize - Amazon Personalize
Step 1: Set Up an AWS Account and Create a User - Amazon Textract
Relevant content
- asked 3 months ago
- asked a year ago
- asked 3 months ago
- AWS OFFICIALUpdated 3 years ago