Aurora MYSQL 8 Load From S3 Privileges Not Working

0

I have created an Aurora MYSQL 8 cluster - engine: 8.0.mysql_aurora.3.02.2 and are testing the LOAD FROM S3 statement. The appropriate S3 role is added to the server and the DB Cluster parameter group has been changed to use this role.

The LOAD FROM S3 statement is working when I use the default admin user however when I create another user and grant it the LOAD FROM S3 privilege the command does not work. The error I get is
Access denied; you need (at least one of) the LOAD FROM S3 privilege(s) for this operation.

When I run SELECT * FROM mysql.user u the column Select_into_S3_priv is no longer there as it was in MYSQL 5.7.

Can you confirm if there is an issue with the LOAD FROM S3 command for Aurora MYSQL 8?

Thanks

  • I granted access by running the following:

    GRANT AWS_LOAD_S3_ACCESS TO 'data_etl_user'@'%';

질문됨 일 년 전1484회 조회
1개 답변
0
수락된 답변

Thank you for asking your question.

Please make sure you activate the role by SET ROLE role_name or SET ROLE ALL before using the role based privileges.

You can also use the activate_all_roles_on_login DB cluster parameter to automatically activate all roles when a user connects to a DB instance. When this parameter is set, you don't have to call the SET ROLE statement explicitly to activate a role.

You can find more detailed procedure on this in our and MySQL documents.

I hope this might help.

  1. https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Integrating.LoadFromS3.html#AuroraMySQL.Integrating.LoadFromS3.Grant
  2. https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.AuroraMySQL.Compare-80-v3.html#AuroraMySQL.privilege-model
  3. https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_activate_all_roles_on_login
AWS
답변함 일 년 전

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

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

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