script to copy data from S3 bucket to Redshift:
script to copy data from S3 bucket to Redshift using keys:
copy db_name.schema_name.tabl2 FROM 's3://s3_bucket/tabl2.csv'
credentials 'aws_access_key_id=123456789; aws_secret_access_key=987654321;token=12345678898' CSV IGNOREHEADER 1 REGION 'us-east-1';
script to copy data from S3 bucket to Redshift using ARN:
copy db_name.schema_name.table8 from 's3://s3_bucket/table8.csv
iam_role 'arn:aws:iam::123456789:role/S3_to_Redshift_copy_role'
CSV IGNOREHEADER ;
No comments:
Post a Comment