SpotFleetRequest is the Schema for the SpotFleetRequests API. Provides a Spot Fleet Request resource.
Type
CRD
Group
ec2.aws.upbound.io
Version
apiVersion: ec2.aws.upbound.io/v1beta1
kind: SpotFleetRequest
SpotFleetRequestSpec defines the desired state of SpotFleetRequest
No description provided.
Used to define the launch configuration of the spot-fleet request. Can be specified multiple times to define different bids across different markets and instance types. Conflicts with launch_template_config. At least one of launch_specification or launch_template_config is required.
No description provided.
No description provided.
Reference to a InstanceProfile in iam to populate iamInstanceProfileArn.
Policies for referencing.
Selector for a InstanceProfile in iam to populate iamInstanceProfileArn.
Policies for selection.
No description provided.
No description provided.
Launch template configuration block. See Launch Template Configs below for more details. Conflicts with launch_specification. At least one of launch_specification or launch_template_config is required.
Launch template specification. See Launch Template Specification below for more details.
Reference to a LaunchTemplate in ec2 to populate id.
Policies for referencing.
Selector for a LaunchTemplate in ec2 to populate id.
Policies for selection.
Reference to a LaunchTemplate in ec2 to populate version.
Policies for referencing.
Selector for a LaunchTemplate in ec2 to populate version.
Policies for selection.
One or more override configurations. See Overrides below for more details.
The instance requirements. See below.
List of accelerator manufacturer names. Default is any manufacturer.
List of accelerator names. Default is any acclerator.
List of accelerator types. Default is any accelerator type.
List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (), to allow an instance type, size, or generation. The following are examples: m5.8xlarge, c5., m5a., r*, 3. For example, if you specify c5*, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are allowing all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is all instance types.
List of CPU manufacturer names. Default is any manufacturer.
List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (), to exclude an instance type, size, or generation. The following are examples: m5.8xlarge, c5., m5a., r*, 3. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types.
List of instance generation names. Default is any generation.
List of local storage type names. Default any storage type.
A list of elastic load balancer names to add to the Spot fleet.
Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
Nested argument containing the capacity rebalance for your fleet request. Defined below.
A list of aws_alb_target_group ARNs, for use with Application Load Balancing.
THIS IS A BETA FIELD. It will be honored unless the Management Policies feature flag is disabled. InitProvider holds the same fields as ForProvider, with the exception of Identifier and other resource reference fields. The fields that are in InitProvider are merged into ForProvider when the resource is created. The same fields are also added to the terraform ignore_changes hook, to avoid updating them after creation. This is useful for fields that are required on creation, but we do not desire to update them after creation, for example because of an external controller is managing them, like an autoscaler.
Used to define the launch configuration of the spot-fleet request. Can be specified multiple times to define different bids across different markets and instance types. Conflicts with launch_template_config. At least one of launch_specification or launch_template_config is required.
No description provided.
No description provided.
Reference to a InstanceProfile in iam to populate iamInstanceProfileArn.
Policies for referencing.
Selector for a InstanceProfile in iam to populate iamInstanceProfileArn.
Policies for selection.
No description provided.
No description provided.
Launch template configuration block. See Launch Template Configs below for more details. Conflicts with launch_specification. At least one of launch_specification or launch_template_config is required.
Launch template specification. See Launch Template Specification below for more details.
Reference to a LaunchTemplate in ec2 to populate id.
Policies for referencing.
Selector for a LaunchTemplate in ec2 to populate id.
Policies for selection.
Reference to a LaunchTemplate in ec2 to populate version.
Policies for referencing.
Selector for a LaunchTemplate in ec2 to populate version.
Policies for selection.
One or more override configurations. See Overrides below for more details.
The instance requirements. See below.
List of accelerator manufacturer names. Default is any manufacturer.
List of accelerator names. Default is any acclerator.
List of accelerator types. Default is any accelerator type.
List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (), to allow an instance type, size, or generation. The following are examples: m5.8xlarge, c5., m5a., r*, 3. For example, if you specify c5*, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are allowing all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is all instance types.
List of CPU manufacturer names. Default is any manufacturer.
List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (), to exclude an instance type, size, or generation. The following are examples: m5.8xlarge, c5., m5a., r*, 3. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types.
List of instance generation names. Default is any generation.
List of local storage type names. Default any storage type.
A list of elastic load balancer names to add to the Spot fleet.
Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
Nested argument containing the capacity rebalance for your fleet request. Defined below.
A list of aws_alb_target_group ARNs, for use with Application Load Balancing.
THIS IS A BETA FIELD. It is on by default but can be opted out through a Crossplane feature flag. ManagementPolicies specify the array of actions Crossplane is allowed to take on the managed and external resources. This field is planned to replace the DeletionPolicy field in a future release. Currently, both could be set independently and non-default values would be honored if the feature flag is enabled. If both are custom, the DeletionPolicy field will be ignored. See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md
ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.
Policies for referencing.
PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.
WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other.
SpotFleetRequestStatus defines the observed state of SpotFleetRequest.
No description provided.
Used to define the launch configuration of the spot-fleet request. Can be specified multiple times to define different bids across different markets and instance types. Conflicts with launch_template_config. At least one of launch_specification or launch_template_config is required.
No description provided.
No description provided.
No description provided.
No description provided.
Launch template configuration block. See Launch Template Configs below for more details. Conflicts with launch_specification. At least one of launch_specification or launch_template_config is required.
One or more override configurations. See Overrides below for more details.
The instance requirements. See below.
List of accelerator manufacturer names. Default is any manufacturer.
List of accelerator names. Default is any acclerator.
List of accelerator types. Default is any accelerator type.
List of instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (), to allow an instance type, size, or generation. The following are examples: m5.8xlarge, c5., m5a., r*, 3. For example, if you specify c5*, you are allowing the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are allowing all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is all instance types.
List of CPU manufacturer names. Default is any manufacturer.
List of instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (), to exclude an instance type, size, or generation. The following are examples: m5.8xlarge, c5., m5a., r*, 3. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, you are excluding all the M5a instance types, but not the M5n instance types. Maximum of 400 entries in the list; each entry is limited to 30 characters. Default is no excluded instance types.
List of instance generation names. Default is any generation.
List of local storage type names. Default any storage type.
A list of elastic load balancer names to add to the Spot fleet.
Nested argument containing maintenance strategies for managing your Spot Instances that are at an elevated risk of being interrupted. Defined below.
Nested argument containing the capacity rebalance for your fleet request. Defined below.
A list of aws_alb_target_group ARNs, for use with Application Load Balancing.
Conditions of the resource.
cheap-compute
apiVersion: ec2.aws.upbound.io/v1beta1
kind: SpotFleetRequest
metadata:
annotations:
meta.upbound.io/example-id: ec2/v1beta1/spotfleetrequest
labels:
testing.upbound.io/example-name: cheap_compute
name: cheap-compute
spec:
forProvider:
allocationStrategy: capacityOptimized
iamFleetRole: arn:aws:iam::${data.aws_account_id}:role/aws-service-role/spotfleet.amazonaws.com/AWSServiceRoleForEC2SpotFleet
launchSpecification:
- ami: ami-0bdb828fd58c52235
iamInstanceProfileArnSelector:
matchLabels:
testing.upbound.io/example-name: test_profile
instanceType: t3.micro
placementTenancy: dedicated
spotPrice: "2.793"
region: us-west-1
spotPrice: "0.03"
targetCapacity: 6
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.