from https://github.com/grampajoe/dropper
Deploy things!
Deploy things!
$ npm install -g dropperDropper is built to be extensible. The first platform supported is OpsWorks, but maybe there are more to come!
Deploy an OpsWorks app:
$ dropper opsworks --stack-id STRING --app-id STRING--access-key-id STRING(required) AWS access key. Can be provided by theAWS_ACCESS_KEY_IDenvironment variable.--secret-access-key STRING(required) AWS secret key. Can be provided by theAWS_SECRET_ACCESS_KEYenvironment variable.--stack-id STRING(required) OpsWorks stack ID.--app-id STRING(required) OpsWorks app ID.--region STRING(required) AWS region. Default isus-east-1. Can be provided by theAWS_DEFAULT_REGIONenvironment 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.
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