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 = XXXXX aws_region = XXXXX [reddit_config] secret = XXXXX developer = XXXXX name = XXXXX client_id = XXXXX
-
Change
XXXXX
values-
If you need a reminder of your
aws_config
details, 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_config
these are the details you took note of after setting up your Reddit App. Note thedeveloper
is your Reddit name.
-
or