spotinst.aws.Beanstalk
Explore with Pulumi AI
Provides a Spotinst AWS group resource using Elastic Beanstalk.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SpotInst = Pulumi.SpotInst;
return await Deployment.RunAsync(() =>
{
var elastigoup_aws_beanstalk = new SpotInst.Aws.Beanstalk("elastigoup-aws-beanstalk", new()
{
BeanstalkEnvironmentId = "e-example",
BeanstalkEnvironmentName = "example-env",
DeploymentPreferences = new SpotInst.Aws.Inputs.BeanstalkDeploymentPreferencesArgs
{
AutomaticRoll = true,
BatchSizePercentage = 100,
GracePeriod = 90,
Strategies = new[]
{
new SpotInst.Aws.Inputs.BeanstalkDeploymentPreferencesStrategyArgs
{
Action = "REPLACE_SERVER",
ShouldDrainInstances = true,
},
},
},
DesiredCapacity = 0,
InstanceTypesSpots = new[]
{
"t2.micro",
"t2.medium",
"t2.large",
},
ManagedActions = new SpotInst.Aws.Inputs.BeanstalkManagedActionsArgs
{
PlatformUpdate = new SpotInst.Aws.Inputs.BeanstalkManagedActionsPlatformUpdateArgs
{
PerformAt = "timeWindow",
TimeWindow = "Mon:23:50-Tue:00:20",
UpdateLevel = "minorAndPatch",
},
},
MaxSize = 1,
MinSize = 0,
Product = "Linux/UNIX",
Region = "us-west-2",
});
});
package main
import (
"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst/aws"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aws.NewBeanstalk(ctx, "elastigoup-aws-beanstalk", &aws.BeanstalkArgs{
BeanstalkEnvironmentId: pulumi.String("e-example"),
BeanstalkEnvironmentName: pulumi.String("example-env"),
DeploymentPreferences: &aws.BeanstalkDeploymentPreferencesArgs{
AutomaticRoll: pulumi.Bool(true),
BatchSizePercentage: pulumi.Int(100),
GracePeriod: pulumi.Int(90),
Strategies: aws.BeanstalkDeploymentPreferencesStrategyArray{
&aws.BeanstalkDeploymentPreferencesStrategyArgs{
Action: pulumi.String("REPLACE_SERVER"),
ShouldDrainInstances: pulumi.Bool(true),
},
},
},
DesiredCapacity: pulumi.Int(0),
InstanceTypesSpots: pulumi.StringArray{
pulumi.String("t2.micro"),
pulumi.String("t2.medium"),
pulumi.String("t2.large"),
},
ManagedActions: &aws.BeanstalkManagedActionsArgs{
PlatformUpdate: &aws.BeanstalkManagedActionsPlatformUpdateArgs{
PerformAt: pulumi.String("timeWindow"),
TimeWindow: pulumi.String("Mon:23:50-Tue:00:20"),
UpdateLevel: pulumi.String("minorAndPatch"),
},
},
MaxSize: pulumi.Int(1),
MinSize: pulumi.Int(0),
Product: pulumi.String("Linux/UNIX"),
Region: pulumi.String("us-west-2"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spotinst.aws.Beanstalk;
import com.pulumi.spotinst.aws.BeanstalkArgs;
import com.pulumi.spotinst.aws.inputs.BeanstalkDeploymentPreferencesArgs;
import com.pulumi.spotinst.aws.inputs.BeanstalkManagedActionsArgs;
import com.pulumi.spotinst.aws.inputs.BeanstalkManagedActionsPlatformUpdateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var elastigoup_aws_beanstalk = new Beanstalk("elastigoup-aws-beanstalk", BeanstalkArgs.builder()
.beanstalkEnvironmentId("e-example")
.beanstalkEnvironmentName("example-env")
.deploymentPreferences(BeanstalkDeploymentPreferencesArgs.builder()
.automaticRoll(true)
.batchSizePercentage(100)
.gracePeriod(90)
.strategies(BeanstalkDeploymentPreferencesStrategyArgs.builder()
.action("REPLACE_SERVER")
.shouldDrainInstances(true)
.build())
.build())
.desiredCapacity(0)
.instanceTypesSpots(
"t2.micro",
"t2.medium",
"t2.large")
.managedActions(BeanstalkManagedActionsArgs.builder()
.platformUpdate(BeanstalkManagedActionsPlatformUpdateArgs.builder()
.performAt("timeWindow")
.timeWindow("Mon:23:50-Tue:00:20")
.updateLevel("minorAndPatch")
.build())
.build())
.maxSize(1)
.minSize(0)
.product("Linux/UNIX")
.region("us-west-2")
.build());
}
}
import pulumi
import pulumi_spotinst as spotinst
elastigoup_aws_beanstalk = spotinst.aws.Beanstalk("elastigoup-aws-beanstalk",
beanstalk_environment_id="e-example",
beanstalk_environment_name="example-env",
deployment_preferences=spotinst.aws.BeanstalkDeploymentPreferencesArgs(
automatic_roll=True,
batch_size_percentage=100,
grace_period=90,
strategies=[spotinst.aws.BeanstalkDeploymentPreferencesStrategyArgs(
action="REPLACE_SERVER",
should_drain_instances=True,
)],
),
desired_capacity=0,
instance_types_spots=[
"t2.micro",
"t2.medium",
"t2.large",
],
managed_actions=spotinst.aws.BeanstalkManagedActionsArgs(
platform_update=spotinst.aws.BeanstalkManagedActionsPlatformUpdateArgs(
perform_at="timeWindow",
time_window="Mon:23:50-Tue:00:20",
update_level="minorAndPatch",
),
),
max_size=1,
min_size=0,
product="Linux/UNIX",
region="us-west-2")
import * as pulumi from "@pulumi/pulumi";
import * as spotinst from "@pulumi/spotinst";
const elastigoup_aws_beanstalk = new spotinst.aws.Beanstalk("elastigoup-aws-beanstalk", {
beanstalkEnvironmentId: "e-example",
beanstalkEnvironmentName: "example-env",
deploymentPreferences: {
automaticRoll: true,
batchSizePercentage: 100,
gracePeriod: 90,
strategies: [{
action: "REPLACE_SERVER",
shouldDrainInstances: true,
}],
},
desiredCapacity: 0,
instanceTypesSpots: [
"t2.micro",
"t2.medium",
"t2.large",
],
managedActions: {
platformUpdate: {
performAt: "timeWindow",
timeWindow: "Mon:23:50-Tue:00:20",
updateLevel: "minorAndPatch",
},
},
maxSize: 1,
minSize: 0,
product: "Linux/UNIX",
region: "us-west-2",
});
resources:
elastigoup-aws-beanstalk:
type: spotinst:aws:Beanstalk
properties:
beanstalkEnvironmentId: e-example
beanstalkEnvironmentName: example-env
deploymentPreferences:
automaticRoll: true
batchSizePercentage: 100
gracePeriod: 90
strategies:
- action: REPLACE_SERVER
shouldDrainInstances: true
desiredCapacity: 0
instanceTypesSpots:
- t2.micro
- t2.medium
- t2.large
managedActions:
platformUpdate:
performAt: timeWindow
timeWindow: Mon:23:50-Tue:00:20
updateLevel: minorAndPatch
maxSize: 1
minSize: 0
product: Linux/UNIX
region: us-west-2
Create Beanstalk Resource
new Beanstalk(name: string, args: BeanstalkArgs, opts?: CustomResourceOptions);
@overload
def Beanstalk(resource_name: str,
opts: Optional[ResourceOptions] = None,
beanstalk_environment_id: Optional[str] = None,
beanstalk_environment_name: Optional[str] = None,
deployment_preferences: Optional[BeanstalkDeploymentPreferencesArgs] = None,
desired_capacity: Optional[int] = None,
instance_types_spots: Optional[Sequence[str]] = None,
maintenance: Optional[str] = None,
managed_actions: Optional[BeanstalkManagedActionsArgs] = None,
max_size: Optional[int] = None,
min_size: Optional[int] = None,
name: Optional[str] = None,
product: Optional[str] = None,
region: Optional[str] = None,
scheduled_tasks: Optional[Sequence[BeanstalkScheduledTaskArgs]] = None)
@overload
def Beanstalk(resource_name: str,
args: BeanstalkArgs,
opts: Optional[ResourceOptions] = None)
func NewBeanstalk(ctx *Context, name string, args BeanstalkArgs, opts ...ResourceOption) (*Beanstalk, error)
public Beanstalk(string name, BeanstalkArgs args, CustomResourceOptions? opts = null)
public Beanstalk(String name, BeanstalkArgs args)
public Beanstalk(String name, BeanstalkArgs args, CustomResourceOptions options)
type: spotinst:aws:Beanstalk
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BeanstalkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BeanstalkArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BeanstalkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BeanstalkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BeanstalkArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Beanstalk Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Beanstalk resource accepts the following input properties:
- Desired
Capacity int The desired number of instances the group should have at any time.
- Instance
Types List<string>Spots One or more instance types. To maximize the availability of Spot instances, select as many instance types as possible.
- Max
Size int The maximum number of instances the group should have at any time.
- Min
Size int The minimum number of instances the group should have at any time.
- Product string
Operation system type. Valid values:
"Linux/UNIX"
,"SUSE Linux"
,"Windows"
. For EC2 Classic instances:"Linux/UNIX (Amazon VPC)"
,"SUSE Linux (Amazon VPC)"
,"Windows (Amazon VPC)"
.- Region string
The AWS region your group will be created in. Cannot be changed after the group has been created.
- Beanstalk
Environment stringId The id of an existing Beanstalk environment.
- Beanstalk
Environment stringName The name of an existing Beanstalk environment.
- Deployment
Preferences Pulumi.Spot Inst. Aws. Inputs. Beanstalk Deployment Preferences Preferences when performing a roll
- Maintenance string
- Managed
Actions Pulumi.Spot Inst. Aws. Inputs. Beanstalk Managed Actions Managed Actions parameters
- Name string
The group name.
- Scheduled
Tasks List<Pulumi.Spot Inst. Aws. Inputs. Beanstalk Scheduled Task>
- Desired
Capacity int The desired number of instances the group should have at any time.
- Instance
Types []stringSpots One or more instance types. To maximize the availability of Spot instances, select as many instance types as possible.
- Max
Size int The maximum number of instances the group should have at any time.
- Min
Size int The minimum number of instances the group should have at any time.
- Product string
Operation system type. Valid values:
"Linux/UNIX"
,"SUSE Linux"
,"Windows"
. For EC2 Classic instances:"Linux/UNIX (Amazon VPC)"
,"SUSE Linux (Amazon VPC)"
,"Windows (Amazon VPC)"
.- Region string
The AWS region your group will be created in. Cannot be changed after the group has been created.
- Beanstalk
Environment stringId The id of an existing Beanstalk environment.
- Beanstalk
Environment stringName The name of an existing Beanstalk environment.
- Deployment
Preferences BeanstalkDeployment Preferences Args Preferences when performing a roll
- Maintenance string
- Managed
Actions BeanstalkManaged Actions Args Managed Actions parameters
- Name string
The group name.
- Scheduled
Tasks []BeanstalkScheduled Task Args
- desired
Capacity Integer The desired number of instances the group should have at any time.
- instance
Types List<String>Spots One or more instance types. To maximize the availability of Spot instances, select as many instance types as possible.
- max
Size Integer The maximum number of instances the group should have at any time.
- min
Size Integer The minimum number of instances the group should have at any time.
- product String
Operation system type. Valid values:
"Linux/UNIX"
,"SUSE Linux"
,"Windows"
. For EC2 Classic instances:"Linux/UNIX (Amazon VPC)"
,"SUSE Linux (Amazon VPC)"
,"Windows (Amazon VPC)"
.- region String
The AWS region your group will be created in. Cannot be changed after the group has been created.
- beanstalk
Environment StringId The id of an existing Beanstalk environment.
- beanstalk
Environment StringName The name of an existing Beanstalk environment.
- deployment
Preferences BeanstalkDeployment Preferences Preferences when performing a roll
- maintenance String
- managed
Actions BeanstalkManaged Actions Managed Actions parameters
- name String
The group name.
- scheduled
Tasks List<BeanstalkScheduled Task>
- desired
Capacity number The desired number of instances the group should have at any time.
- instance
Types string[]Spots One or more instance types. To maximize the availability of Spot instances, select as many instance types as possible.
- max
Size number The maximum number of instances the group should have at any time.
- min
Size number The minimum number of instances the group should have at any time.
- product string
Operation system type. Valid values:
"Linux/UNIX"
,"SUSE Linux"
,"Windows"
. For EC2 Classic instances:"Linux/UNIX (Amazon VPC)"
,"SUSE Linux (Amazon VPC)"
,"Windows (Amazon VPC)"
.- region string
The AWS region your group will be created in. Cannot be changed after the group has been created.
- beanstalk
Environment stringId The id of an existing Beanstalk environment.
- beanstalk
Environment stringName The name of an existing Beanstalk environment.
- deployment
Preferences BeanstalkDeployment Preferences Preferences when performing a roll
- maintenance string
- managed
Actions BeanstalkManaged Actions Managed Actions parameters
- name string
The group name.
- scheduled
Tasks BeanstalkScheduled Task[]
- desired_
capacity int The desired number of instances the group should have at any time.
- instance_
types_ Sequence[str]spots One or more instance types. To maximize the availability of Spot instances, select as many instance types as possible.
- max_
size int The maximum number of instances the group should have at any time.
- min_
size int The minimum number of instances the group should have at any time.
- product str
Operation system type. Valid values:
"Linux/UNIX"
,"SUSE Linux"
,"Windows"
. For EC2 Classic instances:"Linux/UNIX (Amazon VPC)"
,"SUSE Linux (Amazon VPC)"
,"Windows (Amazon VPC)"
.- region str
The AWS region your group will be created in. Cannot be changed after the group has been created.
- beanstalk_
environment_ strid The id of an existing Beanstalk environment.
- beanstalk_
environment_ strname The name of an existing Beanstalk environment.
- deployment_
preferences BeanstalkDeployment Preferences Args Preferences when performing a roll
- maintenance str
- managed_
actions BeanstalkManaged Actions Args Managed Actions parameters
- name str
The group name.
- scheduled_
tasks Sequence[BeanstalkScheduled Task Args]
- desired
Capacity Number The desired number of instances the group should have at any time.
- instance
Types List<String>Spots One or more instance types. To maximize the availability of Spot instances, select as many instance types as possible.
- max
Size Number The maximum number of instances the group should have at any time.
- min
Size Number The minimum number of instances the group should have at any time.
- product String
Operation system type. Valid values:
"Linux/UNIX"
,"SUSE Linux"
,"Windows"
. For EC2 Classic instances:"Linux/UNIX (Amazon VPC)"
,"SUSE Linux (Amazon VPC)"
,"Windows (Amazon VPC)"
.- region String
The AWS region your group will be created in. Cannot be changed after the group has been created.
- beanstalk
Environment StringId The id of an existing Beanstalk environment.
- beanstalk
Environment StringName The name of an existing Beanstalk environment.
- deployment
Preferences Property Map Preferences when performing a roll
- maintenance String
- managed
Actions Property Map Managed Actions parameters
- name String
The group name.
- scheduled
Tasks List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the Beanstalk resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing Beanstalk Resource
Get an existing Beanstalk resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BeanstalkState, opts?: CustomResourceOptions): Beanstalk
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
beanstalk_environment_id: Optional[str] = None,
beanstalk_environment_name: Optional[str] = None,
deployment_preferences: Optional[BeanstalkDeploymentPreferencesArgs] = None,
desired_capacity: Optional[int] = None,
instance_types_spots: Optional[Sequence[str]] = None,
maintenance: Optional[str] = None,
managed_actions: Optional[BeanstalkManagedActionsArgs] = None,
max_size: Optional[int] = None,
min_size: Optional[int] = None,
name: Optional[str] = None,
product: Optional[str] = None,
region: Optional[str] = None,
scheduled_tasks: Optional[Sequence[BeanstalkScheduledTaskArgs]] = None) -> Beanstalk
func GetBeanstalk(ctx *Context, name string, id IDInput, state *BeanstalkState, opts ...ResourceOption) (*Beanstalk, error)
public static Beanstalk Get(string name, Input<string> id, BeanstalkState? state, CustomResourceOptions? opts = null)
public static Beanstalk get(String name, Output<String> id, BeanstalkState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Beanstalk
Environment stringId The id of an existing Beanstalk environment.
- Beanstalk
Environment stringName The name of an existing Beanstalk environment.
- Deployment
Preferences Pulumi.Spot Inst. Aws. Inputs. Beanstalk Deployment Preferences Preferences when performing a roll
- Desired
Capacity int The desired number of instances the group should have at any time.
- Instance
Types List<string>Spots One or more instance types. To maximize the availability of Spot instances, select as many instance types as possible.
- Maintenance string
- Managed
Actions Pulumi.Spot Inst. Aws. Inputs. Beanstalk Managed Actions Managed Actions parameters
- Max
Size int The maximum number of instances the group should have at any time.
- Min
Size int The minimum number of instances the group should have at any time.
- Name string
The group name.
- Product string
Operation system type. Valid values:
"Linux/UNIX"
,"SUSE Linux"
,"Windows"
. For EC2 Classic instances:"Linux/UNIX (Amazon VPC)"
,"SUSE Linux (Amazon VPC)"
,"Windows (Amazon VPC)"
.- Region string
The AWS region your group will be created in. Cannot be changed after the group has been created.
- Scheduled
Tasks List<Pulumi.Spot Inst. Aws. Inputs. Beanstalk Scheduled Task>
- Beanstalk
Environment stringId The id of an existing Beanstalk environment.
- Beanstalk
Environment stringName The name of an existing Beanstalk environment.
- Deployment
Preferences BeanstalkDeployment Preferences Args Preferences when performing a roll
- Desired
Capacity int The desired number of instances the group should have at any time.
- Instance
Types []stringSpots One or more instance types. To maximize the availability of Spot instances, select as many instance types as possible.
- Maintenance string
- Managed
Actions BeanstalkManaged Actions Args Managed Actions parameters
- Max
Size int The maximum number of instances the group should have at any time.
- Min
Size int The minimum number of instances the group should have at any time.
- Name string
The group name.
- Product string
Operation system type. Valid values:
"Linux/UNIX"
,"SUSE Linux"
,"Windows"
. For EC2 Classic instances:"Linux/UNIX (Amazon VPC)"
,"SUSE Linux (Amazon VPC)"
,"Windows (Amazon VPC)"
.- Region string
The AWS region your group will be created in. Cannot be changed after the group has been created.
- Scheduled
Tasks []BeanstalkScheduled Task Args
- beanstalk
Environment StringId The id of an existing Beanstalk environment.
- beanstalk
Environment StringName The name of an existing Beanstalk environment.
- deployment
Preferences BeanstalkDeployment Preferences Preferences when performing a roll
- desired
Capacity Integer The desired number of instances the group should have at any time.
- instance
Types List<String>Spots One or more instance types. To maximize the availability of Spot instances, select as many instance types as possible.
- maintenance String
- managed
Actions BeanstalkManaged Actions Managed Actions parameters
- max
Size Integer The maximum number of instances the group should have at any time.
- min
Size Integer The minimum number of instances the group should have at any time.
- name String
The group name.
- product String
Operation system type. Valid values:
"Linux/UNIX"
,"SUSE Linux"
,"Windows"
. For EC2 Classic instances:"Linux/UNIX (Amazon VPC)"
,"SUSE Linux (Amazon VPC)"
,"Windows (Amazon VPC)"
.- region String
The AWS region your group will be created in. Cannot be changed after the group has been created.
- scheduled
Tasks List<BeanstalkScheduled Task>
- beanstalk
Environment stringId The id of an existing Beanstalk environment.
- beanstalk
Environment stringName The name of an existing Beanstalk environment.
- deployment
Preferences BeanstalkDeployment Preferences Preferences when performing a roll
- desired
Capacity number The desired number of instances the group should have at any time.
- instance
Types string[]Spots One or more instance types. To maximize the availability of Spot instances, select as many instance types as possible.
- maintenance string
- managed
Actions BeanstalkManaged Actions Managed Actions parameters
- max
Size number The maximum number of instances the group should have at any time.
- min
Size number The minimum number of instances the group should have at any time.
- name string
The group name.
- product string
Operation system type. Valid values:
"Linux/UNIX"
,"SUSE Linux"
,"Windows"
. For EC2 Classic instances:"Linux/UNIX (Amazon VPC)"
,"SUSE Linux (Amazon VPC)"
,"Windows (Amazon VPC)"
.- region string
The AWS region your group will be created in. Cannot be changed after the group has been created.
- scheduled
Tasks BeanstalkScheduled Task[]
- beanstalk_
environment_ strid The id of an existing Beanstalk environment.
- beanstalk_
environment_ strname The name of an existing Beanstalk environment.
- deployment_
preferences BeanstalkDeployment Preferences Args Preferences when performing a roll
- desired_
capacity int The desired number of instances the group should have at any time.
- instance_
types_ Sequence[str]spots One or more instance types. To maximize the availability of Spot instances, select as many instance types as possible.
- maintenance str
- managed_
actions BeanstalkManaged Actions Args Managed Actions parameters
- max_
size int The maximum number of instances the group should have at any time.
- min_
size int The minimum number of instances the group should have at any time.
- name str
The group name.
- product str
Operation system type. Valid values:
"Linux/UNIX"
,"SUSE Linux"
,"Windows"
. For EC2 Classic instances:"Linux/UNIX (Amazon VPC)"
,"SUSE Linux (Amazon VPC)"
,"Windows (Amazon VPC)"
.- region str
The AWS region your group will be created in. Cannot be changed after the group has been created.
- scheduled_
tasks Sequence[BeanstalkScheduled Task Args]
- beanstalk
Environment StringId The id of an existing Beanstalk environment.
- beanstalk
Environment StringName The name of an existing Beanstalk environment.
- deployment
Preferences Property Map Preferences when performing a roll
- desired
Capacity Number The desired number of instances the group should have at any time.
- instance
Types List<String>Spots One or more instance types. To maximize the availability of Spot instances, select as many instance types as possible.
- maintenance String
- managed
Actions Property Map Managed Actions parameters
- max
Size Number The maximum number of instances the group should have at any time.
- min
Size Number The minimum number of instances the group should have at any time.
- name String
The group name.
- product String
Operation system type. Valid values:
"Linux/UNIX"
,"SUSE Linux"
,"Windows"
. For EC2 Classic instances:"Linux/UNIX (Amazon VPC)"
,"SUSE Linux (Amazon VPC)"
,"Windows (Amazon VPC)"
.- region String
The AWS region your group will be created in. Cannot be changed after the group has been created.
- scheduled
Tasks List<Property Map>
Supporting Types
BeanstalkDeploymentPreferences, BeanstalkDeploymentPreferencesArgs
- Automatic
Roll bool Should roll perform automatically
- Batch
Size intPercentage Percent size of each batch
- Grace
Period int Amount of time to wait between batches
- Strategies
List<Pulumi.
Spot Inst. Aws. Inputs. Beanstalk Deployment Preferences Strategy> Strategy parameters
- Automatic
Roll bool Should roll perform automatically
- Batch
Size intPercentage Percent size of each batch
- Grace
Period int Amount of time to wait between batches
- Strategies
[]Beanstalk
Deployment Preferences Strategy Strategy parameters
- automatic
Roll Boolean Should roll perform automatically
- batch
Size IntegerPercentage Percent size of each batch
- grace
Period Integer Amount of time to wait between batches
- strategies
List<Beanstalk
Deployment Preferences Strategy> Strategy parameters
- automatic
Roll boolean Should roll perform automatically
- batch
Size numberPercentage Percent size of each batch
- grace
Period number Amount of time to wait between batches
- strategies
Beanstalk
Deployment Preferences Strategy[] Strategy parameters
- automatic_
roll bool Should roll perform automatically
- batch_
size_ intpercentage Percent size of each batch
- grace_
period int Amount of time to wait between batches
- strategies
Sequence[Beanstalk
Deployment Preferences Strategy] Strategy parameters
- automatic
Roll Boolean Should roll perform automatically
- batch
Size NumberPercentage Percent size of each batch
- grace
Period Number Amount of time to wait between batches
- strategies List<Property Map>
Strategy parameters
BeanstalkDeploymentPreferencesStrategy, BeanstalkDeploymentPreferencesStrategyArgs
- Action string
Action to take
- Should
Drain boolInstances Bool value if to wait to drain instance
- Action string
Action to take
- Should
Drain boolInstances Bool value if to wait to drain instance
- action String
Action to take
- should
Drain BooleanInstances Bool value if to wait to drain instance
- action string
Action to take
- should
Drain booleanInstances Bool value if to wait to drain instance
- action str
Action to take
- should_
drain_ boolinstances Bool value if to wait to drain instance
- action String
Action to take
- should
Drain BooleanInstances Bool value if to wait to drain instance
BeanstalkManagedActions, BeanstalkManagedActionsArgs
- Platform
Update Pulumi.Spot Inst. Aws. Inputs. Beanstalk Managed Actions Platform Update Platform Update parameters
- Platform
Update BeanstalkManaged Actions Platform Update Platform Update parameters
- platform
Update BeanstalkManaged Actions Platform Update Platform Update parameters
- platform
Update BeanstalkManaged Actions Platform Update Platform Update parameters
- platform_
update BeanstalkManaged Actions Platform Update Platform Update parameters
- platform
Update Property Map Platform Update parameters
BeanstalkManagedActionsPlatformUpdate, BeanstalkManagedActionsPlatformUpdateArgs
- Perform
At string Actions to perform (options: timeWindow, never)
- Time
Window string Time Window for when action occurs ex. Mon:23:50-Tue:00:20
- Update
Level string Level to update
- Perform
At string Actions to perform (options: timeWindow, never)
- Time
Window string Time Window for when action occurs ex. Mon:23:50-Tue:00:20
- Update
Level string Level to update
- perform
At String Actions to perform (options: timeWindow, never)
- time
Window String Time Window for when action occurs ex. Mon:23:50-Tue:00:20
- update
Level String Level to update
- perform
At string Actions to perform (options: timeWindow, never)
- time
Window string Time Window for when action occurs ex. Mon:23:50-Tue:00:20
- update
Level string Level to update
- perform_
at str Actions to perform (options: timeWindow, never)
- time_
window str Time Window for when action occurs ex. Mon:23:50-Tue:00:20
- update_
level str Level to update
- perform
At String Actions to perform (options: timeWindow, never)
- time
Window String Time Window for when action occurs ex. Mon:23:50-Tue:00:20
- update
Level String Level to update
BeanstalkScheduledTask, BeanstalkScheduledTaskArgs
- Task
Type string The task type to run. Supported task types are:
"scale"
,"backup_ami"
,"roll"
,"scaleUp"
,"percentageScaleUp"
,"scaleDown"
,"percentageScaleDown"
,"statefulUpdateCapacity"
.- Adjustment string
The number of instances to add or remove.
- Adjustment
Percentage string The percentage of instances to add or remove.
Usage:
import * as pulumi from "@pulumi/pulumi";
import pulumi
using System.Collections.Generic; using System.Linq; using Pulumi;
return await Deployment.RunAsync(() => { });
package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { } }
{}
- Batch
Size stringPercentage The percentage size of each batch in the scheduled deployment roll.
- Cron
Expression string A valid cron expression. The cron is running in UTC time zone and is in Unix cron format.
- Frequency string
The recurrence frequency to run this task. Supported values are
"hourly"
,"daily"
,"weekly"
and"continuous"
.- Grace
Period string The period of time (seconds) to wait before checking a batch's health after it's deployment.
- Is
Enabled bool Setting the task to being enabled or disabled.
- Max
Capacity string The maximum number of instances the group should have.
- Min
Capacity string The minimum number of instances the group should have.
- Scale
Max stringCapacity The maximum number of instances the group should have.
- Scale
Min stringCapacity The minimum number of instances the group should have.
- Scale
Target stringCapacity The desired number of instances the group should have.
- Start
Time string Set a start time for one time tasks.
- Target
Capacity string The desired number of instances the group should have.
- Task
Type string The task type to run. Supported task types are:
"scale"
,"backup_ami"
,"roll"
,"scaleUp"
,"percentageScaleUp"
,"scaleDown"
,"percentageScaleDown"
,"statefulUpdateCapacity"
.- Adjustment string
The number of instances to add or remove.
- Adjustment
Percentage string The percentage of instances to add or remove.
Usage:
import * as pulumi from "@pulumi/pulumi";
import pulumi
using System.Collections.Generic; using System.Linq; using Pulumi;
return await Deployment.RunAsync(() => { });
package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { } }
{}
- Batch
Size stringPercentage The percentage size of each batch in the scheduled deployment roll.
- Cron
Expression string A valid cron expression. The cron is running in UTC time zone and is in Unix cron format.
- Frequency string
The recurrence frequency to run this task. Supported values are
"hourly"
,"daily"
,"weekly"
and"continuous"
.- Grace
Period string The period of time (seconds) to wait before checking a batch's health after it's deployment.
- Is
Enabled bool Setting the task to being enabled or disabled.
- Max
Capacity string The maximum number of instances the group should have.
- Min
Capacity string The minimum number of instances the group should have.
- Scale
Max stringCapacity The maximum number of instances the group should have.
- Scale
Min stringCapacity The minimum number of instances the group should have.
- Scale
Target stringCapacity The desired number of instances the group should have.
- Start
Time string Set a start time for one time tasks.
- Target
Capacity string The desired number of instances the group should have.
- task
Type String The task type to run. Supported task types are:
"scale"
,"backup_ami"
,"roll"
,"scaleUp"
,"percentageScaleUp"
,"scaleDown"
,"percentageScaleDown"
,"statefulUpdateCapacity"
.- adjustment String
The number of instances to add or remove.
- adjustment
Percentage String The percentage of instances to add or remove.
Usage:
import * as pulumi from "@pulumi/pulumi";
import pulumi
using System.Collections.Generic; using System.Linq; using Pulumi;
return await Deployment.RunAsync(() => { });
package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { } }
{}
- batch
Size StringPercentage The percentage size of each batch in the scheduled deployment roll.
- cron
Expression String A valid cron expression. The cron is running in UTC time zone and is in Unix cron format.
- frequency String
The recurrence frequency to run this task. Supported values are
"hourly"
,"daily"
,"weekly"
and"continuous"
.- grace
Period String The period of time (seconds) to wait before checking a batch's health after it's deployment.
- is
Enabled Boolean Setting the task to being enabled or disabled.
- max
Capacity String The maximum number of instances the group should have.
- min
Capacity String The minimum number of instances the group should have.
- scale
Max StringCapacity The maximum number of instances the group should have.
- scale
Min StringCapacity The minimum number of instances the group should have.
- scale
Target StringCapacity The desired number of instances the group should have.
- start
Time String Set a start time for one time tasks.
- target
Capacity String The desired number of instances the group should have.
- task
Type string The task type to run. Supported task types are:
"scale"
,"backup_ami"
,"roll"
,"scaleUp"
,"percentageScaleUp"
,"scaleDown"
,"percentageScaleDown"
,"statefulUpdateCapacity"
.- adjustment string
The number of instances to add or remove.
- adjustment
Percentage string The percentage of instances to add or remove.
Usage:
import * as pulumi from "@pulumi/pulumi";
import pulumi
using System.Collections.Generic; using System.Linq; using Pulumi;
return await Deployment.RunAsync(() => { });
package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { } }
{}
- batch
Size stringPercentage The percentage size of each batch in the scheduled deployment roll.
- cron
Expression string A valid cron expression. The cron is running in UTC time zone and is in Unix cron format.
- frequency string
The recurrence frequency to run this task. Supported values are
"hourly"
,"daily"
,"weekly"
and"continuous"
.- grace
Period string The period of time (seconds) to wait before checking a batch's health after it's deployment.
- is
Enabled boolean Setting the task to being enabled or disabled.
- max
Capacity string The maximum number of instances the group should have.
- min
Capacity string The minimum number of instances the group should have.
- scale
Max stringCapacity The maximum number of instances the group should have.
- scale
Min stringCapacity The minimum number of instances the group should have.
- scale
Target stringCapacity The desired number of instances the group should have.
- start
Time string Set a start time for one time tasks.
- target
Capacity string The desired number of instances the group should have.
- task_
type str The task type to run. Supported task types are:
"scale"
,"backup_ami"
,"roll"
,"scaleUp"
,"percentageScaleUp"
,"scaleDown"
,"percentageScaleDown"
,"statefulUpdateCapacity"
.- adjustment str
The number of instances to add or remove.
- adjustment_
percentage str The percentage of instances to add or remove.
Usage:
import * as pulumi from "@pulumi/pulumi";
import pulumi
using System.Collections.Generic; using System.Linq; using Pulumi;
return await Deployment.RunAsync(() => { });
package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { } }
{}
- batch_
size_ strpercentage The percentage size of each batch in the scheduled deployment roll.
- cron_
expression str A valid cron expression. The cron is running in UTC time zone and is in Unix cron format.
- frequency str
The recurrence frequency to run this task. Supported values are
"hourly"
,"daily"
,"weekly"
and"continuous"
.- grace_
period str The period of time (seconds) to wait before checking a batch's health after it's deployment.
- is_
enabled bool Setting the task to being enabled or disabled.
- max_
capacity str The maximum number of instances the group should have.
- min_
capacity str The minimum number of instances the group should have.
- scale_
max_ strcapacity The maximum number of instances the group should have.
- scale_
min_ strcapacity The minimum number of instances the group should have.
- scale_
target_ strcapacity The desired number of instances the group should have.
- start_
time str Set a start time for one time tasks.
- target_
capacity str The desired number of instances the group should have.
- task
Type String The task type to run. Supported task types are:
"scale"
,"backup_ami"
,"roll"
,"scaleUp"
,"percentageScaleUp"
,"scaleDown"
,"percentageScaleDown"
,"statefulUpdateCapacity"
.- adjustment String
The number of instances to add or remove.
- adjustment
Percentage String The percentage of instances to add or remove.
Usage:
import * as pulumi from "@pulumi/pulumi";
import pulumi
using System.Collections.Generic; using System.Linq; using Pulumi;
return await Deployment.RunAsync(() => { });
package main import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { return nil }) }
package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { } }
{}
- batch
Size StringPercentage The percentage size of each batch in the scheduled deployment roll.
- cron
Expression String A valid cron expression. The cron is running in UTC time zone and is in Unix cron format.
- frequency String
The recurrence frequency to run this task. Supported values are
"hourly"
,"daily"
,"weekly"
and"continuous"
.- grace
Period String The period of time (seconds) to wait before checking a batch's health after it's deployment.
- is
Enabled Boolean Setting the task to being enabled or disabled.
- max
Capacity String The maximum number of instances the group should have.
- min
Capacity String The minimum number of instances the group should have.
- scale
Max StringCapacity The maximum number of instances the group should have.
- scale
Min StringCapacity The minimum number of instances the group should have.
- scale
Target StringCapacity The desired number of instances the group should have.
- start
Time String Set a start time for one time tasks.
- target
Capacity String The desired number of instances the group should have.
Package Details
- Repository
- Spotinst pulumi/pulumi-spotinst
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
spotinst
Terraform Provider.