Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@courbanize/ember-cli-deploy-fastboot-s3
Advanced tools
An ember-cli-deploy plugin that archives and uploads FastBoot build to AWS S3.
An ember-cli-deploy plugin that archives and uploads FastBoot build to AWS S3 based on FastBoot AWS.
This plugin is based on FastBoot AWS, but it only manages FastBoot builds for S3, and does only three things:
{
"bucket": "S3_BUCKET",
"key": "NAME_OF_ZIP_FILE"
}
This plugin works along with ember-fastboot-app-server. The same bucket
and key
in FastBoot deploy info are required for both to work together.
A plugin is an addon that can be executed as a part of the ember-cli-deploy pipeline. A plugin will implement one or more of the ember-cli-deploy's pipeline hooks.
For more information on what plugins are and how they work, please refer to the Plugin Documentation.
To get up and running quickly, do the following:
Ensure both ember-cli-deploy-build and ember-cli-deploy-revision-data are installed and configured.
Install this plugin
$ ember install ember-cli-deploy-fastboot-s3
config/deploy.js
ENV['fastboot-s3'] = {
accessKeyId: '<your-aws-access-key>',
secretAccessKey: '<your-aws-secret>',
bucket: '<your-s3-bucket>',
region: '<the-region-your-bucket-is-in>'
}
$ ember deploy
Run the following command in your terminal:
ember install ember-cli-deploy-fastboot-s3
For detailed information on what plugin hooks are and how they work, please refer to the Plugin Documentation.
didPrepare
upload
For detailed information on how configuration of plugins works, please refer to the Plugin Documentation.
The AWS access key for the user that has the ability to upload to the bucket
. If this is left undefined,
the normal AWS SDK credential resolution will take place.
Default: undefined
The AWS secret for the user that has the ability to upload to the bucket
. This must be defined when accessKeyId
is defined.
Default: undefined
required
)The AWS bucket that the files will be uploaded to.
Default: undefined
required
)The region the AWS bucket
is located in.
Default: undefined
The archive directory for which the archived files are stored.
Default: 'tmp/deploy-archive'
The archive type (zip|tar).
Default: 'zip'
The deploy info file.
Default: 'fastboot-deploy-info.json'
The root directory where the file matching filePattern
will be searched for. By default, this option will use the distDir
property of the deployment context.
Default: context.distDir
The unique revision number for the version of the file being archived and uploaded to S3. By default this option will use either the revisionKey
passed in from the command line or the revisionData.revisionKey
property from the deployment context.
Default: context.commandLineArgs.revisionKey || context.revisionData.revisionKey
The following properties are expected to be present on the deployment context
object:
distDir
(provided by ember-cli-deploy-build)revisionKey
(provided by ember-cli-deploy-revision-data)Ensure you have the minimum required permissions configured for the user (accessKeyId). A bare minimum policy should have the following permissions:
{
"Statement": [
{
"Sid": "Stmt1EmberCLIS3DeployPolicy",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:PutObjectACL"
],
"Resource": [
"arn:aws:s3:::<your-s3-bucket-name>/*"
],
"Principal": { "AWS": "arn:aws:iam::AWS-account-ID:root" }
}
]
}
Replace with the name of the actual bucket you are deploying to. Also, remember that "PutObject" permission will effectively overwrite any existing files with the same name unless you use a fingerprinting or a manifest plugin.
To properly serve certain assets (i.e. webfonts) a basic CORS configuration is needed
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>http://www.your-site.com</AllowedOrigin>
<AllowedOrigin>https://www.your-site.com</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>HEAD</AllowedMethod>
</CORSRule>
</CORSConfiguration>
Replace http://www.your-site.com with your domain.
Some more info: Amazon CORS guide, Stackoverflow
node tests/runner.js
For more information on using ember-cli, visit http://ember-cli.com/.
PRs welcome!
FAQs
An ember-cli-deploy plugin that archives and uploads FastBoot build to AWS S3.
We found that @courbanize/ember-cli-deploy-fastboot-s3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.