Ember CLI Deploy S3 Index Plugin

4.0.3 · active · verified Wed Apr 22

This plugin for Ember CLI Deploy specializes in uploading the `index.html` (bootstrap) file of an Ember application to an Amazon S3 bucket. It is commonly used as part of the 'lightning method' of deployment, where both application assets and the index file are served from S3. The current stable version is 4.0.3, with recent bug fixes focusing on robust S3 response handling, including 'NotFound' and empty responses. It integrates into the `ember-cli-deploy` pipeline, implementing `configure`, `upload`, `activate`, and `fetchRevisions` hooks. It's actively maintained with a moderate release cadence addressing bug fixes and minor enhancements, distinguishing itself by managing *only* the index file, often alongside `ember-cli-deploy-s3` which handles other application assets.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to install the plugin and configure it in `config/deploy.js` for an Ember CLI project, preparing for index file deployment to AWS S3.

ember install ember-cli-deploy-s3-index

// Add the following configuration to config/deploy.js
// Ensure ember-cli-deploy-build and ember-cli-deploy-revision-data are also installed and configured.
// For production deployments, strongly recommend using environment variables or AWS profiles for credentials.
ENV['s3-index'] = {
  accessKeyId: process.env.AWS_ACCESS_KEY_ID ?? '', // Placeholder: set this in your CI/CD or local environment
  secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY ?? '', // Placeholder: set this securely
  bucket: 'my-ember-app-index-bucket',
  region: 'us-east-1',
  prefix: 'app-prefix' // Optional: deploys index.html into a sub-directory within the S3 bucket
};

// To run the deployment:
// Ensure your AWS credentials (e.g., AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION) are set as environment variables
// or configured via an AWS profile.
// Execute in your terminal: `ember deploy production`

view raw JSON →