Instance
Provides an OpsWorks instance resource.
Block devices
Each of the *_block_device attributes controls a portion of the AWS
Instance’s “Block Device Mapping”. It’s a good idea to familiarize yourself with AWS’s Block Device
Mapping docs
to understand the implications of using these attributes.
The root_block_device mapping supports the following:
volume_type- (Optional) The type of volume. Can be"standard","gp2", or"io1". (Default:"standard").volume_size- (Optional) The size of the volume in gigabytes.iops- (Optional) The amount of provisioned IOPS. This must be set with avolume_typeof"io1".delete_on_termination- (Optional) Whether the volume should be destroyed on instance termination (Default:true).
Modifying any of the root_block_device settings requires resource
replacement.
Each ebs_block_device supports the following:
device_name- The name of the device to mount.snapshot_id- (Optional) The Snapshot ID to mount.volume_type- (Optional) The type of volume. Can be"standard","gp2", or"io1". (Default:"standard").volume_size- (Optional) The size of the volume in gigabytes.iops- (Optional) The amount of provisioned IOPS. This must be set with avolume_typeof"io1".delete_on_termination- (Optional) Whether the volume should be destroyed on instance termination (Default:true).
Modifying any ebs_block_device currently requires resource replacement.
Each ephemeral_block_device supports the following:
device_name- The name of the block device to mount on the instance.virtual_name- The Instance Store Device Name (e.g."ephemeral0")
Each AWS Instance type has a different set of Instance Store block devices
available for attachment. AWS publishes a
list
of which ephemeral devices are available on each type. The devices are always
identified by the virtual_name in the format "ephemeral{0..N}".
NOTE: Currently, changes to
*_block_deviceconfiguration of existing resources cannot be automatically detected by this provider. After making updates to block device configuration, resource recreation can be manually triggered by using theupcommand with the –replace argument.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var my_instance = new Aws.OpsWorks.Instance("my-instance", new Aws.OpsWorks.InstanceArgs
{
InstanceType = "t2.micro",
LayerIds =
{
aws_opsworks_custom_layer.My_layer.Id,
},
Os = "Amazon Linux 2015.09",
StackId = aws_opsworks_stack.Main.Id,
State = "stopped",
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/opsworks"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opsworks.NewInstance(ctx, "my_instance", &opsworks.InstanceArgs{
InstanceType: pulumi.String("t2.micro"),
LayerIds: pulumi.StringArray{
pulumi.String(aws_opsworks_custom_layer.My - layer.Id),
},
Os: pulumi.String("Amazon Linux 2015.09"),
StackId: pulumi.String(aws_opsworks_stack.Main.Id),
State: pulumi.String("stopped"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
my_instance = aws.opsworks.Instance("my-instance",
instance_type="t2.micro",
layer_ids=[aws_opsworks_custom_layer["my-layer"]["id"]],
os="Amazon Linux 2015.09",
stack_id=aws_opsworks_stack["main"]["id"],
state="stopped")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const my_instance = new aws.opsworks.Instance("my-instance", {
instanceType: "t2.micro",
layerIds: [aws_opsworks_custom_layer_my_layer.id],
os: "Amazon Linux 2015.09",
stackId: aws_opsworks_stack_main.id,
state: "stopped",
});Create a Instance Resource
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);def Instance(resource_name, opts=None, agent_version=None, ami_id=None, architecture=None, auto_scaling_type=None, availability_zone=None, created_at=None, delete_ebs=None, delete_eip=None, ebs_block_devices=None, ebs_optimized=None, ecs_cluster_arn=None, elastic_ip=None, ephemeral_block_devices=None, hostname=None, infrastructure_class=None, install_updates_on_boot=None, instance_profile_arn=None, instance_type=None, last_service_error_id=None, layer_ids=None, os=None, platform=None, private_dns=None, private_ip=None, public_dns=None, public_ip=None, registered_by=None, reported_agent_version=None, reported_os_family=None, reported_os_name=None, reported_os_version=None, root_block_devices=None, root_device_type=None, root_device_volume_id=None, security_group_ids=None, ssh_host_dsa_key_fingerprint=None, ssh_host_rsa_key_fingerprint=None, ssh_key_name=None, stack_id=None, state=None, status=None, subnet_id=None, tenancy=None, virtualization_type=None, __props__=None);func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args InstanceArgs
- 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 InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Instance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Instance resource accepts the following input properties:
- Layer
Ids List<string> The ids of the layers the instance will belong to.
- Stack
Id string The id of the stack the instance will belong to.
- Agent
Version string The AWS OpsWorks agent to install. Defaults to
"INHERIT".- Ami
Id string The AMI to use for the instance. If an AMI is specified,
osmust be"Custom".- Architecture string
Machine architecture for created instances. Can be either
"x86_64"(the default) or"i386"- Auto
Scaling stringType Creates load-based or time-based instances. If set, can be either:
"load"or"timer".- Availability
Zone string Name of the availability zone where instances will be created by default.
- Created
At string - Delete
Ebs bool - Delete
Eip bool - Ebs
Block List<InstanceDevices Ebs Block Device Args> Additional EBS block devices to attach to the instance. See Block Devices below for details.
- Ebs
Optimized bool If true, the launched EC2 instance will be EBS-optimized.
- Ecs
Cluster stringArn - Elastic
Ip string - Ephemeral
Block List<InstanceDevices Ephemeral Block Device Args> Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.
- Hostname string
The instance’s host name.
- Infrastructure
Class string - Install
Updates boolOn Boot Controls where to install OS and package updates when the instance boots. Defaults to
true.- Instance
Profile stringArn - Instance
Type string The type of instance to start
- Last
Service stringError Id - Os string
Name of operating system that will be installed.
- Platform string
- Private
Dns string The private DNS name assigned to the instance. Can only be used inside the Amazon EC2, and only available if you’ve enabled DNS hostnames for your VPC
- Private
Ip string The private IP address assigned to the instance
- Public
Dns string The public DNS name assigned to the instance. For EC2-VPC, this is only available if you’ve enabled DNS hostnames for your VPC
- Public
Ip string The public IP address assigned to the instance, if applicable.
- Registered
By string - Reported
Agent stringVersion - Reported
Os stringFamily - Reported
Os stringName - Reported
Os stringVersion - Root
Block List<InstanceDevices Root Block Device Args> Customize details about the root block device of the instance. See Block Devices below for details.
- Root
Device stringType Name of the type of root device instances will have by default. Can be either
"ebs"or"instance-store"- Root
Device stringVolume Id - Security
Group List<string>Ids The associated security groups.
- Ssh
Host stringDsa Key Fingerprint - Ssh
Host stringRsa Key Fingerprint - Ssh
Key stringName Name of the SSH keypair that instances will have by default.
- State string
The desired state of the instance. Can be either
"running"or"stopped".- Status string
- Subnet
Id string Subnet ID to attach to
- Tenancy string
Instance tenancy to use. Can be one of
"default","dedicated"or"host"- Virtualization
Type string Keyword to choose what virtualization mode created instances will use. Can be either
"paravirtual"or"hvm".
- Layer
Ids []string The ids of the layers the instance will belong to.
- Stack
Id string The id of the stack the instance will belong to.
- Agent
Version string The AWS OpsWorks agent to install. Defaults to
"INHERIT".- Ami
Id string The AMI to use for the instance. If an AMI is specified,
osmust be"Custom".- Architecture string
Machine architecture for created instances. Can be either
"x86_64"(the default) or"i386"- Auto
Scaling stringType Creates load-based or time-based instances. If set, can be either:
"load"or"timer".- Availability
Zone string Name of the availability zone where instances will be created by default.
- Created
At string - Delete
Ebs bool - Delete
Eip bool - Ebs
Block []InstanceDevices Ebs Block Device Additional EBS block devices to attach to the instance. See Block Devices below for details.
- Ebs
Optimized bool If true, the launched EC2 instance will be EBS-optimized.
- Ecs
Cluster stringArn - Elastic
Ip string - Ephemeral
Block []InstanceDevices Ephemeral Block Device Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.
- Hostname string
The instance’s host name.
- Infrastructure
Class string - Install
Updates boolOn Boot Controls where to install OS and package updates when the instance boots. Defaults to
true.- Instance
Profile stringArn - Instance
Type string The type of instance to start
- Last
Service stringError Id - Os string
Name of operating system that will be installed.
- Platform string
- Private
Dns string The private DNS name assigned to the instance. Can only be used inside the Amazon EC2, and only available if you’ve enabled DNS hostnames for your VPC
- Private
Ip string The private IP address assigned to the instance
- Public
Dns string The public DNS name assigned to the instance. For EC2-VPC, this is only available if you’ve enabled DNS hostnames for your VPC
- Public
Ip string The public IP address assigned to the instance, if applicable.
- Registered
By string - Reported
Agent stringVersion - Reported
Os stringFamily - Reported
Os stringName - Reported
Os stringVersion - Root
Block []InstanceDevices Root Block Device Customize details about the root block device of the instance. See Block Devices below for details.
- Root
Device stringType Name of the type of root device instances will have by default. Can be either
"ebs"or"instance-store"- Root
Device stringVolume Id - Security
Group []stringIds The associated security groups.
- Ssh
Host stringDsa Key Fingerprint - Ssh
Host stringRsa Key Fingerprint - Ssh
Key stringName Name of the SSH keypair that instances will have by default.
- State string
The desired state of the instance. Can be either
"running"or"stopped".- Status string
- Subnet
Id string Subnet ID to attach to
- Tenancy string
Instance tenancy to use. Can be one of
"default","dedicated"or"host"- Virtualization
Type string Keyword to choose what virtualization mode created instances will use. Can be either
"paravirtual"or"hvm".
- layer
Ids string[] The ids of the layers the instance will belong to.
- stack
Id string The id of the stack the instance will belong to.
- agent
Version string The AWS OpsWorks agent to install. Defaults to
"INHERIT".- ami
Id string The AMI to use for the instance. If an AMI is specified,
osmust be"Custom".- architecture string
Machine architecture for created instances. Can be either
"x86_64"(the default) or"i386"- auto
Scaling stringType Creates load-based or time-based instances. If set, can be either:
"load"or"timer".- availability
Zone string Name of the availability zone where instances will be created by default.
- created
At string - delete
Ebs boolean - delete
Eip boolean - ebs
Block InstanceDevices Ebs Block Device[] Additional EBS block devices to attach to the instance. See Block Devices below for details.
- ebs
Optimized boolean If true, the launched EC2 instance will be EBS-optimized.
- ecs
Cluster stringArn - elastic
Ip string - ephemeral
Block InstanceDevices Ephemeral Block Device[] Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.
- hostname string
The instance’s host name.
- infrastructure
Class string - install
Updates booleanOn Boot Controls where to install OS and package updates when the instance boots. Defaults to
true.- instance
Profile stringArn - instance
Type string The type of instance to start
- last
Service stringError Id - os string
Name of operating system that will be installed.
- platform string
- private
Dns string The private DNS name assigned to the instance. Can only be used inside the Amazon EC2, and only available if you’ve enabled DNS hostnames for your VPC
- private
Ip string The private IP address assigned to the instance
- public
Dns string The public DNS name assigned to the instance. For EC2-VPC, this is only available if you’ve enabled DNS hostnames for your VPC
- public
Ip string The public IP address assigned to the instance, if applicable.
- registered
By string - reported
Agent stringVersion - reported
Os stringFamily - reported
Os stringName - reported
Os stringVersion - root
Block InstanceDevices Root Block Device[] Customize details about the root block device of the instance. See Block Devices below for details.
- root
Device stringType Name of the type of root device instances will have by default. Can be either
"ebs"or"instance-store"- root
Device stringVolume Id - security
Group string[]Ids The associated security groups.
- ssh
Host stringDsa Key Fingerprint - ssh
Host stringRsa Key Fingerprint - ssh
Key stringName Name of the SSH keypair that instances will have by default.
- state string
The desired state of the instance. Can be either
"running"or"stopped".- status string
- subnet
Id string Subnet ID to attach to
- tenancy string
Instance tenancy to use. Can be one of
"default","dedicated"or"host"- virtualization
Type string Keyword to choose what virtualization mode created instances will use. Can be either
"paravirtual"or"hvm".
- layer_
ids List[str] The ids of the layers the instance will belong to.
- stack_
id str The id of the stack the instance will belong to.
- agent_
version str The AWS OpsWorks agent to install. Defaults to
"INHERIT".- ami_
id str The AMI to use for the instance. If an AMI is specified,
osmust be"Custom".- architecture str
Machine architecture for created instances. Can be either
"x86_64"(the default) or"i386"- auto_
scaling_ strtype Creates load-based or time-based instances. If set, can be either:
"load"or"timer".- availability_
zone str Name of the availability zone where instances will be created by default.
- created_
at str - delete_
ebs bool - delete_
eip bool - ebs_
block_ List[Instancedevices Ebs Block Device] Additional EBS block devices to attach to the instance. See Block Devices below for details.
- ebs_
optimized bool If true, the launched EC2 instance will be EBS-optimized.
- ecs_
cluster_ strarn - elastic_
ip str - ephemeral_
block_ List[Instancedevices Ephemeral Block Device] Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.
- hostname str
The instance’s host name.
- infrastructure_
class str - install_
updates_ boolon_ boot Controls where to install OS and package updates when the instance boots. Defaults to
true.- instance_
profile_ strarn - instance_
type str The type of instance to start
- last_
service_ strerror_ id - os str
Name of operating system that will be installed.
- platform str
- private_
dns str The private DNS name assigned to the instance. Can only be used inside the Amazon EC2, and only available if you’ve enabled DNS hostnames for your VPC
- private_
ip str The private IP address assigned to the instance
- public_
dns str The public DNS name assigned to the instance. For EC2-VPC, this is only available if you’ve enabled DNS hostnames for your VPC
- public_
ip str The public IP address assigned to the instance, if applicable.
- registered_
by str - reported_
agent_ strversion - reported_
os_ strfamily - reported_
os_ strname - reported_
os_ strversion - root_
block_ List[Instancedevices Root Block Device] Customize details about the root block device of the instance. See Block Devices below for details.
- root_
device_ strtype Name of the type of root device instances will have by default. Can be either
"ebs"or"instance-store"- root_
device_ strvolume_ id - security_
group_ List[str]ids The associated security groups.
- ssh_
host_ strdsa_ key_ fingerprint - ssh_
host_ strrsa_ key_ fingerprint - ssh_
key_ strname Name of the SSH keypair that instances will have by default.
- state str
The desired state of the instance. Can be either
"running"or"stopped".- status str
- subnet_
id str Subnet ID to attach to
- tenancy str
Instance tenancy to use. Can be one of
"default","dedicated"or"host"- virtualization_
type str Keyword to choose what virtualization mode created instances will use. Can be either
"paravirtual"or"hvm".
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Ec2Instance
Id string EC2 instance ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Ec2Instance
Id string EC2 instance ID
- Id string
- The provider-assigned unique ID for this managed resource.
- ec2Instance
Id string EC2 instance ID
- id string
- The provider-assigned unique ID for this managed resource.
- ec2_
instance_ strid EC2 instance ID
- id str
- The provider-assigned unique ID for this managed resource.
Look up an Existing Instance Resource
Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instancestatic get(resource_name, id, opts=None, agent_version=None, ami_id=None, architecture=None, auto_scaling_type=None, availability_zone=None, created_at=None, delete_ebs=None, delete_eip=None, ebs_block_devices=None, ebs_optimized=None, ec2_instance_id=None, ecs_cluster_arn=None, elastic_ip=None, ephemeral_block_devices=None, hostname=None, infrastructure_class=None, install_updates_on_boot=None, instance_profile_arn=None, instance_type=None, last_service_error_id=None, layer_ids=None, os=None, platform=None, private_dns=None, private_ip=None, public_dns=None, public_ip=None, registered_by=None, reported_agent_version=None, reported_os_family=None, reported_os_name=None, reported_os_version=None, root_block_devices=None, root_device_type=None, root_device_volume_id=None, security_group_ids=None, ssh_host_dsa_key_fingerprint=None, ssh_host_rsa_key_fingerprint=None, ssh_key_name=None, stack_id=None, state=None, status=None, subnet_id=None, tenancy=None, virtualization_type=None, __props__=None);func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)public static Instance Get(string name, Input<string> id, InstanceState? 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:
- Agent
Version string The AWS OpsWorks agent to install. Defaults to
"INHERIT".- Ami
Id string The AMI to use for the instance. If an AMI is specified,
osmust be"Custom".- Architecture string
Machine architecture for created instances. Can be either
"x86_64"(the default) or"i386"- Auto
Scaling stringType Creates load-based or time-based instances. If set, can be either:
"load"or"timer".- Availability
Zone string Name of the availability zone where instances will be created by default.
- Created
At string - Delete
Ebs bool - Delete
Eip bool - Ebs
Block List<InstanceDevices Ebs Block Device Args> Additional EBS block devices to attach to the instance. See Block Devices below for details.
- Ebs
Optimized bool If true, the launched EC2 instance will be EBS-optimized.
- Ec2Instance
Id string EC2 instance ID
- Ecs
Cluster stringArn - Elastic
Ip string - Ephemeral
Block List<InstanceDevices Ephemeral Block Device Args> Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.
- Hostname string
The instance’s host name.
- Infrastructure
Class string - Install
Updates boolOn Boot Controls where to install OS and package updates when the instance boots. Defaults to
true.- Instance
Profile stringArn - Instance
Type string The type of instance to start
- Last
Service stringError Id - Layer
Ids List<string> The ids of the layers the instance will belong to.
- Os string
Name of operating system that will be installed.
- Platform string
- Private
Dns string The private DNS name assigned to the instance. Can only be used inside the Amazon EC2, and only available if you’ve enabled DNS hostnames for your VPC
- Private
Ip string The private IP address assigned to the instance
- Public
Dns string The public DNS name assigned to the instance. For EC2-VPC, this is only available if you’ve enabled DNS hostnames for your VPC
- Public
Ip string The public IP address assigned to the instance, if applicable.
- Registered
By string - Reported
Agent stringVersion - Reported
Os stringFamily - Reported
Os stringName - Reported
Os stringVersion - Root
Block List<InstanceDevices Root Block Device Args> Customize details about the root block device of the instance. See Block Devices below for details.
- Root
Device stringType Name of the type of root device instances will have by default. Can be either
"ebs"or"instance-store"- Root
Device stringVolume Id - Security
Group List<string>Ids The associated security groups.
- Ssh
Host stringDsa Key Fingerprint - Ssh
Host stringRsa Key Fingerprint - Ssh
Key stringName Name of the SSH keypair that instances will have by default.
- Stack
Id string The id of the stack the instance will belong to.
- State string
The desired state of the instance. Can be either
"running"or"stopped".- Status string
- Subnet
Id string Subnet ID to attach to
- Tenancy string
Instance tenancy to use. Can be one of
"default","dedicated"or"host"- Virtualization
Type string Keyword to choose what virtualization mode created instances will use. Can be either
"paravirtual"or"hvm".
- Agent
Version string The AWS OpsWorks agent to install. Defaults to
"INHERIT".- Ami
Id string The AMI to use for the instance. If an AMI is specified,
osmust be"Custom".- Architecture string
Machine architecture for created instances. Can be either
"x86_64"(the default) or"i386"- Auto
Scaling stringType Creates load-based or time-based instances. If set, can be either:
"load"or"timer".- Availability
Zone string Name of the availability zone where instances will be created by default.
- Created
At string - Delete
Ebs bool - Delete
Eip bool - Ebs
Block []InstanceDevices Ebs Block Device Additional EBS block devices to attach to the instance. See Block Devices below for details.
- Ebs
Optimized bool If true, the launched EC2 instance will be EBS-optimized.
- Ec2Instance
Id string EC2 instance ID
- Ecs
Cluster stringArn - Elastic
Ip string - Ephemeral
Block []InstanceDevices Ephemeral Block Device Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.
- Hostname string
The instance’s host name.
- Infrastructure
Class string - Install
Updates boolOn Boot Controls where to install OS and package updates when the instance boots. Defaults to
true.- Instance
Profile stringArn - Instance
Type string The type of instance to start
- Last
Service stringError Id - Layer
Ids []string The ids of the layers the instance will belong to.
- Os string
Name of operating system that will be installed.
- Platform string
- Private
Dns string The private DNS name assigned to the instance. Can only be used inside the Amazon EC2, and only available if you’ve enabled DNS hostnames for your VPC
- Private
Ip string The private IP address assigned to the instance
- Public
Dns string The public DNS name assigned to the instance. For EC2-VPC, this is only available if you’ve enabled DNS hostnames for your VPC
- Public
Ip string The public IP address assigned to the instance, if applicable.
- Registered
By string - Reported
Agent stringVersion - Reported
Os stringFamily - Reported
Os stringName - Reported
Os stringVersion - Root
Block []InstanceDevices Root Block Device Customize details about the root block device of the instance. See Block Devices below for details.
- Root
Device stringType Name of the type of root device instances will have by default. Can be either
"ebs"or"instance-store"- Root
Device stringVolume Id - Security
Group []stringIds The associated security groups.
- Ssh
Host stringDsa Key Fingerprint - Ssh
Host stringRsa Key Fingerprint - Ssh
Key stringName Name of the SSH keypair that instances will have by default.
- Stack
Id string The id of the stack the instance will belong to.
- State string
The desired state of the instance. Can be either
"running"or"stopped".- Status string
- Subnet
Id string Subnet ID to attach to
- Tenancy string
Instance tenancy to use. Can be one of
"default","dedicated"or"host"- Virtualization
Type string Keyword to choose what virtualization mode created instances will use. Can be either
"paravirtual"or"hvm".
- agent
Version string The AWS OpsWorks agent to install. Defaults to
"INHERIT".- ami
Id string The AMI to use for the instance. If an AMI is specified,
osmust be"Custom".- architecture string
Machine architecture for created instances. Can be either
"x86_64"(the default) or"i386"- auto
Scaling stringType Creates load-based or time-based instances. If set, can be either:
"load"or"timer".- availability
Zone string Name of the availability zone where instances will be created by default.
- created
At string - delete
Ebs boolean - delete
Eip boolean - ebs
Block InstanceDevices Ebs Block Device[] Additional EBS block devices to attach to the instance. See Block Devices below for details.
- ebs
Optimized boolean If true, the launched EC2 instance will be EBS-optimized.
- ec2Instance
Id string EC2 instance ID
- ecs
Cluster stringArn - elastic
Ip string - ephemeral
Block InstanceDevices Ephemeral Block Device[] Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.
- hostname string
The instance’s host name.
- infrastructure
Class string - install
Updates booleanOn Boot Controls where to install OS and package updates when the instance boots. Defaults to
true.- instance
Profile stringArn - instance
Type string The type of instance to start
- last
Service stringError Id - layer
Ids string[] The ids of the layers the instance will belong to.
- os string
Name of operating system that will be installed.
- platform string
- private
Dns string The private DNS name assigned to the instance. Can only be used inside the Amazon EC2, and only available if you’ve enabled DNS hostnames for your VPC
- private
Ip string The private IP address assigned to the instance
- public
Dns string The public DNS name assigned to the instance. For EC2-VPC, this is only available if you’ve enabled DNS hostnames for your VPC
- public
Ip string The public IP address assigned to the instance, if applicable.
- registered
By string - reported
Agent stringVersion - reported
Os stringFamily - reported
Os stringName - reported
Os stringVersion - root
Block InstanceDevices Root Block Device[] Customize details about the root block device of the instance. See Block Devices below for details.
- root
Device stringType Name of the type of root device instances will have by default. Can be either
"ebs"or"instance-store"- root
Device stringVolume Id - security
Group string[]Ids The associated security groups.
- ssh
Host stringDsa Key Fingerprint - ssh
Host stringRsa Key Fingerprint - ssh
Key stringName Name of the SSH keypair that instances will have by default.
- stack
Id string The id of the stack the instance will belong to.
- state string
The desired state of the instance. Can be either
"running"or"stopped".- status string
- subnet
Id string Subnet ID to attach to
- tenancy string
Instance tenancy to use. Can be one of
"default","dedicated"or"host"- virtualization
Type string Keyword to choose what virtualization mode created instances will use. Can be either
"paravirtual"or"hvm".
- agent_
version str The AWS OpsWorks agent to install. Defaults to
"INHERIT".- ami_
id str The AMI to use for the instance. If an AMI is specified,
osmust be"Custom".- architecture str
Machine architecture for created instances. Can be either
"x86_64"(the default) or"i386"- auto_
scaling_ strtype Creates load-based or time-based instances. If set, can be either:
"load"or"timer".- availability_
zone str Name of the availability zone where instances will be created by default.
- created_
at str - delete_
ebs bool - delete_
eip bool - ebs_
block_ List[Instancedevices Ebs Block Device] Additional EBS block devices to attach to the instance. See Block Devices below for details.
- ebs_
optimized bool If true, the launched EC2 instance will be EBS-optimized.
- ec2_
instance_ strid EC2 instance ID
- ecs_
cluster_ strarn - elastic_
ip str - ephemeral_
block_ List[Instancedevices Ephemeral Block Device] Customize Ephemeral (also known as “Instance Store”) volumes on the instance. See Block Devices below for details.
- hostname str
The instance’s host name.
- infrastructure_
class str - install_
updates_ boolon_ boot Controls where to install OS and package updates when the instance boots. Defaults to
true.- instance_
profile_ strarn - instance_
type str The type of instance to start
- last_
service_ strerror_ id - layer_
ids List[str] The ids of the layers the instance will belong to.
- os str
Name of operating system that will be installed.
- platform str
- private_
dns str The private DNS name assigned to the instance. Can only be used inside the Amazon EC2, and only available if you’ve enabled DNS hostnames for your VPC
- private_
ip str The private IP address assigned to the instance
- public_
dns str The public DNS name assigned to the instance. For EC2-VPC, this is only available if you’ve enabled DNS hostnames for your VPC
- public_
ip str The public IP address assigned to the instance, if applicable.
- registered_
by str - reported_
agent_ strversion - reported_
os_ strfamily - reported_
os_ strname - reported_
os_ strversion - root_
block_ List[Instancedevices Root Block Device] Customize details about the root block device of the instance. See Block Devices below for details.
- root_
device_ strtype Name of the type of root device instances will have by default. Can be either
"ebs"or"instance-store"- root_
device_ strvolume_ id - security_
group_ List[str]ids The associated security groups.
- ssh_
host_ strdsa_ key_ fingerprint - ssh_
host_ strrsa_ key_ fingerprint - ssh_
key_ strname Name of the SSH keypair that instances will have by default.
- stack_
id str The id of the stack the instance will belong to.
- state str
The desired state of the instance. Can be either
"running"or"stopped".- status str
- subnet_
id str Subnet ID to attach to
- tenancy str
Instance tenancy to use. Can be one of
"default","dedicated"or"host"- virtualization_
type str Keyword to choose what virtualization mode created instances will use. Can be either
"paravirtual"or"hvm".
Supporting Types
InstanceEbsBlockDevice
InstanceEphemeralBlockDevice
InstanceRootBlockDevice
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.