Ocean
Create a Ocean Resource
new Ocean(name: string, args: OceanArgs, opts?: CustomResourceOptions);def Ocean(resource_name, opts=None, associate_public_ip_address=None, autoscaler=None, cluster_name=None, desired_capacity=None, draining_timeout=None, ebs_optimized=None, iam_instance_profile=None, image_id=None, key_pair=None, max_size=None, min_size=None, monitoring=None, name=None, region=None, scheduled_tasks=None, security_group_ids=None, subnet_ids=None, tags=None, update_policy=None, user_data=None, utilize_reserved_instances=None, whitelists=None, __props__=None);public Ocean(string name, OceanArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args OceanArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args OceanArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OceanArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Ocean Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Ocean resource accepts the following input properties:
- Cluster
Name string The ocean cluster name.
- Region string
The region the cluster will run in.
- Security
Group List<string>Ids One or more security group ids.
- Subnet
Ids List<string> A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
- Associate
Public boolIp Address Configure public IP address allocation.
- Autoscaler
Pulumi.
Spot Inst. Ecs. Inputs. Ocean Autoscaler Args - Desired
Capacity int The number of instances to launch and maintain in the cluster.
- Draining
Timeout int The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- Ebs
Optimized bool Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- Iam
Instance stringProfile The instance profile iam role.
- Image
Id string ID of the image used to launch the instances.
- Key
Pair string The key pair to attach the instances.
- Max
Size int The upper limit of instances the cluster can scale up to.
- Min
Size int The lower limit of instances the cluster can scale down to.
- Monitoring bool
Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- Name string
The Ocean cluster name.
- Scheduled
Tasks List<Pulumi.Spot Inst. Ecs. Inputs. Ocean Scheduled Task Args> -
List<Pulumi.
Spot Inst. Ecs. Inputs. Ocean Tag Args> Optionally adds tags to instances launched in an Ocean cluster.
- Update
Policy Pulumi.Spot Inst. Ecs. Inputs. Ocean Update Policy Args - User
Data string Base64-encoded MIME user data to make available to the instances.
- Utilize
Reserved boolInstances If Reserved instances exist, OCean will utilize them before launching Spot instances.
- Whitelists List<string>
Instance types allowed in the Ocean cluster, Cannot be configured if blacklist is configured.
- Cluster
Name string The ocean cluster name.
- Region string
The region the cluster will run in.
- Security
Group []stringIds One or more security group ids.
- Subnet
Ids []string A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
- Associate
Public boolIp Address Configure public IP address allocation.
- Autoscaler
Ocean
Autoscaler - Desired
Capacity int The number of instances to launch and maintain in the cluster.
- Draining
Timeout int The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- Ebs
Optimized bool Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- Iam
Instance stringProfile The instance profile iam role.
- Image
Id string ID of the image used to launch the instances.
- Key
Pair string The key pair to attach the instances.
- Max
Size int The upper limit of instances the cluster can scale up to.
- Min
Size int The lower limit of instances the cluster can scale down to.
- Monitoring bool
Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- Name string
The Ocean cluster name.
- Scheduled
Tasks []OceanScheduled Task -
[]Ocean
Tag Optionally adds tags to instances launched in an Ocean cluster.
- Update
Policy OceanUpdate Policy - User
Data string Base64-encoded MIME user data to make available to the instances.
- Utilize
Reserved boolInstances If Reserved instances exist, OCean will utilize them before launching Spot instances.
- Whitelists []string
Instance types allowed in the Ocean cluster, Cannot be configured if blacklist is configured.
- cluster
Name string The ocean cluster name.
- region string
The region the cluster will run in.
- security
Group string[]Ids One or more security group ids.
- subnet
Ids string[] A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
- associate
Public booleanIp Address Configure public IP address allocation.
- autoscaler
Ocean
Autoscaler - desired
Capacity number The number of instances to launch and maintain in the cluster.
- draining
Timeout number The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- ebs
Optimized boolean Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- iam
Instance stringProfile The instance profile iam role.
- image
Id string ID of the image used to launch the instances.
- key
Pair string The key pair to attach the instances.
- max
Size number The upper limit of instances the cluster can scale up to.
- min
Size number The lower limit of instances the cluster can scale down to.
- monitoring boolean
Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- name string
The Ocean cluster name.
- scheduled
Tasks OceanScheduled Task[] -
Ocean
Tag[] Optionally adds tags to instances launched in an Ocean cluster.
- update
Policy OceanUpdate Policy - user
Data string Base64-encoded MIME user data to make available to the instances.
- utilize
Reserved booleanInstances If Reserved instances exist, OCean will utilize them before launching Spot instances.
- whitelists string[]
Instance types allowed in the Ocean cluster, Cannot be configured if blacklist is configured.
- cluster_
name str The ocean cluster name.
- region str
The region the cluster will run in.
- security_
group_ List[str]ids One or more security group ids.
- subnet_
ids List[str] A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
- associate_
public_ boolip_ address Configure public IP address allocation.
- autoscaler
Dict[Ocean
Autoscaler] - desired_
capacity float The number of instances to launch and maintain in the cluster.
- draining_
timeout float The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- ebs_
optimized bool Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- iam_
instance_ strprofile The instance profile iam role.
- image_
id str ID of the image used to launch the instances.
- key_
pair str The key pair to attach the instances.
- max_
size float The upper limit of instances the cluster can scale up to.
- min_
size float The lower limit of instances the cluster can scale down to.
- monitoring bool
Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- name str
The Ocean cluster name.
- scheduled_
tasks List[OceanScheduled Task] -
List[Ocean
Tag] Optionally adds tags to instances launched in an Ocean cluster.
- update_
policy Dict[OceanUpdate Policy] - user_
data str Base64-encoded MIME user data to make available to the instances.
- utilize_
reserved_ boolinstances If Reserved instances exist, OCean will utilize them before launching Spot instances.
- whitelists List[str]
Instance types allowed in the Ocean cluster, Cannot be configured if blacklist is configured.
Outputs
All input properties are implicitly available as output properties. Additionally, the Ocean resource produces the following output properties:
Look up an Existing Ocean Resource
Get an existing Ocean 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?: OceanState, opts?: CustomResourceOptions): Oceanstatic get(resource_name, id, opts=None, associate_public_ip_address=None, autoscaler=None, cluster_name=None, desired_capacity=None, draining_timeout=None, ebs_optimized=None, iam_instance_profile=None, image_id=None, key_pair=None, max_size=None, min_size=None, monitoring=None, name=None, region=None, scheduled_tasks=None, security_group_ids=None, subnet_ids=None, tags=None, update_policy=None, user_data=None, utilize_reserved_instances=None, whitelists=None, __props__=None);func GetOcean(ctx *Context, name string, id IDInput, state *OceanState, opts ...ResourceOption) (*Ocean, error)public static Ocean Get(string name, Input<string> id, OceanState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Associate
Public boolIp Address Configure public IP address allocation.
- Autoscaler
Pulumi.
Spot Inst. Ecs. Inputs. Ocean Autoscaler Args - Cluster
Name string The ocean cluster name.
- Desired
Capacity int The number of instances to launch and maintain in the cluster.
- Draining
Timeout int The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- Ebs
Optimized bool Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- Iam
Instance stringProfile The instance profile iam role.
- Image
Id string ID of the image used to launch the instances.
- Key
Pair string The key pair to attach the instances.
- Max
Size int The upper limit of instances the cluster can scale up to.
- Min
Size int The lower limit of instances the cluster can scale down to.
- Monitoring bool
Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- Name string
The Ocean cluster name.
- Region string
The region the cluster will run in.
- Scheduled
Tasks List<Pulumi.Spot Inst. Ecs. Inputs. Ocean Scheduled Task Args> - Security
Group List<string>Ids One or more security group ids.
- Subnet
Ids List<string> A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
-
List<Pulumi.
Spot Inst. Ecs. Inputs. Ocean Tag Args> Optionally adds tags to instances launched in an Ocean cluster.
- Update
Policy Pulumi.Spot Inst. Ecs. Inputs. Ocean Update Policy Args - User
Data string Base64-encoded MIME user data to make available to the instances.
- Utilize
Reserved boolInstances If Reserved instances exist, OCean will utilize them before launching Spot instances.
- Whitelists List<string>
Instance types allowed in the Ocean cluster, Cannot be configured if blacklist is configured.
- Associate
Public boolIp Address Configure public IP address allocation.
- Autoscaler
Ocean
Autoscaler - Cluster
Name string The ocean cluster name.
- Desired
Capacity int The number of instances to launch and maintain in the cluster.
- Draining
Timeout int The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- Ebs
Optimized bool Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- Iam
Instance stringProfile The instance profile iam role.
- Image
Id string ID of the image used to launch the instances.
- Key
Pair string The key pair to attach the instances.
- Max
Size int The upper limit of instances the cluster can scale up to.
- Min
Size int The lower limit of instances the cluster can scale down to.
- Monitoring bool
Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- Name string
The Ocean cluster name.
- Region string
The region the cluster will run in.
- Scheduled
Tasks []OceanScheduled Task - Security
Group []stringIds One or more security group ids.
- Subnet
Ids []string A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
-
[]Ocean
Tag Optionally adds tags to instances launched in an Ocean cluster.
- Update
Policy OceanUpdate Policy - User
Data string Base64-encoded MIME user data to make available to the instances.
- Utilize
Reserved boolInstances If Reserved instances exist, OCean will utilize them before launching Spot instances.
- Whitelists []string
Instance types allowed in the Ocean cluster, Cannot be configured if blacklist is configured.
- associate
Public booleanIp Address Configure public IP address allocation.
- autoscaler
Ocean
Autoscaler - cluster
Name string The ocean cluster name.
- desired
Capacity number The number of instances to launch and maintain in the cluster.
- draining
Timeout number The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- ebs
Optimized boolean Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- iam
Instance stringProfile The instance profile iam role.
- image
Id string ID of the image used to launch the instances.
- key
Pair string The key pair to attach the instances.
- max
Size number The upper limit of instances the cluster can scale up to.
- min
Size number The lower limit of instances the cluster can scale down to.
- monitoring boolean
Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- name string
The Ocean cluster name.
- region string
The region the cluster will run in.
- scheduled
Tasks OceanScheduled Task[] - security
Group string[]Ids One or more security group ids.
- subnet
Ids string[] A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
-
Ocean
Tag[] Optionally adds tags to instances launched in an Ocean cluster.
- update
Policy OceanUpdate Policy - user
Data string Base64-encoded MIME user data to make available to the instances.
- utilize
Reserved booleanInstances If Reserved instances exist, OCean will utilize them before launching Spot instances.
- whitelists string[]
Instance types allowed in the Ocean cluster, Cannot be configured if blacklist is configured.
- associate_
public_ boolip_ address Configure public IP address allocation.
- autoscaler
Dict[Ocean
Autoscaler] - cluster_
name str The ocean cluster name.
- desired_
capacity float The number of instances to launch and maintain in the cluster.
- draining_
timeout float The time in seconds, the instance is allowed to run while detached from the ELB. This is to allow the instance time to be drained from incoming TCP connections before terminating it, during a scale down operation.
- ebs_
optimized bool Enable EBS optimized for cluster. Flag will enable optimized capacity for high bandwidth connectivity to the EB service for non EBS optimized instance types. For instances that are EBS optimized this flag will be ignored.
- iam_
instance_ strprofile The instance profile iam role.
- image_
id str ID of the image used to launch the instances.
- key_
pair str The key pair to attach the instances.
- max_
size float The upper limit of instances the cluster can scale up to.
- min_
size float The lower limit of instances the cluster can scale down to.
- monitoring bool
Enable detailed monitoring for cluster. Flag will enable Cloud Watch detailed detailed monitoring (one minute increments). Note: there are additional hourly costs for this service based on the region used.
- name str
The Ocean cluster name.
- region str
The region the cluster will run in.
- scheduled_
tasks List[OceanScheduled Task] - security_
group_ List[str]ids One or more security group ids.
- subnet_
ids List[str] A comma-separated list of subnet identifiers for the Ocean cluster. Subnet IDs should be configured with auto assign public ip.
-
List[Ocean
Tag] Optionally adds tags to instances launched in an Ocean cluster.
- update_
policy Dict[OceanUpdate Policy] - user_
data str Base64-encoded MIME user data to make available to the instances.
- utilize_
reserved_ boolinstances If Reserved instances exist, OCean will utilize them before launching Spot instances.
- whitelists List[str]
Instance types allowed in the Ocean cluster, Cannot be configured if blacklist is configured.
Supporting Types
OceanAutoscaler
OceanAutoscalerDown
OceanAutoscalerHeadroom
OceanAutoscalerResourceLimits
OceanScheduledTask
OceanScheduledTaskShutdownHours
OceanScheduledTaskTask
OceanTag
OceanUpdatePolicy
OceanUpdatePolicyRollConfig
Package Details
- Repository
- https://github.com/pulumi/pulumi-spotinst
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
spotinstTerraform Provider.