AWS s3 to snowflake data load_v01
AWS s3 to snowflake data load_v01
Steps
1. Create a table to accept the data from the s3
2. Upload a file in the s3 bucket
3. Create the Role and give the permissions and create the trusted policy
4. Create the storage integration in snowflake
5. Create the stage in snowflake
6. Run the copy command to load the data
);
Again goto the Roles in the left pane and select the created Role
ARN Number has been highlighted here and copy and paste it somewhere this has to be added in the
snowflake DB while creation of the storage integration
type = external_stage
storage_provider = s3
storage_aws_role_arn = 'arn:aws:iam::759489707541:role/AWS_S3_INTEGRATION'
enabled = true
storage_allowed_locations = ('s3://aimore-snowflake-s3/EMP01/');
Red highlighted number is the ARN number that must be pasted from the AWS
Green Highlighted id is the allowed locations , this has to be copied from the s3 (refer the below
image)
Copy this ARN and paste it into the trusted policy of AWS and update the trusted policy
Create the stage in snowflake
create or replace stage aws_Stage
url= 's3://aimore-snowflake-s3/EMP01/'
storage_integration= aws_storage
From @stagename;
From the above image choose those options and give the notification channel value which is
copied from the snowflake and create the event!