S3 Media Maestro Docs

How do I get my CloudFront key pair ID and private key?

To use CloudFront with S3 Media Maestro, you need a CloudFront key pair ID and its private key. S3 Media Maestro uses them to sign the media URLs it creates.

Note: AWS recommends key groups instead of root-account key pairs, but S3 Media Maestro currently requires a CloudFront key pair.

Create the key pair in AWS

  1. Sign in to AWS as the root user. AWS doesn’t let IAM users create CloudFront key pairs.

  2. Click your account name in the upper right corner and choose Security credentials.

    Screenshot 1: How to obtain your CloudFront Key Pair ID and Private Key

  3. Find CloudFront key pairs and click Create CloudFront key pair. You can have at most two active key pairs.

    Screenshot 2: How to obtain your CloudFront Key Pair ID and Private Key

  4. Download the private key file straight away and keep it somewhere safe. AWS can’t show it to you again.

    Screenshot 3: How to obtain your CloudFront Key Pair ID and Private Key

  5. Note the key pair ID. In the list of CloudFront key pairs, AWS labels it Access key ID.

Add it to S3 Media Maestro

  1. In WordPress, go to Settings→S3 Media Maestro and click the Amazon: Cloudfront tab.

    Screenshot 4: How to obtain your CloudFront Key Pair ID and Private Key

  2. Paste the key pair ID into the Cloudfront Key Pair ID field.

    Screenshot 5: How to obtain your CloudFront Key Pair ID and Private Key

  3. Open the private key file in a text editor (Notepad on Windows, TextEdit on Mac). Copy everything from the -----BEGIN line to the -----END line, paste it into the Cloudfront Private Key field, and click Save Settings.

S3 Media Maestro is now set up with your CloudFront credentials. Next, see How to configure CloudFront.