Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
aws.ec2.getLaunchConfiguration
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
Provides information about a Launch Configuration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const ubuntu = aws.ec2.getLaunchConfiguration({
name: "test-launch-config",
});
import pulumi
import pulumi_aws as aws
ubuntu = aws.ec2.get_launch_configuration(name="test-launch-config")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var ubuntu = Aws.Ec2.GetLaunchConfiguration.Invoke(new()
{
Name = "test-launch-config",
});
});
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());
}
}
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
- Name of the launch configuration.
- Name string
- Name of the launch configuration.
- name String
- Name of the launch configuration.
- name string
- Name of the launch configuration.
- name str
- Name of the launch configuration.
- name String
- Name of the launch configuration.
getLaunchConfiguration Result
The following output properties are available:
- Arn string
- Amazon Resource Name of the launch configuration.
- Associate
Public boolIp Address - Whether a Public IP address is associated with the instance.
- Ebs
Block List<GetDevices Launch Configuration Ebs Block Device> - 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 List<GetDevices Launch Configuration Ephemeral Block Device> - The Ephemeral volumes on the instance.
- Iam
Instance stringProfile - The IAM Instance Profile to associate with launched instances.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Id string - EC2 Image ID of the instance.
- Instance
Type string - Instance Type of the instance to launch.
- Key
Name string - Key Name that should be used for the instance.
- Metadata
Options List<GetLaunch Configuration Metadata Option> - Metadata options for the instance.
- Name string
- Name of the launch configuration.
- Placement
Tenancy string - Tenancy of the instance.
- Root
Block List<GetDevices Launch Configuration Root Block Device> - Root Block Device of the instance.
- Security
Groups List<string> - List of associated Security Group IDS.
- Spot
Price string - Price to use for reserving Spot instances.
- User
Data string - User Data of the instance.
- Arn string
- Amazon Resource Name of the launch configuration.
- Associate
Public boolIp Address - Whether a Public IP address is associated with the instance.
- Ebs
Block []GetDevices Launch Configuration Ebs Block Device - 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 []GetDevices Launch Configuration Ephemeral Block Device - The Ephemeral volumes on the instance.
- Iam
Instance stringProfile - The IAM Instance Profile to associate with launched instances.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Id string - EC2 Image ID of the instance.
- Instance
Type string - Instance Type of the instance to launch.
- Key
Name string - Key Name that should be used for the instance.
- Metadata
Options []GetLaunch Configuration Metadata Option - Metadata options for the instance.
- Name string
- Name of the launch configuration.
- Placement
Tenancy string - Tenancy of the instance.
- Root
Block []GetDevices Launch Configuration Root Block Device - Root Block Device of the instance.
- Security
Groups []string - List of associated Security Group IDS.
- Spot
Price string - Price to use for reserving Spot instances.
- User
Data string - User Data of the instance.
- arn String
- Amazon Resource Name of the launch configuration.
- associate
Public BooleanIp Address - Whether a Public IP address is associated with the instance.
- ebs
Block List<GetDevices Launch Configuration Ebs Block Device> - EBS Block Devices attached to the instance.
- ebs
Optimized Boolean - Whether the launched EC2 instance will be EBS-optimized.
- enable
Monitoring Boolean - Whether Detailed Monitoring is Enabled.
- ephemeral
Block List<GetDevices Launch Configuration Ephemeral Block Device> - The Ephemeral volumes on the instance.
- iam
Instance StringProfile - The IAM Instance Profile to associate with launched instances.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Id String - EC2 Image ID of the instance.
- instance
Type String - Instance Type of the instance to launch.
- key
Name String - Key Name that should be used for the instance.
- metadata
Options List<GetLaunch Configuration Metadata Option> - Metadata options for the instance.
- name String
- Name of the launch configuration.
- placement
Tenancy String - Tenancy of the instance.
- root
Block List<GetDevices Launch Configuration Root Block Device> - Root Block Device of the instance.
- security
Groups List<String> - List of associated Security Group IDS.
- spot
Price String - Price to use for reserving Spot instances.
- user
Data String - User Data of the instance.
- arn string
- Amazon Resource Name of the launch configuration.
- associate
Public booleanIp Address - Whether a Public IP address is associated with the instance.
- ebs
Block GetDevices Launch Configuration Ebs Block Device[] - EBS Block Devices attached to the instance.
- ebs
Optimized boolean - Whether the launched EC2 instance will be EBS-optimized.
- enable
Monitoring boolean - Whether Detailed Monitoring is Enabled.
- ephemeral
Block GetDevices Launch Configuration Ephemeral Block Device[] - The Ephemeral volumes on the instance.
- iam
Instance stringProfile - The IAM Instance Profile to associate with launched instances.
- id string
- The provider-assigned unique ID for this managed resource.
- image
Id string - EC2 Image ID of the instance.
- instance
Type string - Instance Type of the instance to launch.
- key
Name string - Key Name that should be used for the instance.
- metadata
Options GetLaunch Configuration Metadata Option[] - Metadata options for the instance.
- name string
- Name of the launch configuration.
- placement
Tenancy string - Tenancy of the instance.
- root
Block GetDevices Launch Configuration Root Block Device[] - Root Block Device of the instance.
- security
Groups string[] - List of associated Security Group IDS.
- spot
Price string - Price to use for reserving Spot instances.
- user
Data string - User Data of the instance.
- arn str
- Amazon Resource Name of the launch configuration.
- associate_
public_ boolip_ address - Whether a Public IP address is associated with the instance.
- ebs_
block_ Sequence[Getdevices Launch Configuration Ebs Block Device] - 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_ Sequence[Getdevices Launch Configuration Ephemeral Block Device] - The Ephemeral volumes on the instance.
- iam_
instance_ strprofile - The IAM Instance Profile to associate with launched instances.
- id str
- The provider-assigned unique ID for this managed resource.
- image_
id str - EC2 Image ID of the instance.
- instance_
type str - Instance Type of the instance to launch.
- key_
name str - Key Name that should be used for the instance.
- metadata_
options Sequence[GetLaunch Configuration Metadata Option] - Metadata options for the instance.
- name str
- Name of the launch configuration.
- placement_
tenancy str - Tenancy of the instance.
- root_
block_ Sequence[Getdevices Launch Configuration Root Block Device] - Root Block Device of the instance.
- security_
groups Sequence[str] - List of associated Security Group IDS.
- spot_
price str - Price to use for reserving Spot instances.
- user_
data str - User Data of the instance.
- arn String
- Amazon Resource Name of the launch configuration.
- associate
Public BooleanIp Address - Whether a Public IP address is associated with the instance.
- ebs
Block List<Property Map>Devices - EBS Block Devices attached to the instance.
- ebs
Optimized Boolean - Whether the launched EC2 instance will be EBS-optimized.
- enable
Monitoring Boolean - Whether Detailed Monitoring is Enabled.
- ephemeral
Block List<Property Map>Devices - The Ephemeral volumes on the instance.
- iam
Instance StringProfile - The IAM Instance Profile to associate with launched instances.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Id String - EC2 Image ID of the instance.
- instance
Type String - Instance Type of the instance to launch.
- key
Name String - Key Name that should be used for the instance.
- metadata
Options List<Property Map> - Metadata options for the instance.
- name String
- Name of the launch configuration.
- placement
Tenancy String - Tenancy of the instance.
- root
Block List<Property Map>Devices - Root Block Device of the instance.
- security
Groups List<String> - List of associated Security Group IDS.
- spot
Price String - Price to use for reserving Spot instances.
- user
Data String - User Data of the instance.
Supporting Types
GetLaunchConfigurationEbsBlockDevice
- Delete
On boolTermination - Whether the EBS Volume will be deleted on instance termination.
- Device
Name string - Name of the device.
- Encrypted bool
- Whether the volume is Encrypted.
- Iops int
- Provisioned IOPs of the volume.
- No
Device bool - Whether the device in the block device mapping of the AMI is suppressed.
- Snapshot
Id string - Snapshot ID of the mount.
- Throughput int
- Throughput of the volume.
- Volume
Size int - Size of the volume.
- Volume
Type string - Type of the volume.
- Delete
On boolTermination - Whether the EBS Volume will be deleted on instance termination.
- Device
Name string - Name of the device.
- Encrypted bool
- Whether the volume is Encrypted.
- Iops int
- Provisioned IOPs of the volume.
- No
Device bool - Whether the device in the block device mapping of the AMI is suppressed.
- Snapshot
Id string - Snapshot ID of the mount.
- Throughput int
- Throughput of the volume.
- Volume
Size int - Size of the volume.
- Volume
Type string - Type of the volume.
- delete
On BooleanTermination - Whether the EBS Volume will be deleted on instance termination.
- device
Name String - Name of the device.
- encrypted Boolean
- Whether the volume is Encrypted.
- iops Integer
- Provisioned IOPs of the volume.
- no
Device Boolean - Whether the device in the block device mapping of the AMI is suppressed.
- snapshot
Id String - Snapshot ID of the mount.
- throughput Integer
- Throughput of the volume.
- volume
Size Integer - Size of the volume.
- volume
Type String - Type of the volume.
- delete
On booleanTermination - Whether the EBS Volume will be deleted on instance termination.
- device
Name string - Name of the device.
- encrypted boolean
- Whether the volume is Encrypted.
- iops number
- Provisioned IOPs of the volume.
- no
Device boolean - Whether the device in the block device mapping of the AMI is suppressed.
- snapshot
Id string - Snapshot ID of the mount.
- throughput number
- Throughput of the volume.
- volume
Size number - Size of the volume.
- volume
Type string - Type of the volume.
- delete_
on_ booltermination - Whether the EBS Volume will be deleted on instance termination.
- device_
name str - Name of the device.
- encrypted bool
- Whether the volume is Encrypted.
- iops int
- Provisioned IOPs of the volume.
- no_
device bool - Whether the device in the block device mapping of the AMI is suppressed.
- snapshot_
id str - Snapshot ID of the mount.
- throughput int
- Throughput of the volume.
- volume_
size int - Size of the volume.
- volume_
type str - Type of the volume.
- delete
On BooleanTermination - Whether the EBS Volume will be deleted on instance termination.
- device
Name String - Name of the device.
- encrypted Boolean
- Whether the volume is Encrypted.
- iops Number
- Provisioned IOPs of the volume.
- no
Device Boolean - Whether the device in the block device mapping of the AMI is suppressed.
- snapshot
Id String - Snapshot ID of the mount.
- throughput Number
- Throughput of the volume.
- volume
Size Number - Size of the volume.
- volume
Type String - Type of the volume.
GetLaunchConfigurationEphemeralBlockDevice
- Device
Name string - Name of the device.
- Virtual
Name string - Virtual Name of the device.
- Device
Name string - Name of the device.
- Virtual
Name string - Virtual Name of the device.
- device
Name String - Name of the device.
- virtual
Name String - Virtual Name of the device.
- device
Name string - Name of the device.
- virtual
Name string - Virtual Name of the device.
- device_
name str - Name of the device.
- virtual_
name str - Virtual Name of the device.
- device
Name String - Name of the device.
- virtual
Name String - Virtual Name of the device.
GetLaunchConfigurationMetadataOption
- Http
Endpoint string - State of the metadata service:
enabled
,disabled
. - Http
Put intResponse Hop Limit - The desired HTTP PUT response hop limit for instance metadata requests.
- Http
Tokens string - If session tokens are required:
optional
,required
.
- Http
Endpoint string - State of the metadata service:
enabled
,disabled
. - Http
Put intResponse Hop Limit - The desired HTTP PUT response hop limit for instance metadata requests.
- Http
Tokens string - If session tokens are required:
optional
,required
.
- http
Endpoint String - State of the metadata service:
enabled
,disabled
. - http
Put IntegerResponse Hop Limit - The desired HTTP PUT response hop limit for instance metadata requests.
- http
Tokens String - If session tokens are required:
optional
,required
.
- http
Endpoint string - State of the metadata service:
enabled
,disabled
. - http
Put numberResponse Hop Limit - The desired HTTP PUT response hop limit for instance metadata requests.
- http
Tokens string - If session tokens are required:
optional
,required
.
- http_
endpoint str - State of the metadata service:
enabled
,disabled
. - http_
put_ intresponse_ hop_ limit - The desired HTTP PUT response hop limit for instance metadata requests.
- http_
tokens str - If session tokens are required:
optional
,required
.
- http
Endpoint String - State of the metadata service:
enabled
,disabled
. - http
Put NumberResponse Hop Limit - The desired HTTP PUT response hop limit for instance metadata requests.
- http
Tokens String - If session tokens are required:
optional
,required
.
GetLaunchConfigurationRootBlockDevice
- Delete
On boolTermination - Whether the EBS Volume will be deleted on instance termination.
- Encrypted bool
- Whether the volume is Encrypted.
- Iops int
- Provisioned IOPs of the volume.
- Throughput int
- Throughput of the volume.
- Volume
Size int - Size of the volume.
- Volume
Type string - Type of the volume.
- Delete
On boolTermination - Whether the EBS Volume will be deleted on instance termination.
- Encrypted bool
- Whether the volume is Encrypted.
- Iops int
- Provisioned IOPs of the volume.
- Throughput int
- Throughput of the volume.
- Volume
Size int - Size of the volume.
- Volume
Type string - Type of the volume.
- delete
On BooleanTermination - Whether the EBS Volume will be deleted on instance termination.
- encrypted Boolean
- Whether the volume is Encrypted.
- iops Integer
- Provisioned IOPs of the volume.
- throughput Integer
- Throughput of the volume.
- volume
Size Integer - Size of the volume.
- volume
Type String - Type of the volume.
- delete
On booleanTermination - Whether the EBS Volume will be deleted on instance termination.
- encrypted boolean
- Whether the volume is Encrypted.
- iops number
- Provisioned IOPs of the volume.
- throughput number
- Throughput of the volume.
- volume
Size number - Size of the volume.
- volume
Type string - Type of the volume.
- delete_
on_ booltermination - Whether the EBS Volume will be deleted on instance termination.
- encrypted bool
- Whether the volume is Encrypted.
- iops int
- Provisioned IOPs of the volume.
- throughput int
- Throughput of the volume.
- volume_
size int - Size of the volume.
- volume_
type str - Type of the volume.
- delete
On BooleanTermination - Whether the EBS Volume will be deleted on instance termination.
- encrypted Boolean
- Whether the volume is Encrypted.
- iops Number
- Provisioned IOPs of the volume.
- throughput Number
- Throughput of the volume.
- volume
Size Number - Size of the volume.
- volume
Type String - Type of the volume.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi