spotinst.azure.Elastigroup
Explore with Pulumi AI
Provides a Spotinst elastigroup Azure resource.
Strategy
spot_percentage
- (Optional) Percentage of Spot-VMs to maintain. Required ifon_demand_count
is not specified.on_demand_count
- (Optional) Number of On-Demand VMs to maintain. Required ifspot_percentage
is not specified.fallback_to_on_demand
-draining_timeout
- (Optional, Default120
) Time (seconds) to allow the instance to be drained from incoming TCP connections and detached from MLB before terminating it during a scale-down operation.
Image
image
- (Required) Image of a VM. An image is a template for creating new VMs. Choose from Azure image catalogue (marketplace) or use a custom image.publisher
- (Optional) Image publisher. Required if resource_group_name is not specified.offer
- (Optional) Name of the image to use. Required if publisher is specified.sku
- (Optional) Image’s Stock Keeping Unit, which is the specific version of the image. Required if publisher is specified.version
-resource_group_name
- (Optional) Name of Resource Group for custom image. Required if publisher not specified.image_name
- (Optional) Name of the custom image. Required if resource_group_name is specified.
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) {
}
}
{}
Network
network
- (Required) Defines the Virtual Network and Subnet for your Elastigroup.virtual_network_name
- (Required) Name of Vnet.resource_group_name
- (Required) Vnet Resource Group Name.network_interfaces
-subnet_name
- (Required) ID of subnet.assign_public_up
- (Optional, Default:false
) Assign a public IP to each VM in the Elastigroup.is_primary
-additional_ip_configs
- (Optional) Array of additional IP configuration objects.name
- (Required) The IP configuration name.private_ip_version
- (Optional) Available from Azure Api-Version 2017-03-30 onwards, it represents whether the specific ip configuration is IPv4 or IPv6. Valid values:IPv4
,IPv6
.
application_security_group
- (Optional) - List of Application Security Groups that will be associated to the primary ip configuration of the network interface.name
- (Required) - The name of the Application Security group.resource_group_name
- (Required) - The resource group of the Application Security Group. }
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) {
}
}
{}
Login
login
- (Required) Describes the login configuration.user_name
- (Required) Set admin access for accessing your VMs.ssh_public_key
- (Optional) SSH for admin access to Linux VMs. Required for Linux OS types.password
- (Optional) Password for admin access to Windows VMs. Required for Windows OS types.
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) {
}
}
{}
Example Usage
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 com.pulumi.spotinst.ElastigroupAzureV3;
import com.pulumi.spotinst.ElastigroupAzureV3Args;
import com.pulumi.spotinst.inputs.ElastigroupAzureV3ImageArgs;
import com.pulumi.spotinst.inputs.ElastigroupAzureV3LoginArgs;
import com.pulumi.spotinst.inputs.ElastigroupAzureV3ManagedServiceIdentityArgs;
import com.pulumi.spotinst.inputs.ElastigroupAzureV3NetworkArgs;
import com.pulumi.spotinst.inputs.ElastigroupAzureV3TagArgs;
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 testAzureGroup = new ElastigroupAzureV3("testAzureGroup", ElastigroupAzureV3Args.builder()
.customData("IyEvYmluL2Jhc2gKZWNobyAidGVzdCI=")
.desiredCapacity(1)
.drainingTimeout(300)
.fallbackToOnDemand(true)
.images(ElastigroupAzureV3ImageArgs.builder()
.marketplaces(ElastigroupAzureV3ImageMarketplaceArgs.builder()
.offer("UbuntuServer")
.publisher("Canonical")
.sku("18.04-LTS")
.version("latest")
.build())
.build())
.login(ElastigroupAzureV3LoginArgs.builder()
.sshPublicKey("33a2s1f3g5a1df5g1ad3f2g1adfg56dfg==")
.userName("admin")
.build())
.managedServiceIdentities(ElastigroupAzureV3ManagedServiceIdentityArgs.builder()
.name("ocean-westus-dev-aks-agentpool")
.resourceGroupName("MC_ocean-westus-dev_ocean-westus-dev-aks_westus")
.build())
.maxSize(1)
.minSize(0)
.network(ElastigroupAzureV3NetworkArgs.builder()
.networkInterfaces(ElastigroupAzureV3NetworkNetworkInterfaceArgs.builder()
.additionalIpConfigs(ElastigroupAzureV3NetworkNetworkInterfaceAdditionalIpConfigArgs.builder()
.privateIPVersion("IPv4")
.name("SecondaryIPConfig")
.build())
.applicationSecurityGroup(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.assignPublicIp(false)
.isPrimary(true)
.subnetName("default")
.build())
.resourceGroupName("ResourceGroup")
.virtualNetworkName("VirtualNetworkName")
.build())
.odSizes(
"standard_a1_v1",
"standard_a1_v2")
.os("Linux")
.region("eastus")
.resourceGroupName("spotinst-azure")
.spotPercentage(65)
.spotSizes(
"standard_a1_v1",
"standard_a1_v2")
.tags(
ElastigroupAzureV3TagArgs.builder()
.key("key1")
.value("value1")
.build(),
ElastigroupAzureV3TagArgs.builder()
.key("key2")
.value("value2")
.build())
.build());
}
}
import pulumi
import * as pulumi from "@pulumi/pulumi";
resources:
testAzureGroup:
type: spotinst:ElastigroupAzureV3
properties:
# --- LAUNCH SPEC ---------------------------------------------------
customData: IyEvYmluL2Jhc2gKZWNobyAidGVzdCI=
desiredCapacity: 1
drainingTimeout: 300
fallbackToOnDemand: true
# --- IMAGE ---------------------------------------------------------
images:
- marketplaces:
- offer: UbuntuServer
publisher: Canonical
sku: 18.04-LTS
version: latest
# --- LOGIN ---------------------------------------------------------
login:
sshPublicKey: 33a2s1f3g5a1df5g1ad3f2g1adfg56dfg==
userName: admin
managedServiceIdentities:
- name: ocean-westus-dev-aks-agentpool
resourceGroupName: MC_ocean-westus-dev_ocean-westus-dev-aks_westus
maxSize: 1
# --- CAPACITY ------------------------------------------------------
minSize: 0
# --- NETWORK -------------------------------------------------------
network:
networkInterfaces:
- additionalIpConfigs:
- PrivateIPVersion: IPv4
name: SecondaryIPConfig
applicationSecurityGroup:
- name: ApplicationSecurityGroupName
resourceGroupName: ResourceGroup
assignPublicIp: false
isPrimary: true
subnetName: default
resourceGroupName: ResourceGroup
virtualNetworkName: VirtualNetworkName
# --- INSTANCE TYPES ------------------------------------------------
odSizes:
- standard_a1_v1
- standard_a1_v2
os: Linux
region: eastus
resourceGroupName: spotinst-azure
# --- STRATEGY ------------------------------------------------------
# //on_demand_count = 1
spotPercentage: 65
spotSizes:
- standard_a1_v1
- standard_a1_v2
tags:
- key: key1
value: value1
- key: key2
value: value2
name is specified.
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) {
}
}
import pulumi
import * as pulumi from "@pulumi/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) {
}
}
import pulumi
import * as pulumi from "@pulumi/pulumi";
{}
Login
Coming soon!
Coming soon!
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) {
}
}
Coming soon!
Coming soon!
{}
Create Elastigroup Resource
new Elastigroup(name: string, args: ElastigroupArgs, opts?: CustomResourceOptions);
@overload
def Elastigroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
custom_data: Optional[str] = None,
desired_capacity: Optional[int] = None,
health_check: Optional[ElastigroupHealthCheckArgs] = None,
images: Optional[Sequence[ElastigroupImageArgs]] = None,
integration_kubernetes: Optional[ElastigroupIntegrationKubernetesArgs] = None,
integration_multai_runtime: Optional[ElastigroupIntegrationMultaiRuntimeArgs] = None,
load_balancers: Optional[Sequence[ElastigroupLoadBalancerArgs]] = None,
login: Optional[ElastigroupLoginArgs] = None,
low_priority_sizes: Optional[Sequence[str]] = None,
managed_service_identities: Optional[Sequence[ElastigroupManagedServiceIdentityArgs]] = None,
max_size: Optional[int] = None,
min_size: Optional[int] = None,
name: Optional[str] = None,
network: Optional[ElastigroupNetworkArgs] = None,
od_sizes: Optional[Sequence[str]] = None,
product: Optional[str] = None,
region: Optional[str] = None,
resource_group_name: Optional[str] = None,
scaling_down_policies: Optional[Sequence[ElastigroupScalingDownPolicyArgs]] = None,
scaling_up_policies: Optional[Sequence[ElastigroupScalingUpPolicyArgs]] = None,
scheduled_tasks: Optional[Sequence[ElastigroupScheduledTaskArgs]] = None,
shutdown_script: Optional[str] = None,
strategy: Optional[ElastigroupStrategyArgs] = None,
update_policy: Optional[ElastigroupUpdatePolicyArgs] = None,
user_data: Optional[str] = None)
@overload
def Elastigroup(resource_name: str,
args: ElastigroupArgs,
opts: Optional[ResourceOptions] = None)
func NewElastigroup(ctx *Context, name string, args ElastigroupArgs, opts ...ResourceOption) (*Elastigroup, error)
public Elastigroup(string name, ElastigroupArgs args, CustomResourceOptions? opts = null)
public Elastigroup(String name, ElastigroupArgs args)
public Elastigroup(String name, ElastigroupArgs args, CustomResourceOptions options)
type: spotinst:azure:Elastigroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ElastigroupArgs
- 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 ElastigroupArgs
- 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 ElastigroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ElastigroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ElastigroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Elastigroup 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 Elastigroup resource accepts the following input properties:
- Low
Priority List<string>Sizes - Network
Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Network - Od
Sizes List<string> Available On-Demand sizes
- Product string
- Region string
The region your Azure group will be created in.
- Resource
Group stringName Name of the Azure Resource Group where the Managed Service Identity is located.
- Strategy
Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Strategy - Custom
Data string Custom init script file or text in Base64 encoded format.
- Desired
Capacity int The desired number of instances the group should have at any time.
- Health
Check Pulumi.Spot Inst. Azure. Inputs. Elastigroup Health Check - Images
List<Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Image> - Integration
Kubernetes Pulumi.Spot Inst. Azure. Inputs. Elastigroup Integration Kubernetes - Integration
Multai Pulumi.Runtime Spot Inst. Azure. Inputs. Elastigroup Integration Multai Runtime - Load
Balancers List<Pulumi.Spot Inst. Azure. Inputs. Elastigroup Load Balancer> - Login
Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Login - Managed
Service List<Pulumi.Identities Spot Inst. Azure. Inputs. Elastigroup Managed Service Identity> - 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
Name of the Managed Service Identity.
- Scaling
Down List<Pulumi.Policies Spot Inst. Azure. Inputs. Elastigroup Scaling Down Policy> - Scaling
Up List<Pulumi.Policies Spot Inst. Azure. Inputs. Elastigroup Scaling Up Policy> - Scheduled
Tasks List<Pulumi.Spot Inst. Azure. Inputs. Elastigroup Scheduled Task> - Shutdown
Script string - Update
Policy Pulumi.Spot Inst. Azure. Inputs. Elastigroup Update Policy - User
Data string
- Low
Priority []stringSizes - Network
Elastigroup
Network Args - Od
Sizes []string Available On-Demand sizes
- Product string
- Region string
The region your Azure group will be created in.
- Resource
Group stringName Name of the Azure Resource Group where the Managed Service Identity is located.
- Strategy
Elastigroup
Strategy Args - Custom
Data string Custom init script file or text in Base64 encoded format.
- Desired
Capacity int The desired number of instances the group should have at any time.
- Health
Check ElastigroupHealth Check Args - Images
[]Elastigroup
Image Args - Integration
Kubernetes ElastigroupIntegration Kubernetes Args - Integration
Multai ElastigroupRuntime Integration Multai Runtime Args - Load
Balancers []ElastigroupLoad Balancer Args - Login
Elastigroup
Login Args - Managed
Service []ElastigroupIdentities Managed Service Identity Args - 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
Name of the Managed Service Identity.
- Scaling
Down []ElastigroupPolicies Scaling Down Policy Args - Scaling
Up []ElastigroupPolicies Scaling Up Policy Args - Scheduled
Tasks []ElastigroupScheduled Task Args - Shutdown
Script string - Update
Policy ElastigroupUpdate Policy Args - User
Data string
- low
Priority List<String>Sizes - network
Elastigroup
Network - od
Sizes List<String> Available On-Demand sizes
- product String
- region String
The region your Azure group will be created in.
- resource
Group StringName Name of the Azure Resource Group where the Managed Service Identity is located.
- strategy
Elastigroup
Strategy - custom
Data String Custom init script file or text in Base64 encoded format.
- desired
Capacity Integer The desired number of instances the group should have at any time.
- health
Check ElastigroupHealth Check - images
List<Elastigroup
Image> - integration
Kubernetes ElastigroupIntegration Kubernetes - integration
Multai ElastigroupRuntime Integration Multai Runtime - load
Balancers List<ElastigroupLoad Balancer> - login
Elastigroup
Login - managed
Service List<ElastigroupIdentities Managed Service Identity> - 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
Name of the Managed Service Identity.
- scaling
Down List<ElastigroupPolicies Scaling Down Policy> - scaling
Up List<ElastigroupPolicies Scaling Up Policy> - scheduled
Tasks List<ElastigroupScheduled Task> - shutdown
Script String - update
Policy ElastigroupUpdate Policy - user
Data String
- low
Priority string[]Sizes - network
Elastigroup
Network - od
Sizes string[] Available On-Demand sizes
- product string
- region string
The region your Azure group will be created in.
- resource
Group stringName Name of the Azure Resource Group where the Managed Service Identity is located.
- strategy
Elastigroup
Strategy - custom
Data string Custom init script file or text in Base64 encoded format.
- desired
Capacity number The desired number of instances the group should have at any time.
- health
Check ElastigroupHealth Check - images
Elastigroup
Image[] - integration
Kubernetes ElastigroupIntegration Kubernetes - integration
Multai ElastigroupRuntime Integration Multai Runtime - load
Balancers ElastigroupLoad Balancer[] - login
Elastigroup
Login - managed
Service ElastigroupIdentities Managed Service Identity[] - 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
Name of the Managed Service Identity.
- scaling
Down ElastigroupPolicies Scaling Down Policy[] - scaling
Up ElastigroupPolicies Scaling Up Policy[] - scheduled
Tasks ElastigroupScheduled Task[] - shutdown
Script string - update
Policy ElastigroupUpdate Policy - user
Data string
- low_
priority_ Sequence[str]sizes - network
Elastigroup
Network Args - od_
sizes Sequence[str] Available On-Demand sizes
- product str
- region str
The region your Azure group will be created in.
- resource_
group_ strname Name of the Azure Resource Group where the Managed Service Identity is located.
- strategy
Elastigroup
Strategy Args - custom_
data str Custom init script file or text in Base64 encoded format.
- desired_
capacity int The desired number of instances the group should have at any time.
- health_
check ElastigroupHealth Check Args - images
Sequence[Elastigroup
Image Args] - integration_
kubernetes ElastigroupIntegration Kubernetes Args - integration_
multai_ Elastigroupruntime Integration Multai Runtime Args - load_
balancers Sequence[ElastigroupLoad Balancer Args] - login
Elastigroup
Login Args - managed_
service_ Sequence[Elastigroupidentities Managed Service Identity Args] - 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
Name of the Managed Service Identity.
- scaling_
down_ Sequence[Elastigrouppolicies Scaling Down Policy Args] - scaling_
up_ Sequence[Elastigrouppolicies Scaling Up Policy Args] - scheduled_
tasks Sequence[ElastigroupScheduled Task Args] - shutdown_
script str - update_
policy ElastigroupUpdate Policy Args - user_
data str
- low
Priority List<String>Sizes - network Property Map
- od
Sizes List<String> Available On-Demand sizes
- product String
- region String
The region your Azure group will be created in.
- resource
Group StringName Name of the Azure Resource Group where the Managed Service Identity is located.
- strategy Property Map
- custom
Data String Custom init script file or text in Base64 encoded format.
- desired
Capacity Number The desired number of instances the group should have at any time.
- health
Check Property Map - images List<Property Map>
- integration
Kubernetes Property Map - integration
Multai Property MapRuntime - load
Balancers List<Property Map> - login Property Map
- managed
Service List<Property Map>Identities - 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
Name of the Managed Service Identity.
- scaling
Down List<Property Map>Policies - scaling
Up List<Property Map>Policies - scheduled
Tasks List<Property Map> - shutdown
Script String - update
Policy Property Map - user
Data String
Outputs
All input properties are implicitly available as output properties. Additionally, the Elastigroup 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 Elastigroup Resource
Get an existing Elastigroup 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?: ElastigroupState, opts?: CustomResourceOptions): Elastigroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
custom_data: Optional[str] = None,
desired_capacity: Optional[int] = None,
health_check: Optional[ElastigroupHealthCheckArgs] = None,
images: Optional[Sequence[ElastigroupImageArgs]] = None,
integration_kubernetes: Optional[ElastigroupIntegrationKubernetesArgs] = None,
integration_multai_runtime: Optional[ElastigroupIntegrationMultaiRuntimeArgs] = None,
load_balancers: Optional[Sequence[ElastigroupLoadBalancerArgs]] = None,
login: Optional[ElastigroupLoginArgs] = None,
low_priority_sizes: Optional[Sequence[str]] = None,
managed_service_identities: Optional[Sequence[ElastigroupManagedServiceIdentityArgs]] = None,
max_size: Optional[int] = None,
min_size: Optional[int] = None,
name: Optional[str] = None,
network: Optional[ElastigroupNetworkArgs] = None,
od_sizes: Optional[Sequence[str]] = None,
product: Optional[str] = None,
region: Optional[str] = None,
resource_group_name: Optional[str] = None,
scaling_down_policies: Optional[Sequence[ElastigroupScalingDownPolicyArgs]] = None,
scaling_up_policies: Optional[Sequence[ElastigroupScalingUpPolicyArgs]] = None,
scheduled_tasks: Optional[Sequence[ElastigroupScheduledTaskArgs]] = None,
shutdown_script: Optional[str] = None,
strategy: Optional[ElastigroupStrategyArgs] = None,
update_policy: Optional[ElastigroupUpdatePolicyArgs] = None,
user_data: Optional[str] = None) -> Elastigroup
func GetElastigroup(ctx *Context, name string, id IDInput, state *ElastigroupState, opts ...ResourceOption) (*Elastigroup, error)
public static Elastigroup Get(string name, Input<string> id, ElastigroupState? state, CustomResourceOptions? opts = null)
public static Elastigroup get(String name, Output<String> id, ElastigroupState 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.
- Custom
Data string Custom init script file or text in Base64 encoded format.
- Desired
Capacity int The desired number of instances the group should have at any time.
- Health
Check Pulumi.Spot Inst. Azure. Inputs. Elastigroup Health Check - Images
List<Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Image> - Integration
Kubernetes Pulumi.Spot Inst. Azure. Inputs. Elastigroup Integration Kubernetes - Integration
Multai Pulumi.Runtime Spot Inst. Azure. Inputs. Elastigroup Integration Multai Runtime - Load
Balancers List<Pulumi.Spot Inst. Azure. Inputs. Elastigroup Load Balancer> - Login
Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Login - Low
Priority List<string>Sizes - Managed
Service List<Pulumi.Identities Spot Inst. Azure. Inputs. Elastigroup Managed Service Identity> - 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
Name of the Managed Service Identity.
- Network
Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Network - Od
Sizes List<string> Available On-Demand sizes
- Product string
- Region string
The region your Azure group will be created in.
- Resource
Group stringName Name of the Azure Resource Group where the Managed Service Identity is located.
- Scaling
Down List<Pulumi.Policies Spot Inst. Azure. Inputs. Elastigroup Scaling Down Policy> - Scaling
Up List<Pulumi.Policies Spot Inst. Azure. Inputs. Elastigroup Scaling Up Policy> - Scheduled
Tasks List<Pulumi.Spot Inst. Azure. Inputs. Elastigroup Scheduled Task> - Shutdown
Script string - Strategy
Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Strategy - Update
Policy Pulumi.Spot Inst. Azure. Inputs. Elastigroup Update Policy - User
Data string
- Custom
Data string Custom init script file or text in Base64 encoded format.
- Desired
Capacity int The desired number of instances the group should have at any time.
- Health
Check ElastigroupHealth Check Args - Images
[]Elastigroup
Image Args - Integration
Kubernetes ElastigroupIntegration Kubernetes Args - Integration
Multai ElastigroupRuntime Integration Multai Runtime Args - Load
Balancers []ElastigroupLoad Balancer Args - Login
Elastigroup
Login Args - Low
Priority []stringSizes - Managed
Service []ElastigroupIdentities Managed Service Identity Args - 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
Name of the Managed Service Identity.
- Network
Elastigroup
Network Args - Od
Sizes []string Available On-Demand sizes
- Product string
- Region string
The region your Azure group will be created in.
- Resource
Group stringName Name of the Azure Resource Group where the Managed Service Identity is located.
- Scaling
Down []ElastigroupPolicies Scaling Down Policy Args - Scaling
Up []ElastigroupPolicies Scaling Up Policy Args - Scheduled
Tasks []ElastigroupScheduled Task Args - Shutdown
Script string - Strategy
Elastigroup
Strategy Args - Update
Policy ElastigroupUpdate Policy Args - User
Data string
- custom
Data String Custom init script file or text in Base64 encoded format.
- desired
Capacity Integer The desired number of instances the group should have at any time.
- health
Check ElastigroupHealth Check - images
List<Elastigroup
Image> - integration
Kubernetes ElastigroupIntegration Kubernetes - integration
Multai ElastigroupRuntime Integration Multai Runtime - load
Balancers List<ElastigroupLoad Balancer> - login
Elastigroup
Login - low
Priority List<String>Sizes - managed
Service List<ElastigroupIdentities Managed Service Identity> - 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
Name of the Managed Service Identity.
- network
Elastigroup
Network - od
Sizes List<String> Available On-Demand sizes
- product String
- region String
The region your Azure group will be created in.
- resource
Group StringName Name of the Azure Resource Group where the Managed Service Identity is located.
- scaling
Down List<ElastigroupPolicies Scaling Down Policy> - scaling
Up List<ElastigroupPolicies Scaling Up Policy> - scheduled
Tasks List<ElastigroupScheduled Task> - shutdown
Script String - strategy
Elastigroup
Strategy - update
Policy ElastigroupUpdate Policy - user
Data String
- custom
Data string Custom init script file or text in Base64 encoded format.
- desired
Capacity number The desired number of instances the group should have at any time.
- health
Check ElastigroupHealth Check - images
Elastigroup
Image[] - integration
Kubernetes ElastigroupIntegration Kubernetes - integration
Multai ElastigroupRuntime Integration Multai Runtime - load
Balancers ElastigroupLoad Balancer[] - login
Elastigroup
Login - low
Priority string[]Sizes - managed
Service ElastigroupIdentities Managed Service Identity[] - 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
Name of the Managed Service Identity.
- network
Elastigroup
Network - od
Sizes string[] Available On-Demand sizes
- product string
- region string
The region your Azure group will be created in.
- resource
Group stringName Name of the Azure Resource Group where the Managed Service Identity is located.
- scaling
Down ElastigroupPolicies Scaling Down Policy[] - scaling
Up ElastigroupPolicies Scaling Up Policy[] - scheduled
Tasks ElastigroupScheduled Task[] - shutdown
Script string - strategy
Elastigroup
Strategy - update
Policy ElastigroupUpdate Policy - user
Data string
- custom_
data str Custom init script file or text in Base64 encoded format.
- desired_
capacity int The desired number of instances the group should have at any time.
- health_
check ElastigroupHealth Check Args - images
Sequence[Elastigroup
Image Args] - integration_
kubernetes ElastigroupIntegration Kubernetes Args - integration_
multai_ Elastigroupruntime Integration Multai Runtime Args - load_
balancers Sequence[ElastigroupLoad Balancer Args] - login
Elastigroup
Login Args - low_
priority_ Sequence[str]sizes - managed_
service_ Sequence[Elastigroupidentities Managed Service Identity Args] - 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
Name of the Managed Service Identity.
- network
Elastigroup
Network Args - od_
sizes Sequence[str] Available On-Demand sizes
- product str
- region str
The region your Azure group will be created in.
- resource_
group_ strname Name of the Azure Resource Group where the Managed Service Identity is located.
- scaling_
down_ Sequence[Elastigrouppolicies Scaling Down Policy Args] - scaling_
up_ Sequence[Elastigrouppolicies Scaling Up Policy Args] - scheduled_
tasks Sequence[ElastigroupScheduled Task Args] - shutdown_
script str - strategy
Elastigroup
Strategy Args - update_
policy ElastigroupUpdate Policy Args - user_
data str
- custom
Data String Custom init script file or text in Base64 encoded format.
- desired
Capacity Number The desired number of instances the group should have at any time.
- health
Check Property Map - images List<Property Map>
- integration
Kubernetes Property Map - integration
Multai Property MapRuntime - load
Balancers List<Property Map> - login Property Map
- low
Priority List<String>Sizes - managed
Service List<Property Map>Identities - 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
Name of the Managed Service Identity.
- network Property Map
- od
Sizes List<String> Available On-Demand sizes
- product String
- region String
The region your Azure group will be created in.
- resource
Group StringName Name of the Azure Resource Group where the Managed Service Identity is located.
- scaling
Down List<Property Map>Policies - scaling
Up List<Property Map>Policies - scheduled
Tasks List<Property Map> - shutdown
Script String - strategy Property Map
- update
Policy Property Map - user
Data String
Supporting Types
ElastigroupHealthCheck, ElastigroupHealthCheckArgs
- Health
Check stringType - Auto
Healing bool - Grace
Period int
- Health
Check stringType - Auto
Healing bool - Grace
Period int
- health
Check StringType - auto
Healing Boolean - grace
Period Integer
- health
Check stringType - auto
Healing boolean - grace
Period number
- health_
check_ strtype - auto_
healing bool - grace_
period int
- health
Check StringType - auto
Healing Boolean - grace
Period Number
ElastigroupImage, ElastigroupImageArgs
ElastigroupImageCustom, ElastigroupImageCustomArgs
- Image
Name string - Resource
Group stringName Name of the Azure Resource Group where the Managed Service Identity is located.
- Image
Name string - Resource
Group stringName Name of the Azure Resource Group where the Managed Service Identity is located.
- image
Name String - resource
Group StringName Name of the Azure Resource Group where the Managed Service Identity is located.
- image
Name string - resource
Group stringName Name of the Azure Resource Group where the Managed Service Identity is located.
- image_
name str - resource_
group_ strname Name of the Azure Resource Group where the Managed Service Identity is located.
- image
Name String - resource
Group StringName Name of the Azure Resource Group where the Managed Service Identity is located.
ElastigroupImageMarketplace, ElastigroupImageMarketplaceArgs
ElastigroupIntegrationKubernetes, ElastigroupIntegrationKubernetesArgs
- Cluster
Identifier string
- Cluster
Identifier string
- cluster
Identifier String
- cluster
Identifier string
- cluster
Identifier String
ElastigroupIntegrationMultaiRuntime, ElastigroupIntegrationMultaiRuntimeArgs
- Deployment
Id string
- Deployment
Id string
- deployment
Id String
- deployment
Id string
- deployment_
id str
- deployment
Id String
ElastigroupLoadBalancer, ElastigroupLoadBalancerArgs
- Type string
- Auto
Weight bool - Balancer
Id string - Target
Set stringId
- Type string
- Auto
Weight bool - Balancer
Id string - Target
Set stringId
- type String
- auto
Weight Boolean - balancer
Id String - target
Set StringId
- type string
- auto
Weight boolean - balancer
Id string - target
Set stringId
- type str
- auto_
weight bool - balancer_
id str - target_
set_ strid
- type String
- auto
Weight Boolean - balancer
Id String - target
Set StringId
ElastigroupLogin, ElastigroupLoginArgs
- User
Name string - Password string
- Ssh
Public stringKey
- User
Name string - Password string
- Ssh
Public stringKey
- user
Name String - password String
- ssh
Public StringKey
- user
Name string - password string
- ssh
Public stringKey
- user_
name str - password str
- ssh_
public_ strkey
- user
Name String - password String
- ssh
Public StringKey
ElastigroupManagedServiceIdentity, ElastigroupManagedServiceIdentityArgs
- Name string
Name of the Managed Service Identity.
- Resource
Group stringName Name of the Azure Resource Group where the Managed Service Identity is located.
- Name string
Name of the Managed Service Identity.
- Resource
Group stringName Name of the Azure Resource Group where the Managed Service Identity is located.
- name String
Name of the Managed Service Identity.
- resource
Group StringName Name of the Azure Resource Group where the Managed Service Identity is located.
- name string
Name of the Managed Service Identity.
- resource
Group stringName Name of the Azure Resource Group where the Managed Service Identity is located.
- name str
Name of the Managed Service Identity.
- resource_
group_ strname Name of the Azure Resource Group where the Managed Service Identity is located.
- name String
Name of the Managed Service Identity.
- resource
Group StringName Name of the Azure Resource Group where the Managed Service Identity is located.
ElastigroupNetwork, ElastigroupNetworkArgs
- Resource
Group stringName Name of the Azure Resource Group where the Managed Service Identity is located.
- Subnet
Name string - Virtual
Network stringName - Additional
Ip List<Pulumi.Configs Spot Inst. Azure. Inputs. Elastigroup Network Additional Ip Config> - Assign
Public boolIp
- Resource
Group stringName Name of the Azure Resource Group where the Managed Service Identity is located.
- Subnet
Name string - Virtual
Network stringName - Additional
Ip []ElastigroupConfigs Network Additional Ip Config - Assign
Public boolIp
- resource
Group StringName Name of the Azure Resource Group where the Managed Service Identity is located.
- subnet
Name String - virtual
Network StringName - additional
Ip List<ElastigroupConfigs Network Additional Ip Config> - assign
Public BooleanIp
- resource
Group stringName Name of the Azure Resource Group where the Managed Service Identity is located.
- subnet
Name string - virtual
Network stringName - additional
Ip ElastigroupConfigs Network Additional Ip Config[] - assign
Public booleanIp
- resource_
group_ strname Name of the Azure Resource Group where the Managed Service Identity is located.
- subnet_
name str - virtual_
network_ strname - additional_
ip_ Sequence[Elastigroupconfigs Network Additional Ip Config] - assign_
public_ boolip
- resource
Group StringName Name of the Azure Resource Group where the Managed Service Identity is located.
- subnet
Name String - virtual
Network StringName - additional
Ip List<Property Map>Configs - assign
Public BooleanIp
ElastigroupNetworkAdditionalIpConfig, ElastigroupNetworkAdditionalIpConfigArgs
- Name string
Name of the Managed Service Identity.
- Private
Ip stringVersion
- Name string
Name of the Managed Service Identity.
- Private
Ip stringVersion
- name String
Name of the Managed Service Identity.
- private
Ip StringVersion
- name string
Name of the Managed Service Identity.
- private
Ip stringVersion
- name str
Name of the Managed Service Identity.
- private_
ip_ strversion
- name String
Name of the Managed Service Identity.
- private
Ip StringVersion
ElastigroupScalingDownPolicy, ElastigroupScalingDownPolicyArgs
- Metric
Name string - Namespace string
- Policy
Name string - Threshold double
- Action
Type string - Adjustment string
- Cooldown int
- Dimensions
List<Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Scaling Down Policy Dimension> - Evaluation
Periods int - Max
Target stringCapacity - Maximum string
- Min
Target stringCapacity - Minimum string
- Operator string
- Period int
- Statistic string
- Target string
- Unit string
- Metric
Name string - Namespace string
- Policy
Name string - Threshold float64
- Action
Type string - Adjustment string
- Cooldown int
- Dimensions
[]Elastigroup
Scaling Down Policy Dimension - Evaluation
Periods int - Max
Target stringCapacity - Maximum string
- Min
Target stringCapacity - Minimum string
- Operator string
- Period int
- Statistic string
- Target string
- Unit string
- metric
Name String - namespace String
- policy
Name String - threshold Double
- action
Type String - adjustment String
- cooldown Integer
- dimensions
List<Elastigroup
Scaling Down Policy Dimension> - evaluation
Periods Integer - max
Target StringCapacity - maximum String
- min
Target StringCapacity - minimum String
- operator String
- period Integer
- statistic String
- target String
- unit String
- metric
Name string - namespace string
- policy
Name string - threshold number
- action
Type string - adjustment string
- cooldown number
- dimensions
Elastigroup
Scaling Down Policy Dimension[] - evaluation
Periods number - max
Target stringCapacity - maximum string
- min
Target stringCapacity - minimum string
- operator string
- period number
- statistic string
- target string
- unit string
- metric_
name str - namespace str
- policy_
name str - threshold float
- action_
type str - adjustment str
- cooldown int
- dimensions
Sequence[Elastigroup
Scaling Down Policy Dimension] - evaluation_
periods int - max_
target_ strcapacity - maximum str
- min_
target_ strcapacity - minimum str
- operator str
- period int
- statistic str
- target str
- unit str
- metric
Name String - namespace String
- policy
Name String - threshold Number
- action
Type String - adjustment String
- cooldown Number
- dimensions List<Property Map>
- evaluation
Periods Number - max
Target StringCapacity - maximum String
- min
Target StringCapacity - minimum String
- operator String
- period Number
- statistic String
- target String
- unit String
ElastigroupScalingDownPolicyDimension, ElastigroupScalingDownPolicyDimensionArgs
ElastigroupScalingUpPolicy, ElastigroupScalingUpPolicyArgs
- Metric
Name string - Namespace string
- Policy
Name string - Threshold double
- Action
Type string - Adjustment string
- Cooldown int
- Dimensions
List<Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Scaling Up Policy Dimension> - Evaluation
Periods int - Max
Target stringCapacity - Maximum string
- Min
Target stringCapacity - Minimum string
- Operator string
- Period int
- Statistic string
- Target string
- Unit string
- Metric
Name string - Namespace string
- Policy
Name string - Threshold float64
- Action
Type string - Adjustment string
- Cooldown int
- Dimensions
[]Elastigroup
Scaling Up Policy Dimension - Evaluation
Periods int - Max
Target stringCapacity - Maximum string
- Min
Target stringCapacity - Minimum string
- Operator string
- Period int
- Statistic string
- Target string
- Unit string
- metric
Name String - namespace String
- policy
Name String - threshold Double
- action
Type String - adjustment String
- cooldown Integer
- dimensions
List<Elastigroup
Scaling Up Policy Dimension> - evaluation
Periods Integer - max
Target StringCapacity - maximum String
- min
Target StringCapacity - minimum String
- operator String
- period Integer
- statistic String
- target String
- unit String
- metric
Name string - namespace string
- policy
Name string - threshold number
- action
Type string - adjustment string
- cooldown number
- dimensions
Elastigroup
Scaling Up Policy Dimension[] - evaluation
Periods number - max
Target stringCapacity - maximum string
- min
Target stringCapacity - minimum string
- operator string
- period number
- statistic string
- target string
- unit string
- metric_
name str - namespace str
- policy_
name str - threshold float
- action_
type str - adjustment str
- cooldown int
- dimensions
Sequence[Elastigroup
Scaling Up Policy Dimension] - evaluation_
periods int - max_
target_ strcapacity - maximum str
- min_
target_ strcapacity - minimum str
- operator str
- period int
- statistic str
- target str
- unit str
- metric
Name String - namespace String
- policy
Name String - threshold Number
- action
Type String - adjustment String
- cooldown Number
- dimensions List<Property Map>
- evaluation
Periods Number - max
Target StringCapacity - maximum String
- min
Target StringCapacity - minimum String
- operator String
- period Number
- statistic String
- target String
- unit String
ElastigroupScalingUpPolicyDimension, ElastigroupScalingUpPolicyDimensionArgs
ElastigroupScheduledTask, ElastigroupScheduledTaskArgs
- Cron
Expression string - Task
Type string - Adjustment string
- Adjustment
Percentage string - Batch
Size stringPercentage - Grace
Period string - Is
Enabled bool - Scale
Max stringCapacity - Scale
Min stringCapacity - Scale
Target stringCapacity
- Cron
Expression string - Task
Type string - Adjustment string
- Adjustment
Percentage string - Batch
Size stringPercentage - Grace
Period string - Is
Enabled bool - Scale
Max stringCapacity - Scale
Min stringCapacity - Scale
Target stringCapacity
- cron
Expression String - task
Type String - adjustment String
- adjustment
Percentage String - batch
Size StringPercentage - grace
Period String - is
Enabled Boolean - scale
Max StringCapacity - scale
Min StringCapacity - scale
Target StringCapacity
- cron
Expression string - task
Type string - adjustment string
- adjustment
Percentage string - batch
Size stringPercentage - grace
Period string - is
Enabled boolean - scale
Max stringCapacity - scale
Min stringCapacity - scale
Target stringCapacity
- cron_
expression str - task_
type str - adjustment str
- adjustment_
percentage str - batch_
size_ strpercentage - grace_
period str - is_
enabled bool - scale_
max_ strcapacity - scale_
min_ strcapacity - scale_
target_ strcapacity
- cron
Expression String - task
Type String - adjustment String
- adjustment
Percentage String - batch
Size StringPercentage - grace
Period String - is
Enabled Boolean - scale
Max StringCapacity - scale
Min StringCapacity - scale
Target StringCapacity
ElastigroupStrategy, ElastigroupStrategyArgs
- Draining
Timeout int - Low
Priority intPercentage - Od
Count int
- Draining
Timeout int - Low
Priority intPercentage - Od
Count int
- draining
Timeout Integer - low
Priority IntegerPercentage - od
Count Integer
- draining
Timeout number - low
Priority numberPercentage - od
Count number
- draining_
timeout int - low_
priority_ intpercentage - od_
count int
- draining
Timeout Number - low
Priority NumberPercentage - od
Count Number
ElastigroupUpdatePolicy, ElastigroupUpdatePolicyArgs
- should
Roll Boolean - roll
Config Property Map
ElastigroupUpdatePolicyRollConfig, ElastigroupUpdatePolicyRollConfigArgs
- Batch
Size intPercentage - Grace
Period int - Health
Check stringType
- Batch
Size intPercentage - Grace
Period int - Health
Check stringType
- batch
Size IntegerPercentage - grace
Period Integer - health
Check StringType
- batch
Size numberPercentage - grace
Period number - health
Check stringType
- batch
Size NumberPercentage - grace
Period Number - health
Check StringType
Package Details
- Repository
- Spotinst pulumi/pulumi-spotinst
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
spotinst
Terraform Provider.