我正在尝试设置AWS Glue,以便使用CloudFormation读取RDS Postgres中的内容。为了做到这一点,我需要使用JdbcTarget选项创建一个爬虫程序。(或者我没有?)
Records:
Type: 'AWS::Glue::Crawler'
Properties:
DatabaseName: transact
Targets:
JdbcTargets:
- Path: "jdbc:postgresql://host:5432/database"
Role: !Ref ETLAgent
但在CloudFormation上创建堆栈将失败,原因是:
CREATE_FAILED | AWS::Glue::Crawler | Records | Connection name cannot be equal to null or empty. (Service: AWSGlue; Status Code: 400; Error Code: InvalidInputException;
尽管
the docs
说:
连接名称
用于JDBC目标的连接的名称。
必填项:否
使用CloudFormation的正确AWS胶水设置是什么,允许我从RDS读取?