When I try to update the template in the command line,
account_a_id=‘xxx’
aws quicksight update-template --aws-account-id $account_a_id --template-id ‘template_as_’ --cli-input-json file://template_.json
I get the following error :
An error occurred (InvalidParameterValueException) when calling the UpdateTemplate operation: Resource creation can only be done from one SourceEntity or Definition
template_.json file :
{
“Definition”: {
“DataSetConfigurations”: [
{
“Placeholder”: “xxxx”,
“DataSetSchema”: {
“ColumnSchemaList”: [,
]
},
“ColumnGroupSchemaList”:
}
],
“Sheets”: [
{
“SheetId”: “xx-4553-x-bf4d-670b10e5fe75”,
“Name”: “tab1”
},
{
“SheetId”: “xx-c50f-x-b4f3-1f57914994bd”,
“Name”: “tab2”
},
{
“SheetId”: “xx-a0be-x-9121-7e13c279d4ab”,
“Name”: “tab3”
},
{
“SheetId”: “xx-4474-x-bda0-c2f3bdacbd61”,
“Name”: “tab4”
}
]
},
“SourceEntity”: {
“SourceAnalysis”: {
“Arn”: “arn:aws:quicksight:us-east-1:xxx:analysis/xxx”,
“DataSetReferences”: [
{
“DataSetPlaceholder”: “xx”,
“DataSetArn”: “arn:aws:quicksight:us-east-1:xx:dataset/xxx”
}
]
}
},
“VersionDescription”: “1”
}
I can’t figure out what the problem is here.