AWS Glue error to write redshift after 1 hours

0

I have a job in AWS Glue, I have noticed that when I write data to Redshift but the data takes more than 1 hours I have a message saying that the S3 session has expired

JoseTas
asked 8 months ago188 views
1 Answer
1
Accepted Answer

I have had the same problem, the solution is to create a role that allows you to write to S3 and add the role in Glue when writing data

connection_options = {"dbtable": "table_name", 
                     "database": "mydb", "aws_iam_role": "arn:aws:iam::XXXXXXXXXX:role/RedshiftS3Role"}
profile picture
EXPERT
answered 8 months ago
profile pictureAWS
EXPERT
reviewed 8 months ago
  • I have tried this solution and now it works fine for me. Thank you

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions