fbpx
Parameter Type Description
beanstalk.environment String

the beanstalk environment ID

Example: e-12345
ignoreInitHealthChecks String

determines whether Elasitgroup should wait for the instances to be healthy in order to complete the group's creation

Example: false
Request

Body
Copied!
Downloaded!
{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Description": "Template Example For Creating an Elastigroup in an Existing Beanstalk environment ",
  "Parameters": {
    "ignoreInitHealthChecks": {
      "Type": "String",
      "Default": "false",
      "AllowedValues": [
        "false",
        "true"
      ],
      "Description": "Should wait for instances to be healthy on group create"
    }
  },
  "Resources": {
    "SampleSpotinstElastigroup": {
      "Type": "Custom::beanstalkElastigroup",
      "Properties": {
        "ServiceToken": "arn:aws:lambda:us-west-1:178579023202:function:spotinst-cloudformation",
        "accessToken": "YOUR_TOKEN_HERE",
        "accountId": "act-12345",
        "createPolicy": {
          "ignoreInitHealthChecks": {
            "Ref": "ignoreInitHealthChecks"
          }
        },
        "beanstalkElastigroup": {
          "beanstalk": {
            "environmentId": "e-12345"
          },
          "name": "beanstalk-test",
          "region": "us-west-1",
          "healthCheckType": "TARGET_GROUP",
          "healthCheckGracePeriod": 600,
          "capacity": {
            "target": 1,
            "minimum": 1,
            "maximum": 1
          },
          "product": "Linux/UNIX",
          "spotInstanceTypes": [
            "m3.large",
            "m4.large"
          ]        
        },
        "groupConfig": {}
      }
    }
  }
}