Pages

Wednesday, 23 October 2024

dropper

from https://github.com/grampajoe/dropper

Deploy things!

www.npmjs.com/package/dropper

dropper

Deploy things!

Wercker npm

Installing

$ npm install -g dropper

Platforms

Dropper is built to be extensible. The first platform supported is OpsWorks, but maybe there are more to come!

Opsworks

Deploy an OpsWorks app:

$ dropper opsworks --stack-id STRING --app-id STRING

Options

  • --access-key-id STRING (required) AWS access key. Can be provided by the AWS_ACCESS_KEY_ID environment variable.
  • --secret-access-key STRING (required) AWS secret key. Can be provided by the AWS_SECRET_ACCESS_KEY environment variable.
  • --stack-id STRING (required) OpsWorks stack ID.
  • --app-id STRING (required) OpsWorks app ID.
  • --region STRING (required) AWS region. Default is us-east-1. Can be provided by the AWS_DEFAULT_REGION environment variable.
  • --revision STRING (optional) A revision, e.g. a git ref or subversion revision number, to deploy.
  • --migrate (optional) Enable migrations.
  • --comment STRING (optional) Comment for the deployment.
  • --wait-for-deploy (optional) Waits for deployments to complete before exiting, and reports the result.

Permissions

It's recommended to create an IAM user with just enough permissions to perform the actions required to deploy an app. following permissions should be enough:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "opsworks:CreateDeployment",
        "opsworks:DescribeApps",
        "opsworks:DescribeDeployments"
      ],
      "Resource": [
        "arn:aws:opsworks:*:*:stack/your-opsworks-stack-id-here/"
      ]
    }
  ]
}





No comments:

Post a Comment