server-control-s3

0.0.13 • Public • Published

server-control-s3

  • create AMI with supervisor, git and node
  • create user node with home in /var/node
  • clone your project

sample config to add to your app:

sc.init(app, {
	prefix: '/',
    repo_dir: '/var/node/project',
    secret: "update-secret"
});
  • assign an IAM role with the following configuration:
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "Stmt1412101976000",
      "Effect": "Allow",
      "Action": [
        "ec2:DescribeInstances"
      ],
      "Resource": [
        "*"
      ]
    },
    {
      "Sid": "Stmt1412101976001",
      "Effect": "Allow",
      "Action": [
        "ec2:DescribeLaunchTemplateVersions",
        "ec2:ModifyLaunchTemplate",
        "ec2:CreateLaunchTemplateVersion"
      ],
      "Resource": [
        "*"
      ]
    },
    {
      "Sid": "Stmt1412102095000",
      "Effect": "Allow",
      "Action": [
        "autoscaling:DescribeAutoScalingGroups"
      ],
      "Resource": [
        "*"
      ]
    }
  ]
}
  • also make sure you role can passrole itself
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "iam:PassRole",
            "Resource": "arn:aws:iam::<orgid>:role/<rolename>"
        }
    ]
}
  • launch!

Readme

Keywords

Package Sidebar

Install

npm i server-control-s3

Weekly Downloads

7

Version

0.0.13

License

MIT

Unpacked Size

62.1 kB

Total Files

8

Last publish

Collaborators

  • jlake