Hi All,
I’m working on creating a start_asset_bundle_import_job
in AWS QuickSight. The job is getting a 202 response, which indicates it’s accepted. However, when I run describe_asset_bundle_import_job
, I’m encountering the following error:
‘JobStatus’: ‘FAILED_ROLLBACK_COMPLETED’,
‘Errors’: [{‘Arn’: ‘arn:aws:quicksight:eu-west-3:xxxxxx:datasource/dd794218-c8d7-4c39-8c66-1b8cadff27f8’,
‘Type’: ‘com.amazonaws.services.quicksight.model.InvalidParameterValueException’,
‘Message’: ‘DataSourceCredentials field is incorrectly set’}],
I’ve attempted the following troubleshooting steps:
- Reordered the credentials format
- Replaced the username and password with the Secret ARN
- Tried adding both the credentials and the Secret ARN
Despite these efforts, I’m still receiving the same error. Any guidance or suggestions on how to resolve this issue would be greatly appreciated.
Thanks!
QuicksightTargetClient.start_asset_bundle_import_job(
AwsAccountId=TargetAAI,
AssetBundleImportJobId='data_Import',
AssetBundleImportSource={"S3Uri": "s3://bulk-files-upload/test/data.zip"},
OverrideParameters={
"DataSources": [
{
"Credentials": {
"CredentialPair": {
"Password": "xxxxxxxxxxxxx",
"Username": "xxxxxxxxxxxxxxxx"
}
},
"DataSourceId": "test", #used * as well as wildcard, provided same ID as source
"Name": "Test",
"DataSourceParameters": {
"RedshiftParameters": {
"Host": "redshift-cluster-1.xxxxxxxxxx.eu-west-3.redshift.amazonaws.com",
"Port": 5439,
"Database": "dev"
}
}
}
]
}
)