Redshift CDK - Grant table privilege

0

I want to add a Redshift table to an existing Redshift database (containing one table) and I want to grant INSERT (to this table) privilege to a Redshift user.

I use CDK and its module @aws-cdk/aws-redshift-alpha. The deployment fails. One of the custom resources automatically deployed by the construct try to grant the privilige. The execution failed. When I read the log of the customer resource, it's seems that the table name provided is the Physical Resource Id and not the table I set up (red rectangle). The name of the existing table is correct (blue rectangle).

Enter image description here

The CDK c

    const iotEventTable = new Table(this, "IotEventTable", {
      tableName,
      tableColumns: [
        { name: "event", dataType: "varchar(max)" },
        { name: "timestamp", dataType: "varchar(30)" },
        { name: "topic", dataType: "char(100)" }
      ],
      cluster,
      databaseName: dbName
    });

    iotEventTable.grant(user, TableAction.INSERT);
    return iotEventTable;

Any idea ?

질문됨 3달 전102회 조회
1개 답변
0

Hello there,

To best troubleshoot this issue, we require information that is non-public information. Please open a support case with AWS Support using the following link

AWS
답변함 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인