Create New Environment
To create an Elastigroup in the same template that creates a Beanstalk environment, create the following in your template:
- Create a new beanstalk environment.
- Create a new Elastigroup which is dependent on the new Beanstalk Environment.
"DependsOn": "SampleEnv" - Under the Elastigroup Beanstalk property, use
EnvironmentNameparameter instead ofenvironmentId, and reference (ref) to the new environment name.
You can see the full list of all available Beanstalk parameters.
{
"beanstalk": {
"environmentName": {
"Ref": "SampleEnv"
}
}
}
| Parameter | Type | Description |
|---|---|---|
environmentName | String | The new Beanstalk Environment name Example: SampleEnv |