AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.11.0 published on Wednesday, Aug 17, 2022 by Pulumi

getLaunchConfiguration

Provides information about a Launch Configuration.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var ubuntu = Aws.Ec2.GetLaunchConfiguration.Invoke(new()
    {
        Name = "test-launch-config",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ec2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ec2.LookupLaunchConfiguration(ctx, &ec2.LookupLaunchConfigurationArgs{
			Name: "test-launch-config",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.Ec2Functions;
import com.pulumi.aws.ec2.inputs.GetLaunchConfigurationArgs;
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) {
        final var ubuntu = Ec2Functions.getLaunchConfiguration(GetLaunchConfigurationArgs.builder()
            .name("test-launch-config")
            .build());

    }
}
import pulumi
import pulumi_aws as aws

ubuntu = aws.ec2.get_launch_configuration(name="test-launch-config")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const ubuntu = pulumi.output(aws.ec2.getLaunchConfiguration({
    name: "test-launch-config",
}));
variables:
  ubuntu:
    Fn::Invoke:
      Function: aws:ec2:getLaunchConfiguration
      Arguments:
        name: test-launch-config

Using getLaunchConfiguration

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 getLaunchConfiguration(args: GetLaunchConfigurationArgs, opts?: InvokeOptions): Promise<GetLaunchConfigurationResult>
function getLaunchConfigurationOutput(args: GetLaunchConfigurationOutputArgs, opts?: InvokeOptions): Output<GetLaunchConfigurationResult>
def get_launch_configuration(name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetLaunchConfigurationResult
def get_launch_configuration_output(name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetLaunchConfigurationResult]
func LookupLaunchConfiguration(ctx *Context, args *LookupLaunchConfigurationArgs, opts ...InvokeOption) (*LookupLaunchConfigurationResult, error)
func LookupLaunchConfigurationOutput(ctx *Context, args *LookupLaunchConfigurationOutputArgs, opts ...InvokeOption) LookupLaunchConfigurationResultOutput

> Note: This function is named LookupLaunchConfiguration in the Go SDK.

public static class GetLaunchConfiguration 
{
    public static Task<GetLaunchConfigurationResult> InvokeAsync(GetLaunchConfigurationArgs args, InvokeOptions? opts = null)
    public static Output<GetLaunchConfigurationResult> Invoke(GetLaunchConfigurationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLaunchConfigurationResult> getLaunchConfiguration(GetLaunchConfigurationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:ec2/getLaunchConfiguration:getLaunchConfiguration
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string

The name of the launch configuration.

Name string

The name of the launch configuration.

name String

The name of the launch configuration.

name string

The name of the launch configuration.

name str

The name of the launch configuration.

name String

The name of the launch configuration.

getLaunchConfiguration Result

The following output properties are available:

Arn string

The Amazon Resource Name of the launch configuration.

AssociatePublicIpAddress bool

Whether a Public IP address is associated with the instance.

EbsBlockDevices List<Pulumi.Aws.Ec2.Outputs.GetLaunchConfigurationEbsBlockDevice>

The EBS Block Devices attached to the instance.

EbsOptimized bool

Whether the launched EC2 instance will be EBS-optimized.

EnableMonitoring bool

Whether Detailed Monitoring is Enabled.

EphemeralBlockDevices List<Pulumi.Aws.Ec2.Outputs.GetLaunchConfigurationEphemeralBlockDevice>

The Ephemeral volumes on the instance.

IamInstanceProfile string

The IAM Instance Profile to associate with launched instances.

Id string

The provider-assigned unique ID for this managed resource.

ImageId string

The EC2 Image ID of the instance.

InstanceType string

The Instance Type of the instance to launch.

KeyName string

The Key Name that should be used for the instance.

MetadataOptions List<Pulumi.Aws.Ec2.Outputs.GetLaunchConfigurationMetadataOption>

The metadata options for the instance.

Name string

The Name of the launch configuration.

PlacementTenancy string

The Tenancy of the instance.

RootBlockDevices List<Pulumi.Aws.Ec2.Outputs.GetLaunchConfigurationRootBlockDevice>

The Root Block Device of the instance.

SecurityGroups List<string>

A list of associated Security Group IDS.

SpotPrice string

The Price to use for reserving Spot instances.

UserData string

The User Data of the instance.

VpcClassicLinkId string

The ID of a ClassicLink-enabled VPC.

VpcClassicLinkSecurityGroups List<string>

The IDs of one or more Security Groups for the specified ClassicLink-enabled VPC.

Arn string

The Amazon Resource Name of the launch configuration.

AssociatePublicIpAddress bool

Whether a Public IP address is associated with the instance.

EbsBlockDevices []GetLaunchConfigurationEbsBlockDevice

The EBS Block Devices attached to the instance.

EbsOptimized bool

Whether the launched EC2 instance will be EBS-optimized.

EnableMonitoring bool

Whether Detailed Monitoring is Enabled.

EphemeralBlockDevices []GetLaunchConfigurationEphemeralBlockDevice

The Ephemeral volumes on the instance.

IamInstanceProfile string

The IAM Instance Profile to associate with launched instances.

Id string

The provider-assigned unique ID for this managed resource.

ImageId string

The EC2 Image ID of the instance.

InstanceType string

The Instance Type of the instance to launch.

KeyName string

The Key Name that should be used for the instance.

MetadataOptions []GetLaunchConfigurationMetadataOption

The metadata options for the instance.

Name string

The Name of the launch configuration.

PlacementTenancy string

The Tenancy of the instance.

RootBlockDevices []GetLaunchConfigurationRootBlockDevice

The Root Block Device of the instance.

SecurityGroups []string

A list of associated Security Group IDS.

SpotPrice string

The Price to use for reserving Spot instances.

UserData string

The User Data of the instance.

VpcClassicLinkId string

The ID of a ClassicLink-enabled VPC.

VpcClassicLinkSecurityGroups []string

The IDs of one or more Security Groups for the specified ClassicLink-enabled VPC.

arn String

The Amazon Resource Name of the launch configuration.

associatePublicIpAddress Boolean

Whether a Public IP address is associated with the instance.

ebsBlockDevices List<GetLaunchConfigurationEbsBlockDevice>

The EBS Block Devices attached to the instance.

ebsOptimized Boolean

Whether the launched EC2 instance will be EBS-optimized.

enableMonitoring Boolean

Whether Detailed Monitoring is Enabled.

ephemeralBlockDevices List<GetLaunchConfigurationEphemeralBlockDevice>

The Ephemeral volumes on the instance.

iamInstanceProfile String

The IAM Instance Profile to associate with launched instances.

id String

The provider-assigned unique ID for this managed resource.

imageId String

The EC2 Image ID of the instance.

instanceType String

The Instance Type of the instance to launch.

keyName String

The Key Name that should be used for the instance.

metadataOptions List<GetLaunchConfigurationMetadataOption>

The metadata options for the instance.

name String

The Name of the launch configuration.

placementTenancy String

The Tenancy of the instance.

rootBlockDevices List<GetLaunchConfigurationRootBlockDevice>

The Root Block Device of the instance.

securityGroups List<String>

A list of associated Security Group IDS.

spotPrice String

The Price to use for reserving Spot instances.

userData String

The User Data of the instance.

vpcClassicLinkId String

The ID of a ClassicLink-enabled VPC.

vpcClassicLinkSecurityGroups List<String>

The IDs of one or more Security Groups for the specified ClassicLink-enabled VPC.

arn string

The Amazon Resource Name of the launch configuration.

associatePublicIpAddress boolean

Whether a Public IP address is associated with the instance.

ebsBlockDevices GetLaunchConfigurationEbsBlockDevice[]

The EBS Block Devices attached to the instance.

ebsOptimized boolean

Whether the launched EC2 instance will be EBS-optimized.

enableMonitoring boolean

Whether Detailed Monitoring is Enabled.

ephemeralBlockDevices GetLaunchConfigurationEphemeralBlockDevice[]

The Ephemeral volumes on the instance.

iamInstanceProfile string

The IAM Instance Profile to associate with launched instances.

id string

The provider-assigned unique ID for this managed resource.

imageId string

The EC2 Image ID of the instance.

instanceType string

The Instance Type of the instance to launch.

keyName string

The Key Name that should be used for the instance.

metadataOptions GetLaunchConfigurationMetadataOption[]

The metadata options for the instance.

name string

The Name of the launch configuration.

placementTenancy string

The Tenancy of the instance.

rootBlockDevices GetLaunchConfigurationRootBlockDevice[]

The Root Block Device of the instance.

securityGroups string[]

A list of associated Security Group IDS.

spotPrice string

The Price to use for reserving Spot instances.

userData string

The User Data of the instance.

vpcClassicLinkId string

The ID of a ClassicLink-enabled VPC.

vpcClassicLinkSecurityGroups string[]

The IDs of one or more Security Groups for the specified ClassicLink-enabled VPC.

arn str

The Amazon Resource Name of the launch configuration.

associate_public_ip_address bool

Whether a Public IP address is associated with the instance.

ebs_block_devices Sequence[GetLaunchConfigurationEbsBlockDevice]

The EBS Block Devices attached to the instance.

ebs_optimized bool

Whether the launched EC2 instance will be EBS-optimized.

enable_monitoring bool

Whether Detailed Monitoring is Enabled.

ephemeral_block_devices Sequence[GetLaunchConfigurationEphemeralBlockDevice]

The Ephemeral volumes on the instance.

iam_instance_profile str

The IAM Instance Profile to associate with launched instances.

id str

The provider-assigned unique ID for this managed resource.

image_id str

The EC2 Image ID of the instance.

instance_type str

The Instance Type of the instance to launch.

key_name str

The Key Name that should be used for the instance.

metadata_options Sequence[GetLaunchConfigurationMetadataOption]

The metadata options for the instance.

name str

The Name of the launch configuration.

placement_tenancy str

The Tenancy of the instance.

root_block_devices Sequence[GetLaunchConfigurationRootBlockDevice]

The Root Block Device of the instance.

security_groups Sequence[str]

A list of associated Security Group IDS.

spot_price str

The Price to use for reserving Spot instances.

user_data str

The User Data of the instance.

vpc_classic_link_id str

The ID of a ClassicLink-enabled VPC.

vpc_classic_link_security_groups Sequence[str]

The IDs of one or more Security Groups for the specified ClassicLink-enabled VPC.

arn String

The Amazon Resource Name of the launch configuration.

associatePublicIpAddress Boolean

Whether a Public IP address is associated with the instance.

ebsBlockDevices List<Property Map>

The EBS Block Devices attached to the instance.

ebsOptimized Boolean

Whether the launched EC2 instance will be EBS-optimized.

enableMonitoring Boolean

Whether Detailed Monitoring is Enabled.

ephemeralBlockDevices List<Property Map>

The Ephemeral volumes on the instance.

iamInstanceProfile String

The IAM Instance Profile to associate with launched instances.

id String

The provider-assigned unique ID for this managed resource.

imageId String

The EC2 Image ID of the instance.

instanceType String

The Instance Type of the instance to launch.

keyName String

The Key Name that should be used for the instance.

metadataOptions List<Property Map>

The metadata options for the instance.

name String

The Name of the launch configuration.

placementTenancy String

The Tenancy of the instance.

rootBlockDevices List<Property Map>

The Root Block Device of the instance.

securityGroups List<String>

A list of associated Security Group IDS.

spotPrice String

The Price to use for reserving Spot instances.

userData String

The User Data of the instance.

vpcClassicLinkId String

The ID of a ClassicLink-enabled VPC.

vpcClassicLinkSecurityGroups List<String>

The IDs of one or more Security Groups for the specified ClassicLink-enabled VPC.

Supporting Types

GetLaunchConfigurationEbsBlockDevice

DeleteOnTermination bool

Whether the EBS Volume will be deleted on instance termination.

DeviceName string

The Name of the device.

Encrypted bool

Whether the volume is Encrypted.

Iops int

The provisioned IOPs of the volume.

NoDevice bool

Whether the device in the block device mapping of the AMI is suppressed.

SnapshotId string

The Snapshot ID of the mount.

Throughput int

The Throughput of the volume.

VolumeSize int

The Size of the volume.

VolumeType string

The Type of the volume.

DeleteOnTermination bool

Whether the EBS Volume will be deleted on instance termination.

DeviceName string

The Name of the device.

Encrypted bool

Whether the volume is Encrypted.

Iops int

The provisioned IOPs of the volume.

NoDevice bool

Whether the device in the block device mapping of the AMI is suppressed.

SnapshotId string

The Snapshot ID of the mount.

Throughput int

The Throughput of the volume.

VolumeSize int

The Size of the volume.

VolumeType string

The Type of the volume.

deleteOnTermination Boolean

Whether the EBS Volume will be deleted on instance termination.

deviceName String

The Name of the device.

encrypted Boolean

Whether the volume is Encrypted.

iops Integer

The provisioned IOPs of the volume.

noDevice Boolean

Whether the device in the block device mapping of the AMI is suppressed.

snapshotId String

The Snapshot ID of the mount.

throughput Integer

The Throughput of the volume.

volumeSize Integer

The Size of the volume.

volumeType String

The Type of the volume.

deleteOnTermination boolean

Whether the EBS Volume will be deleted on instance termination.

deviceName string

The Name of the device.

encrypted boolean

Whether the volume is Encrypted.

iops number

The provisioned IOPs of the volume.

noDevice boolean

Whether the device in the block device mapping of the AMI is suppressed.

snapshotId string

The Snapshot ID of the mount.

throughput number

The Throughput of the volume.

volumeSize number

The Size of the volume.

volumeType string

The Type of the volume.

delete_on_termination bool

Whether the EBS Volume will be deleted on instance termination.

device_name str

The Name of the device.

encrypted bool

Whether the volume is Encrypted.

iops int

The provisioned IOPs of the volume.

no_device bool

Whether the device in the block device mapping of the AMI is suppressed.

snapshot_id str

The Snapshot ID of the mount.

throughput int

The Throughput of the volume.

volume_size int

The Size of the volume.

volume_type str

The Type of the volume.

deleteOnTermination Boolean

Whether the EBS Volume will be deleted on instance termination.

deviceName String

The Name of the device.

encrypted Boolean

Whether the volume is Encrypted.

iops Number

The provisioned IOPs of the volume.

noDevice Boolean

Whether the device in the block device mapping of the AMI is suppressed.

snapshotId String

The Snapshot ID of the mount.

throughput Number

The Throughput of the volume.

volumeSize Number

The Size of the volume.

volumeType String

The Type of the volume.

GetLaunchConfigurationEphemeralBlockDevice

DeviceName string

The Name of the device.

VirtualName string

The Virtual Name of the device.

DeviceName string

The Name of the device.

VirtualName string

The Virtual Name of the device.

deviceName String

The Name of the device.

virtualName String

The Virtual Name of the device.

deviceName string

The Name of the device.

virtualName string

The Virtual Name of the device.

device_name str

The Name of the device.

virtual_name str

The Virtual Name of the device.

deviceName String

The Name of the device.

virtualName String

The Virtual Name of the device.

GetLaunchConfigurationMetadataOption

HttpEndpoint string

The state of the metadata service: enabled, disabled.

HttpPutResponseHopLimit int

The desired HTTP PUT response hop limit for instance metadata requests.

HttpTokens string

If session tokens are required: optional, required.

HttpEndpoint string

The state of the metadata service: enabled, disabled.

HttpPutResponseHopLimit int

The desired HTTP PUT response hop limit for instance metadata requests.

HttpTokens string

If session tokens are required: optional, required.

httpEndpoint String

The state of the metadata service: enabled, disabled.

httpPutResponseHopLimit Integer

The desired HTTP PUT response hop limit for instance metadata requests.

httpTokens String

If session tokens are required: optional, required.

httpEndpoint string

The state of the metadata service: enabled, disabled.

httpPutResponseHopLimit number

The desired HTTP PUT response hop limit for instance metadata requests.

httpTokens string

If session tokens are required: optional, required.

http_endpoint str

The state of the metadata service: enabled, disabled.

http_put_response_hop_limit int

The desired HTTP PUT response hop limit for instance metadata requests.

http_tokens str

If session tokens are required: optional, required.

httpEndpoint String

The state of the metadata service: enabled, disabled.

httpPutResponseHopLimit Number

The desired HTTP PUT response hop limit for instance metadata requests.

httpTokens String

If session tokens are required: optional, required.

GetLaunchConfigurationRootBlockDevice

DeleteOnTermination bool

Whether the EBS Volume will be deleted on instance termination.

Encrypted bool

Whether the volume is Encrypted.

Iops int

The provisioned IOPs of the volume.

Throughput int

The Throughput of the volume.

VolumeSize int

The Size of the volume.

VolumeType string

The Type of the volume.

DeleteOnTermination bool

Whether the EBS Volume will be deleted on instance termination.

Encrypted bool

Whether the volume is Encrypted.

Iops int

The provisioned IOPs of the volume.

Throughput int

The Throughput of the volume.

VolumeSize int

The Size of the volume.

VolumeType string

The Type of the volume.

deleteOnTermination Boolean

Whether the EBS Volume will be deleted on instance termination.

encrypted Boolean

Whether the volume is Encrypted.

iops Integer

The provisioned IOPs of the volume.

throughput Integer

The Throughput of the volume.

volumeSize Integer

The Size of the volume.

volumeType String

The Type of the volume.

deleteOnTermination boolean

Whether the EBS Volume will be deleted on instance termination.

encrypted boolean

Whether the volume is Encrypted.

iops number

The provisioned IOPs of the volume.

throughput number

The Throughput of the volume.

volumeSize number

The Size of the volume.

volumeType string

The Type of the volume.

delete_on_termination bool

Whether the EBS Volume will be deleted on instance termination.

encrypted bool

Whether the volume is Encrypted.

iops int

The provisioned IOPs of the volume.

throughput int

The Throughput of the volume.

volume_size int

The Size of the volume.

volume_type str

The Type of the volume.

deleteOnTermination Boolean

Whether the EBS Volume will be deleted on instance termination.

encrypted Boolean

Whether the volume is Encrypted.

iops Number

The provisioned IOPs of the volume.

throughput Number

The Throughput of the volume.

volumeSize Number

The Size of the volume.

volumeType String

The Type of the volume.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.