Next, you'll need to create a configuration file with your details. The extract and load scripts in our pipeline will utilise the details here.
-
Create a configuration file under
~/Reddit-API-Pipeline/airflow/extraction/calledconfiguration.conf:touch ~/Reddit-API-Pipeline/airflow/extraction/configuration.conf -
Copy in the following:
[aws_config] bucket_name = XXXXX redshift_username = awsuser redshift_password = XXXXX redshift_hostname = XXXXX redshift_role = RedShiftLoadRole redshift_port = 5439 redshift_database = dev account_id = aws_region = us-east-1 [reddit_config] secret = XXXXX developer = XXXXX name = XXXXX client_id = XXXXX -
Change
XXXXXvalues-
If you need a reminder of your
aws_configdetails, change folder back into the terraform folder and run the command. It will output the values you need to store underaws_config. Just be sure to remove any"from the strings.terraform output
-
For
reddit_configthese are the details you took note of after setting up your Reddit App. Note thedeveloperis your Reddit name.
-
or