dry-easter-2649
11/22/2024, 9:37 AMecho '{
"configuration": {
"redshiftRunConfiguration": {
"dataAccessRole": "arn:aws:iam::<account>:role/datazone-redshift-manage-access-role-poc-dpServRole",
"redshiftCredentialConfiguration": {
"secretManagerArn": "arn:aws:secretsmanager:eu-central-1:<account>:secret:kk_redshift_credentials202411212-poc-dp-StKPm2"
},
"redshiftStorage": {
"redshiftClusterSource": {
"clusterName": "redshift-poc-dp"
}
},
"relationalFilterConfigurations": [
{
"databaseName": "dwh_poc_db",
"filterExpressions": [
{
"expression": "*",
"type": "INCLUDE"
}
],
"schemaName": "public"
}
]
}
},
"description": "Testdescr",
"domainIdentifier": "<domain>",
"enableSetting": "ENABLED",
"environmentIdentifier": "boyub3bhivj4ln",
"name": "CLISKELETTEST",
"projectIdentifier": "<project>",
"publishOnImport": false,
"recommendation": {
"enableBusinessNameGeneration": true
},
"type": "REDSHIFT"
}
' > req2.json
aws datazone create-data-source --cli-input-json <file://req2.json>
Pulumi generates the following:
configuration : {
redshiftRunConfiguration: {
dataAccessRole : "arn:aws:iam::<account>:role/datazone-redshift-manage-access-role-poc-dpServRole"
redshiftCredentialConfiguration: {
secretManagerArn: "arn:aws:secretsmanager:eu-central-1:<account>:secret:kk_redshift_credentials202411212-poc-dp-StKPm2"
}
redshiftStorage : {
redshiftClusterSource: {
clusterName: "redshift-poc-dp"
}
}
relationalFilterConfigurations : [
[0]: {
databaseName : "dwh_poc_db"
filterExpressions: [
[0]: {
expression: "*"
type : "INCLUDE"
}
]
schemaName : "public"
}
]
}
}
description : "KK DataSource des PoC"
domainIdentifier : "<domain>"
environmentIdentifier: "boyub3bhivj4ln"
name : "kk_source_redshift-poc-dp"
projectIdentifier : "<project>"
publishOnImport : true
recommendation : {
enableBusinessNameGeneration: false
}
type : "REDSHIFT"
This seems identical to our working CLI-reference, but we receive the following error:
ValidationException: Model validation failed (#/Configuration: #: 2 subschemas matched instead of one
Would anybody have any tips on how to debug this?quick-house-41860
11/22/2024, 9:48 AMdry-easter-2649
11/22/2024, 9:50 AMdry-easter-2649
11/22/2024, 12:56 PM