We will walk you through the following steps:
Log in to the AWS Console
- Already have an Amazon Web Services (AWS) account? Sign in here.
- If you don’t have an AWS account yet, you will need to sign up here.
Setup a CloudFront Distribution
Step 1: Go to your CloudFront console and then choose Create Distribution.
Step 2: On the Create Distribution Wizard, click on Get Started button under Web section.
Step 3: Choose origin as your S3 Bucket for video content storage.
Step 4: Apply Restrict Bucket Access as follows.
Once you choose the option “Yes, Update Bucket Policy”, it will automatically generate and apply the policies to our bucket. Whichever option you choose, you need to double check the bucket access permissions.
Step 5: Configure the default cache behavior settings.
Step 6: Use Singed URLs.
Leave other options as they are. Finally, click on Save button to finish.
Step 7: Go back to CloudFront Distributions and locate the CloudFront link you have created under Domain Name column.
Simply copy and paste it to CloudFront URL field under our plugin’s Settings Page. It’s important to add the protocol (http://) before the domain name.
Create WAF Rules
Step 1: On the WAF console, click Create web ACL.
Step 2: In the first step, we will set the name and CloudFront distribution that we want to apply the rule.
Step 3: Create the condition.
Step 4: Only allow those requests that match the rule.
Step 5: Confirm and create it.