We recommend new projects start with resources from the AWS provider.
aws-native.ec2.getInstance
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::EC2::Instance
Using getInstance
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getInstance(args: GetInstanceArgs, opts?: InvokeOptions): Promise<GetInstanceResult>
function getInstanceOutput(args: GetInstanceOutputArgs, opts?: InvokeOptions): Output<GetInstanceResult>
def get_instance(instance_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInstanceResult
def get_instance_output(instance_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstanceResult]
func LookupInstance(ctx *Context, args *LookupInstanceArgs, opts ...InvokeOption) (*LookupInstanceResult, error)
func LookupInstanceOutput(ctx *Context, args *LookupInstanceOutputArgs, opts ...InvokeOption) LookupInstanceResultOutput
> Note: This function is named LookupInstance
in the Go SDK.
public static class GetInstance
{
public static Task<GetInstanceResult> InvokeAsync(GetInstanceArgs args, InvokeOptions? opts = null)
public static Output<GetInstanceResult> Invoke(GetInstanceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:ec2:getInstance
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - The EC2 Instance ID.
- Instance
Id string - The EC2 Instance ID.
- instance
Id String - The EC2 Instance ID.
- instance
Id string - The EC2 Instance ID.
- instance_
id str - The EC2 Instance ID.
- instance
Id String - The EC2 Instance ID.
getInstance Result
The following output properties are available:
- Affinity
Pulumi.
Aws Native. Ec2. Instance Affinity - Indicates whether the instance is associated with a dedicated host. If you want the instance to always restart on the same host on which it was launched, specify host. If you want the instance to restart on any available host, but try to launch onto the last host it ran on (on a best-effort basis), specify default.
- Block
Device List<Pulumi.Mappings Aws Native. Ec2. Outputs. Instance Block Device Mapping> - The block device mapping entries that defines the block devices to attach to the instance at launch.
- Credit
Specification Pulumi.Aws Native. Ec2. Outputs. Credit Specification Properties - The credit option for CPU usage of the burstable performance instance. Valid values are standard and unlimited.
- Disable
Api boolTermination - If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.
- Ebs
Optimized bool - Indicates whether the instance is optimized for Amazon EBS I/O.
- Host
Id string - If you specify host for the Affinity property, the ID of a dedicated host that the instance is associated with. If you don't specify an ID, Amazon EC2 launches the instance onto any available, compatible dedicated host in your account.
- Iam
Instance stringProfile - The IAM instance profile.
- Instance
Id string - The EC2 Instance ID.
- Instance
Initiated stringShutdown Behavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
- Instance
Type string - The instance type.
- Kernel
Id string - The ID of the kernel.
- Monitoring bool
- Specifies whether detailed monitoring is enabled for the instance.
- Private
Dns stringName - The private DNS name of the specified instance. For example: ip-10-24-34-0.ec2.internal.
- Private
Dns Pulumi.Name Options Aws Native. Ec2. Outputs. Instance Private Dns Name Options - The options for the instance hostname.
- Private
Ip string - The private IP address of the specified instance. For example: 10.24.34.0.
- Public
Dns stringName - The public DNS name of the specified instance. For example: ec2-107-20-50-45.compute-1.amazonaws.com.
- Public
Ip string - The public IP address of the specified instance. For example: 192.0.2.0.
- Ramdisk
Id string - The ID of the RAM disk to select.
- Security
Group List<string>Ids - The IDs of the security groups.
- Source
Dest boolCheck - Specifies whether to enable an instance launched in a VPC to perform NAT.
- Ssm
Associations List<Pulumi.Aws Native. Ec2. Outputs. Instance Ssm Association> - The SSM document and parameter values in AWS Systems Manager to associate with this instance.
- State
Pulumi.
Aws Native. Ec2. Outputs. Instance State - The current state of the instance.
- List<Pulumi.
Aws Native. Outputs. Tag> - The tags to add to the instance.
- Tenancy string
- The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.
- User
Data string - The user data to make available to the instance.
- Volumes
List<Pulumi.
Aws Native. Ec2. Outputs. Instance Volume> - The volumes to attach to the instance.
- Vpc
Id string - The ID of the VPC that the instance is running in.
- Affinity
Instance
Affinity - Indicates whether the instance is associated with a dedicated host. If you want the instance to always restart on the same host on which it was launched, specify host. If you want the instance to restart on any available host, but try to launch onto the last host it ran on (on a best-effort basis), specify default.
- Block
Device []InstanceMappings Block Device Mapping - The block device mapping entries that defines the block devices to attach to the instance at launch.
- Credit
Specification CreditSpecification Properties - The credit option for CPU usage of the burstable performance instance. Valid values are standard and unlimited.
- Disable
Api boolTermination - If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.
- Ebs
Optimized bool - Indicates whether the instance is optimized for Amazon EBS I/O.
- Host
Id string - If you specify host for the Affinity property, the ID of a dedicated host that the instance is associated with. If you don't specify an ID, Amazon EC2 launches the instance onto any available, compatible dedicated host in your account.
- Iam
Instance stringProfile - The IAM instance profile.
- Instance
Id string - The EC2 Instance ID.
- Instance
Initiated stringShutdown Behavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
- Instance
Type string - The instance type.
- Kernel
Id string - The ID of the kernel.
- Monitoring bool
- Specifies whether detailed monitoring is enabled for the instance.
- Private
Dns stringName - The private DNS name of the specified instance. For example: ip-10-24-34-0.ec2.internal.
- Private
Dns InstanceName Options Private Dns Name Options - The options for the instance hostname.
- Private
Ip string - The private IP address of the specified instance. For example: 10.24.34.0.
- Public
Dns stringName - The public DNS name of the specified instance. For example: ec2-107-20-50-45.compute-1.amazonaws.com.
- Public
Ip string - The public IP address of the specified instance. For example: 192.0.2.0.
- Ramdisk
Id string - The ID of the RAM disk to select.
- Security
Group []stringIds - The IDs of the security groups.
- Source
Dest boolCheck - Specifies whether to enable an instance launched in a VPC to perform NAT.
- Ssm
Associations []InstanceSsm Association - The SSM document and parameter values in AWS Systems Manager to associate with this instance.
- State
Instance
State Type - The current state of the instance.
- Tag
- The tags to add to the instance.
- Tenancy string
- The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.
- User
Data string - The user data to make available to the instance.
- Volumes
[]Instance
Volume - The volumes to attach to the instance.
- Vpc
Id string - The ID of the VPC that the instance is running in.
- affinity
Instance
Affinity - Indicates whether the instance is associated with a dedicated host. If you want the instance to always restart on the same host on which it was launched, specify host. If you want the instance to restart on any available host, but try to launch onto the last host it ran on (on a best-effort basis), specify default.
- block
Device List<InstanceMappings Block Device Mapping> - The block device mapping entries that defines the block devices to attach to the instance at launch.
- credit
Specification CreditSpecification Properties - The credit option for CPU usage of the burstable performance instance. Valid values are standard and unlimited.
- disable
Api BooleanTermination - If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.
- ebs
Optimized Boolean - Indicates whether the instance is optimized for Amazon EBS I/O.
- host
Id String - If you specify host for the Affinity property, the ID of a dedicated host that the instance is associated with. If you don't specify an ID, Amazon EC2 launches the instance onto any available, compatible dedicated host in your account.
- iam
Instance StringProfile - The IAM instance profile.
- instance
Id String - The EC2 Instance ID.
- instance
Initiated StringShutdown Behavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
- instance
Type String - The instance type.
- kernel
Id String - The ID of the kernel.
- monitoring Boolean
- Specifies whether detailed monitoring is enabled for the instance.
- private
Dns StringName - The private DNS name of the specified instance. For example: ip-10-24-34-0.ec2.internal.
- private
Dns InstanceName Options Private Dns Name Options - The options for the instance hostname.
- private
Ip String - The private IP address of the specified instance. For example: 10.24.34.0.
- public
Dns StringName - The public DNS name of the specified instance. For example: ec2-107-20-50-45.compute-1.amazonaws.com.
- public
Ip String - The public IP address of the specified instance. For example: 192.0.2.0.
- ramdisk
Id String - The ID of the RAM disk to select.
- security
Group List<String>Ids - The IDs of the security groups.
- source
Dest BooleanCheck - Specifies whether to enable an instance launched in a VPC to perform NAT.
- ssm
Associations List<InstanceSsm Association> - The SSM document and parameter values in AWS Systems Manager to associate with this instance.
- state
Instance
State - The current state of the instance.
- List<Tag>
- The tags to add to the instance.
- tenancy String
- The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.
- user
Data String - The user data to make available to the instance.
- volumes
List<Instance
Volume> - The volumes to attach to the instance.
- vpc
Id String - The ID of the VPC that the instance is running in.
- affinity
Instance
Affinity - Indicates whether the instance is associated with a dedicated host. If you want the instance to always restart on the same host on which it was launched, specify host. If you want the instance to restart on any available host, but try to launch onto the last host it ran on (on a best-effort basis), specify default.
- block
Device InstanceMappings Block Device Mapping[] - The block device mapping entries that defines the block devices to attach to the instance at launch.
- credit
Specification CreditSpecification Properties - The credit option for CPU usage of the burstable performance instance. Valid values are standard and unlimited.
- disable
Api booleanTermination - If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.
- ebs
Optimized boolean - Indicates whether the instance is optimized for Amazon EBS I/O.
- host
Id string - If you specify host for the Affinity property, the ID of a dedicated host that the instance is associated with. If you don't specify an ID, Amazon EC2 launches the instance onto any available, compatible dedicated host in your account.
- iam
Instance stringProfile - The IAM instance profile.
- instance
Id string - The EC2 Instance ID.
- instance
Initiated stringShutdown Behavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
- instance
Type string - The instance type.
- kernel
Id string - The ID of the kernel.
- monitoring boolean
- Specifies whether detailed monitoring is enabled for the instance.
- private
Dns stringName - The private DNS name of the specified instance. For example: ip-10-24-34-0.ec2.internal.
- private
Dns InstanceName Options Private Dns Name Options - The options for the instance hostname.
- private
Ip string - The private IP address of the specified instance. For example: 10.24.34.0.
- public
Dns stringName - The public DNS name of the specified instance. For example: ec2-107-20-50-45.compute-1.amazonaws.com.
- public
Ip string - The public IP address of the specified instance. For example: 192.0.2.0.
- ramdisk
Id string - The ID of the RAM disk to select.
- security
Group string[]Ids - The IDs of the security groups.
- source
Dest booleanCheck - Specifies whether to enable an instance launched in a VPC to perform NAT.
- ssm
Associations InstanceSsm Association[] - The SSM document and parameter values in AWS Systems Manager to associate with this instance.
- state
Instance
State - The current state of the instance.
- Tag[]
- The tags to add to the instance.
- tenancy string
- The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.
- user
Data string - The user data to make available to the instance.
- volumes
Instance
Volume[] - The volumes to attach to the instance.
- vpc
Id string - The ID of the VPC that the instance is running in.
- affinity
Instance
Affinity - Indicates whether the instance is associated with a dedicated host. If you want the instance to always restart on the same host on which it was launched, specify host. If you want the instance to restart on any available host, but try to launch onto the last host it ran on (on a best-effort basis), specify default.
- block_
device_ Sequence[Instancemappings Block Device Mapping] - The block device mapping entries that defines the block devices to attach to the instance at launch.
- credit_
specification CreditSpecification Properties - The credit option for CPU usage of the burstable performance instance. Valid values are standard and unlimited.
- disable_
api_ booltermination - If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.
- ebs_
optimized bool - Indicates whether the instance is optimized for Amazon EBS I/O.
- host_
id str - If you specify host for the Affinity property, the ID of a dedicated host that the instance is associated with. If you don't specify an ID, Amazon EC2 launches the instance onto any available, compatible dedicated host in your account.
- iam_
instance_ strprofile - The IAM instance profile.
- instance_
id str - The EC2 Instance ID.
- instance_
initiated_ strshutdown_ behavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
- instance_
type str - The instance type.
- kernel_
id str - The ID of the kernel.
- monitoring bool
- Specifies whether detailed monitoring is enabled for the instance.
- private_
dns_ strname - The private DNS name of the specified instance. For example: ip-10-24-34-0.ec2.internal.
- private_
dns_ Instancename_ options Private Dns Name Options - The options for the instance hostname.
- private_
ip str - The private IP address of the specified instance. For example: 10.24.34.0.
- public_
dns_ strname - The public DNS name of the specified instance. For example: ec2-107-20-50-45.compute-1.amazonaws.com.
- public_
ip str - The public IP address of the specified instance. For example: 192.0.2.0.
- ramdisk_
id str - The ID of the RAM disk to select.
- security_
group_ Sequence[str]ids - The IDs of the security groups.
- source_
dest_ boolcheck - Specifies whether to enable an instance launched in a VPC to perform NAT.
- ssm_
associations Sequence[InstanceSsm Association] - The SSM document and parameter values in AWS Systems Manager to associate with this instance.
- state
Instance
State - The current state of the instance.
- Sequence[root_Tag]
- The tags to add to the instance.
- tenancy str
- The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.
- user_
data str - The user data to make available to the instance.
- volumes
Sequence[Instance
Volume] - The volumes to attach to the instance.
- vpc_
id str - The ID of the VPC that the instance is running in.
- affinity "default" | "host"
- Indicates whether the instance is associated with a dedicated host. If you want the instance to always restart on the same host on which it was launched, specify host. If you want the instance to restart on any available host, but try to launch onto the last host it ran on (on a best-effort basis), specify default.
- block
Device List<Property Map>Mappings - The block device mapping entries that defines the block devices to attach to the instance at launch.
- credit
Specification Property Map - The credit option for CPU usage of the burstable performance instance. Valid values are standard and unlimited.
- disable
Api BooleanTermination - If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can.
- ebs
Optimized Boolean - Indicates whether the instance is optimized for Amazon EBS I/O.
- host
Id String - If you specify host for the Affinity property, the ID of a dedicated host that the instance is associated with. If you don't specify an ID, Amazon EC2 launches the instance onto any available, compatible dedicated host in your account.
- iam
Instance StringProfile - The IAM instance profile.
- instance
Id String - The EC2 Instance ID.
- instance
Initiated StringShutdown Behavior - Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
- instance
Type String - The instance type.
- kernel
Id String - The ID of the kernel.
- monitoring Boolean
- Specifies whether detailed monitoring is enabled for the instance.
- private
Dns StringName - The private DNS name of the specified instance. For example: ip-10-24-34-0.ec2.internal.
- private
Dns Property MapName Options - The options for the instance hostname.
- private
Ip String - The private IP address of the specified instance. For example: 10.24.34.0.
- public
Dns StringName - The public DNS name of the specified instance. For example: ec2-107-20-50-45.compute-1.amazonaws.com.
- public
Ip String - The public IP address of the specified instance. For example: 192.0.2.0.
- ramdisk
Id String - The ID of the RAM disk to select.
- security
Group List<String>Ids - The IDs of the security groups.
- source
Dest BooleanCheck - Specifies whether to enable an instance launched in a VPC to perform NAT.
- ssm
Associations List<Property Map> - The SSM document and parameter values in AWS Systems Manager to associate with this instance.
- state Property Map
- The current state of the instance.
- List<Property Map>
- The tags to add to the instance.
- tenancy String
- The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.
- user
Data String - The user data to make available to the instance.
- volumes List<Property Map>
- The volumes to attach to the instance.
- vpc
Id String - The ID of the VPC that the instance is running in.
Supporting Types
CreditSpecificationProperties
- Cpu
Credits string The credit option for CPU usage of the instance.
Valid values:
standard
|unlimited
T3 instances with
host
tenancy do not support theunlimited
CPU credit option.
- Cpu
Credits string The credit option for CPU usage of the instance.
Valid values:
standard
|unlimited
T3 instances with
host
tenancy do not support theunlimited
CPU credit option.
- cpu
Credits String The credit option for CPU usage of the instance.
Valid values:
standard
|unlimited
T3 instances with
host
tenancy do not support theunlimited
CPU credit option.
- cpu
Credits string The credit option for CPU usage of the instance.
Valid values:
standard
|unlimited
T3 instances with
host
tenancy do not support theunlimited
CPU credit option.
- cpu_
credits str The credit option for CPU usage of the instance.
Valid values:
standard
|unlimited
T3 instances with
host
tenancy do not support theunlimited
CPU credit option.
- cpu
Credits String The credit option for CPU usage of the instance.
Valid values:
standard
|unlimited
T3 instances with
host
tenancy do not support theunlimited
CPU credit option.
InstanceAffinity
InstanceAssociationParameter
InstanceBlockDeviceMapping
- Device
Name string - The device name (for example, /dev/sdh or xvdh).
- Ebs
Pulumi.
Aws Native. Ec2. Inputs. Instance Ebs - Parameters used to automatically set up EBS volumes when the instance is launched.
- No
Device object To omit the device from the block device mapping, specify an empty string.
After the instance is running, modifying this parameter results in instance replacement .
- Virtual
Name string The virtual device name (
ephemeral
N). The name must be in the formephemeral
X where X is a number starting from zero (0). For example, an instance type with 2 available instance store volumes can specify mappings forephemeral0
andephemeral1
. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.
Constraints : For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
After the instance is running, modifying this parameter results in instance replacement .
- Device
Name string - The device name (for example, /dev/sdh or xvdh).
- Ebs
Instance
Ebs - Parameters used to automatically set up EBS volumes when the instance is launched.
- No
Device interface{} To omit the device from the block device mapping, specify an empty string.
After the instance is running, modifying this parameter results in instance replacement .
- Virtual
Name string The virtual device name (
ephemeral
N). The name must be in the formephemeral
X where X is a number starting from zero (0). For example, an instance type with 2 available instance store volumes can specify mappings forephemeral0
andephemeral1
. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.
Constraints : For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
After the instance is running, modifying this parameter results in instance replacement .
- device
Name String - The device name (for example, /dev/sdh or xvdh).
- ebs
Instance
Ebs - Parameters used to automatically set up EBS volumes when the instance is launched.
- no
Device Object To omit the device from the block device mapping, specify an empty string.
After the instance is running, modifying this parameter results in instance replacement .
- virtual
Name String The virtual device name (
ephemeral
N). The name must be in the formephemeral
X where X is a number starting from zero (0). For example, an instance type with 2 available instance store volumes can specify mappings forephemeral0
andephemeral1
. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.
Constraints : For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
After the instance is running, modifying this parameter results in instance replacement .
- device
Name string - The device name (for example, /dev/sdh or xvdh).
- ebs
Instance
Ebs - Parameters used to automatically set up EBS volumes when the instance is launched.
- no
Device any To omit the device from the block device mapping, specify an empty string.
After the instance is running, modifying this parameter results in instance replacement .
- virtual
Name string The virtual device name (
ephemeral
N). The name must be in the formephemeral
X where X is a number starting from zero (0). For example, an instance type with 2 available instance store volumes can specify mappings forephemeral0
andephemeral1
. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.
Constraints : For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
After the instance is running, modifying this parameter results in instance replacement .
- device_
name str - The device name (for example, /dev/sdh or xvdh).
- ebs
Instance
Ebs - Parameters used to automatically set up EBS volumes when the instance is launched.
- no_
device Any To omit the device from the block device mapping, specify an empty string.
After the instance is running, modifying this parameter results in instance replacement .
- virtual_
name str The virtual device name (
ephemeral
N). The name must be in the formephemeral
X where X is a number starting from zero (0). For example, an instance type with 2 available instance store volumes can specify mappings forephemeral0
andephemeral1
. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.
Constraints : For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
After the instance is running, modifying this parameter results in instance replacement .
- device
Name String - The device name (for example, /dev/sdh or xvdh).
- ebs Property Map
- Parameters used to automatically set up EBS volumes when the instance is launched.
- no
Device Any To omit the device from the block device mapping, specify an empty string.
After the instance is running, modifying this parameter results in instance replacement .
- virtual
Name String The virtual device name (
ephemeral
N). The name must be in the formephemeral
X where X is a number starting from zero (0). For example, an instance type with 2 available instance store volumes can specify mappings forephemeral0
andephemeral1
. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.NVMe instance store volumes are automatically enumerated and assigned a device name. Including them in your block device mapping has no effect.
Constraints : For M3 instances, you must specify instance store volumes in the block device mapping for the instance. When you launch an M3 instance, we ignore any instance store volumes specified in the block device mapping for the AMI.
After the instance is running, modifying this parameter results in instance replacement .
InstanceEbs
- Delete
On boolTermination - Indicates whether the EBS volume is deleted on instance termination.
- Encrypted bool
- Indicates whether the volume should be encrypted.
- Iops int
- The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.
- Kms
Key stringId - The identifier of the AWS Key Management Service (AWS KMS) customer managed CMK to use for Amazon EBS encryption. If KmsKeyId is specified, the encrypted state must be true. If the encrypted state is true but you do not specify KmsKeyId, your AWS managed CMK for EBS is used.
- Snapshot
Id string - The ID of the snapshot.
- Volume
Size int - The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.
- Volume
Type string - The volume type.
- Delete
On boolTermination - Indicates whether the EBS volume is deleted on instance termination.
- Encrypted bool
- Indicates whether the volume should be encrypted.
- Iops int
- The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.
- Kms
Key stringId - The identifier of the AWS Key Management Service (AWS KMS) customer managed CMK to use for Amazon EBS encryption. If KmsKeyId is specified, the encrypted state must be true. If the encrypted state is true but you do not specify KmsKeyId, your AWS managed CMK for EBS is used.
- Snapshot
Id string - The ID of the snapshot.
- Volume
Size int - The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.
- Volume
Type string - The volume type.
- delete
On BooleanTermination - Indicates whether the EBS volume is deleted on instance termination.
- encrypted Boolean
- Indicates whether the volume should be encrypted.
- iops Integer
- The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.
- kms
Key StringId - The identifier of the AWS Key Management Service (AWS KMS) customer managed CMK to use for Amazon EBS encryption. If KmsKeyId is specified, the encrypted state must be true. If the encrypted state is true but you do not specify KmsKeyId, your AWS managed CMK for EBS is used.
- snapshot
Id String - The ID of the snapshot.
- volume
Size Integer - The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.
- volume
Type String - The volume type.
- delete
On booleanTermination - Indicates whether the EBS volume is deleted on instance termination.
- encrypted boolean
- Indicates whether the volume should be encrypted.
- iops number
- The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.
- kms
Key stringId - The identifier of the AWS Key Management Service (AWS KMS) customer managed CMK to use for Amazon EBS encryption. If KmsKeyId is specified, the encrypted state must be true. If the encrypted state is true but you do not specify KmsKeyId, your AWS managed CMK for EBS is used.
- snapshot
Id string - The ID of the snapshot.
- volume
Size number - The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.
- volume
Type string - The volume type.
- delete_
on_ booltermination - Indicates whether the EBS volume is deleted on instance termination.
- encrypted bool
- Indicates whether the volume should be encrypted.
- iops int
- The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.
- kms_
key_ strid - The identifier of the AWS Key Management Service (AWS KMS) customer managed CMK to use for Amazon EBS encryption. If KmsKeyId is specified, the encrypted state must be true. If the encrypted state is true but you do not specify KmsKeyId, your AWS managed CMK for EBS is used.
- snapshot_
id str - The ID of the snapshot.
- volume_
size int - The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.
- volume_
type str - The volume type.
- delete
On BooleanTermination - Indicates whether the EBS volume is deleted on instance termination.
- encrypted Boolean
- Indicates whether the volume should be encrypted.
- iops Number
- The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents the number of IOPS that are provisioned for the volume. For gp2 volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.
- kms
Key StringId - The identifier of the AWS Key Management Service (AWS KMS) customer managed CMK to use for Amazon EBS encryption. If KmsKeyId is specified, the encrypted state must be true. If the encrypted state is true but you do not specify KmsKeyId, your AWS managed CMK for EBS is used.
- snapshot
Id String - The ID of the snapshot.
- volume
Size Number - The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.
- volume
Type String - The volume type.
InstancePrivateDnsNameOptions
- Enable
Resource boolName Dns ARecord - Indicates whether to respond to DNS queries for instance hostnames with DNS A records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
- Enable
Resource boolName Dns Aaaa Record - Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
- Hostname
Type Pulumi.Aws Native. Ec2. Instance Private Dns Name Options Hostname Type - The type of hostnames to assign to instances in the subnet at launch. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
- Enable
Resource boolName Dns ARecord - Indicates whether to respond to DNS queries for instance hostnames with DNS A records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
- Enable
Resource boolName Dns Aaaa Record - Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
- Hostname
Type InstancePrivate Dns Name Options Hostname Type - The type of hostnames to assign to instances in the subnet at launch. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
- enable
Resource BooleanName Dns ARecord - Indicates whether to respond to DNS queries for instance hostnames with DNS A records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
- enable
Resource BooleanName Dns Aaaa Record - Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
- hostname
Type InstancePrivate Dns Name Options Hostname Type - The type of hostnames to assign to instances in the subnet at launch. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
- enable
Resource booleanName Dns ARecord - Indicates whether to respond to DNS queries for instance hostnames with DNS A records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
- enable
Resource booleanName Dns Aaaa Record - Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
- hostname
Type InstancePrivate Dns Name Options Hostname Type - The type of hostnames to assign to instances in the subnet at launch. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
- enable_
resource_ boolname_ dns_ a_ record - Indicates whether to respond to DNS queries for instance hostnames with DNS A records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
- enable_
resource_ boolname_ dns_ aaaa_ record - Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
- hostname_
type InstancePrivate Dns Name Options Hostname Type - The type of hostnames to assign to instances in the subnet at launch. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
- enable
Resource BooleanName Dns ARecord - Indicates whether to respond to DNS queries for instance hostnames with DNS A records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
- enable
Resource BooleanName Dns Aaaa Record - Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
- hostname
Type "ip-name" | "resource-name" - The type of hostnames to assign to instances in the subnet at launch. For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID. For more information, see Amazon EC2 instance hostname types in the Amazon Elastic Compute Cloud User Guide.
InstancePrivateDnsNameOptionsHostnameType
InstanceSsmAssociation
- Document
Name string - The name of an SSM document to associate with the instance.
- Association
Parameters List<Pulumi.Aws Native. Ec2. Inputs. Instance Association Parameter> - The input parameter values to use with the associated SSM document.
- Document
Name string - The name of an SSM document to associate with the instance.
- Association
Parameters []InstanceAssociation Parameter - The input parameter values to use with the associated SSM document.
- document
Name String - The name of an SSM document to associate with the instance.
- association
Parameters List<InstanceAssociation Parameter> - The input parameter values to use with the associated SSM document.
- document
Name string - The name of an SSM document to associate with the instance.
- association
Parameters InstanceAssociation Parameter[] - The input parameter values to use with the associated SSM document.
- document_
name str - The name of an SSM document to associate with the instance.
- association_
parameters Sequence[InstanceAssociation Parameter] - The input parameter values to use with the associated SSM document.
- document
Name String - The name of an SSM document to associate with the instance.
- association
Parameters List<Property Map> - The input parameter values to use with the associated SSM document.
InstanceState
InstanceVolume
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.