pub struct GetInstanceResult {Show 48 fields
pub ami: Output<String>,
pub arn: Output<String>,
pub associate_public_ip_address: Output<bool>,
pub availability_zone: Output<String>,
pub credit_specifications: Output<Vec<GetInstanceCreditSpecification>>,
pub disable_api_stop: Output<bool>,
pub disable_api_termination: Output<bool>,
pub ebs_block_devices: Output<Vec<GetInstanceEbsBlockDevice>>,
pub ebs_optimized: Output<bool>,
pub enclave_options: Output<Vec<GetInstanceEnclaveOption>>,
pub ephemeral_block_devices: Output<Vec<GetInstanceEphemeralBlockDevice>>,
pub filters: Output<Option<Vec<GetInstanceFilter>>>,
pub get_password_data: Output<Option<bool>>,
pub get_user_data: Output<Option<bool>>,
pub host_id: Output<String>,
pub host_resource_group_arn: Output<String>,
pub iam_instance_profile: Output<String>,
pub id: Output<String>,
pub instance_id: Output<Option<String>>,
pub instance_state: Output<String>,
pub instance_tags: Output<HashMap<String, String>>,
pub instance_type: Output<String>,
pub ipv6_addresses: Output<Vec<String>>,
pub key_name: Output<String>,
pub launch_time: Output<String>,
pub maintenance_options: Output<Vec<GetInstanceMaintenanceOption>>,
pub metadata_options: Output<Vec<GetInstanceMetadataOption>>,
pub monitoring: Output<bool>,
pub network_interface_id: Output<String>,
pub outpost_arn: Output<String>,
pub password_data: Output<String>,
pub placement_group: Output<String>,
pub placement_partition_number: Output<i32>,
pub private_dns: Output<String>,
pub private_dns_name_options: Output<Vec<GetInstancePrivateDnsNameOption>>,
pub private_ip: Output<String>,
pub public_dns: Output<String>,
pub public_ip: Output<String>,
pub root_block_devices: Output<Vec<GetInstanceRootBlockDevice>>,
pub secondary_private_ips: Output<Vec<String>>,
pub security_groups: Output<Vec<String>>,
pub source_dest_check: Output<bool>,
pub subnet_id: Output<String>,
pub tags: Output<HashMap<String, String>>,
pub tenancy: Output<String>,
pub user_data: Output<String>,
pub user_data_base64: Output<String>,
pub vpc_security_group_ids: Output<Vec<String>>,
}
Fields§
§ami: Output<String>
ID of the AMI used to launch the instance.
arn: Output<String>
ARN of the instance.
associate_public_ip_address: Output<bool>
Whether or not the Instance is associated with a public IP address or not (Boolean).
availability_zone: Output<String>
Availability zone of the Instance.
credit_specifications: Output<Vec<GetInstanceCreditSpecification>>
Credit specification of the Instance.
disable_api_stop: Output<bool>
Whether or not EC2 Instance Stop Protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection) is enabled (Boolean).
disable_api_termination: Output<bool>
Whether or not EC2 Instance Termination Protection is enabled (Boolean).
ebs_block_devices: Output<Vec<GetInstanceEbsBlockDevice>>
EBS block device mappings of the Instance.
ebs_optimized: Output<bool>
Whether the Instance is EBS optimized or not (Boolean).
enclave_options: Output<Vec<GetInstanceEnclaveOption>>
Enclave options of the instance.
ephemeral_block_devices: Output<Vec<GetInstanceEphemeralBlockDevice>>
Ephemeral block device mappings of the Instance.
filters: Output<Option<Vec<GetInstanceFilter>>>
§get_password_data: Output<Option<bool>>
§get_user_data: Output<Option<bool>>
§host_id: Output<String>
ID of the dedicated host the instance will be assigned to.
host_resource_group_arn: Output<String>
ARN of the host resource group the instance is associated with.
iam_instance_profile: Output<String>
Name of the instance profile associated with the Instance.
id: Output<String>
The provider-assigned unique ID for this managed resource.
instance_id: Output<Option<String>>
§instance_state: Output<String>
State of the instance. One of: pending
, running
, shutting-down
, terminated
, stopping
, stopped
. See Instance Lifecycle for more information.
instance_type: Output<String>
Type of the Instance.
ipv6_addresses: Output<Vec<String>>
IPv6 addresses associated to the Instance, if applicable. NOTE: Unlike the IPv4 address, this doesn’t change if you attach an EIP to the instance.
key_name: Output<String>
Key name of the Instance.
launch_time: Output<String>
Time the instance was launched.
maintenance_options: Output<Vec<GetInstanceMaintenanceOption>>
Maintenance and recovery options for the instance.
metadata_options: Output<Vec<GetInstanceMetadataOption>>
Metadata options of the Instance.
monitoring: Output<bool>
Whether detailed monitoring is enabled or disabled for the Instance (Boolean).
network_interface_id: Output<String>
ID of the network interface that was created with the Instance.
outpost_arn: Output<String>
ARN of the Outpost.
password_data: Output<String>
Base-64 encoded encrypted password data for the instance. Useful for getting the administrator password for instances running Microsoft Windows. This attribute is only exported if get_password_data
is true. See GetPasswordData for more information.
placement_group: Output<String>
Placement group of the Instance.
placement_partition_number: Output<i32>
Number of the partition the instance is in.
private_dns: Output<String>
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_dns_name_options: Output<Vec<GetInstancePrivateDnsNameOption>>
Options for the instance hostname.
private_ip: Output<String>
Private IP address assigned to the Instance.
public_dns: Output<String>
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: Output<String>
Public IP address assigned to the Instance, if applicable. NOTE: If you are using an aws.ec2.Eip
with your instance, you should refer to the EIP’s address directly and not use public_ip
, as this field will change after the EIP is attached.
root_block_devices: Output<Vec<GetInstanceRootBlockDevice>>
Root block device mappings of the Instance
secondary_private_ips: Output<Vec<String>>
Secondary private IPv4 addresses assigned to the instance’s primary network interface (eth0) in a VPC.
security_groups: Output<Vec<String>>
Associated security groups.
source_dest_check: Output<bool>
Whether the network interface performs source/destination checking (Boolean).
subnet_id: Output<String>
VPC subnet ID.
Map of tags assigned to the Instance.
tenancy: Output<String>
Tenancy of the instance: dedicated
, default
, host
.
user_data: Output<String>
SHA-1 hash of User Data supplied to the Instance.
user_data_base64: Output<String>
Base64 encoded contents of User Data supplied to the Instance. This attribute is only exported if get_user_data
is true.
vpc_security_group_ids: Output<Vec<String>>
Associated security groups in a non-default VPC.