A composer metapackage of essential plugins & libraries for WordPress projects served in Heroku environment.
With metapackage it is possible to install and update multiple packages without adding individual packages to the project's composer file.
$ composer require frc/wp-essentials-heroku
frc/wp-env-heroku-cleardbfrc/wp-env-heroku-jawsdbfrc/wp-env-heroku-jawsdb-mariafrc/wp-env-heroku-redisfrc/wp-env-heroku-sendgridfrc/wp-env-heroku-amazon-awsdeliciousbrains/wp-amazon-s3-and-cloudfrontfrc/sendgrid-email-delivery-simplifiedwpackagist-plugin/redis-cachefrc/wp-amazon-c3-cloudfront-clear-cachefrc/wp-gforms-s3-uploadfrc/wp-gravityforms-cloud-exportfrc/wp-transients-apifrc/wp-multilingual-options-page
Each site that uses Cloudfront needs the following variables:
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
C3_DISTRIBUTION_ID
In most cases the AWS_... variables are already set in Heroku's environment variables. If setting C3_DISTRIBUTION_ID doesn't work, try adding it to the plugin directly after it's activated, via Settings > Cloudfront settings.