0.0.13 • Published 11 months ago

server-control-s3 v0.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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!
0.0.13

11 months ago

0.0.12

1 year ago

0.0.11

1 year ago