Error during create-analysis from cli with inputting modified JSON

I was able to run the following two commands:

aws quicksight describe-analysis-definition      \
        --aws-account-id 0123456789              \
        --analysis-id sampleid
> output.json

aws quicksight create-analysis \ 
      --generate-cli-skeleton > skeleton.json

After running these two commands, I copy the defintion object from output.json to skeleton.json

Error running the next command below:

aws quicksight create-analysis  \
      --cli-input-json file://skeleton.json

Error:

Error parsing parameter ‘cli-input-json’: Invalid JSON received.

I am assuming the error is when I copy paste the definition object I am somehow messing the structure of skeleton.json file? Additionally I am assuming I need to provide additional details in the skeleton.json file such as “AwsAccountId”, “AnalysisId”, “Name”, Permissions! Just copy pasting the definition alone will not work.

Send help!

Hello @Charanveer_Singh , welcome to the QuickSight community!

You are correct, for the create_analysis action to work, you need to make sure that you have defined all of the necessary variables you described.

I would recommend updating your analysis definition JSON file to match the variable of your target account.

1 Like