【问题标题】:aws rds/mysql security group for aws-glue python shell jobs用于 aws-glue python shell 作业的 aws rds/mysql 安全组
【发布时间】:2020-02-05 19:39:02
【问题描述】:

我在 aws-glue 中有一个与 rds/mysql 服务器通信的 Python shell 作业。运行以下作业时收到错误消息。我猜是mysql服务器的安全组设置。如何更新 SG 以允许来自 aws-glue 作业的连接?

mysql.connector.errors.InterfaceError: 2003: 无法连接到 MySQL 服务器在 xxxxx.rds.amazonws.com:3306

我在代码中使用 python mysql-mysql-connector 与 mysql 服务器通信

    conn = connector.connect(user='dustin', password='sun',
                              host='xxxx.us-east-1.rds.amazonaws.com',
                              database='mydb')
    cursor = conn.cursor(dictionary=True)
    cursor.execute(sql)

【问题讨论】:

标签: amazon-web-services aws-glue aws-security-group


【解决方案1】:

您似乎需要修改安全组,以便接受来自 Glue 作业的连接。由于您没有在问题中提及您的安全组,因此很难判断可能是什么问题。因此,请参阅this 链接并确保您正确配置它们。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-05-11
    • 2022-01-09
    • 2022-12-03
    • 1970-01-01
    • 1970-01-01
    • 2019-02-21
    相关资源
    最近更新 更多