GetLaunchConfiguration
Provides information about a Launch Configuration.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var ubuntu = Output.Create(Aws.Ec2.GetLaunchConfiguration.InvokeAsync(new Aws.Ec2.GetLaunchConfigurationArgs
{
Name = "test-launch-config",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v2/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
})
}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",
}, { async: true }));Using GetLaunchConfiguration
function getLaunchConfiguration(args: GetLaunchConfigurationArgs, opts?: InvokeOptions): Promise<GetLaunchConfigurationResult>function get_launch_configuration(name=None, opts=None)func LookupLaunchConfiguration(ctx *Context, args *LookupLaunchConfigurationArgs, opts ...InvokeOption) (*LookupLaunchConfigurationResult, error)Note: This function is named
LookupLaunchConfigurationin the Go SDK.
public static class GetLaunchConfiguration {
public static Task<GetLaunchConfigurationResult> InvokeAsync(GetLaunchConfigurationArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetLaunchConfiguration Result
The following output properties are available:
- Arn string
The 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> 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 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 The EC2 Image ID of the instance.
- Instance
Type string The Instance Type of the instance to launch.
- Key
Name string The Key Name that should be used for the instance.
- Name string
The Name of the launch configuration.
- Placement
Tenancy string The Tenancy of the instance.
- Root
Block List<GetDevices Launch Configuration Root Block Device> The Root Block Device of the instance.
- Security
Groups List<string> A list of associated Security Group IDS.
- Spot
Price string The Price to use for reserving Spot instances.
- User
Data string The User Data of the instance.
- Vpc
Classic stringLink Id The ID of a ClassicLink-enabled VPC.
- Vpc
Classic List<string>Link Security Groups The IDs of one or more Security Groups for the specified ClassicLink-enabled VPC.
- Arn string
The 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 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 []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 The EC2 Image ID of the instance.
- Instance
Type string The Instance Type of the instance to launch.
- Key
Name string The Key Name that should be used for the instance.
- Name string
The Name of the launch configuration.
- Placement
Tenancy string The Tenancy of the instance.
- Root
Block []GetDevices Launch Configuration Root Block Device The Root Block Device of the instance.
- Security
Groups []string A list of associated Security Group IDS.
- Spot
Price string The Price to use for reserving Spot instances.
- User
Data string The User Data of the instance.
- Vpc
Classic stringLink Id The ID of a ClassicLink-enabled VPC.
- Vpc
Classic []stringLink Security Groups The IDs of one or more Security Groups for the specified ClassicLink-enabled VPC.
- arn string
The 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[] The 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 The EC2 Image ID of the instance.
- instance
Type string The Instance Type of the instance to launch.
- key
Name string The Key Name that should be used for the instance.
- name string
The Name of the launch configuration.
- placement
Tenancy string The Tenancy of the instance.
- root
Block GetDevices Launch Configuration Root Block Device[] The Root Block Device of the instance.
- security
Groups string[] A list of associated Security Group IDS.
- spot
Price string The Price to use for reserving Spot instances.
- user
Data string The User Data of the instance.
- vpc
Classic stringLink Id The ID of a ClassicLink-enabled VPC.
- vpc
Classic string[]Link Security Groups 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_ boolip_ address Whether a Public IP address is associated with the instance.
- ebs_
block_ List[Getdevices Launch Configuration Ebs Block Device] 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_ List[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 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.
- name str
The Name of the launch configuration.
- placement_
tenancy str The Tenancy of the instance.
- root_
block_ List[Getdevices Launch Configuration Root Block Device] The Root Block Device of the instance.
- security_
groups List[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_ strlink_ id The ID of a ClassicLink-enabled VPC.
- vpc_
classic_ List[str]link_ security_ groups The IDs of one or more Security Groups for the specified ClassicLink-enabled VPC.
Supporting Types
GetLaunchConfigurationEbsBlockDevice
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Delete
On boolTermination Whether the EBS Volume will be deleted on instance termination.
- Device
Name string The Name of the device.
- Encrypted bool
Whether the volume is Encrypted.
- Iops int
The provisioned IOPs of the volume.
- Snapshot
Id string The Snapshot ID of the mount.
- Volume
Size int The Size of the volume.
- Volume
Type string The Type of the volume.
- Delete
On boolTermination Whether the EBS Volume will be deleted on instance termination.
- Device
Name string The Name of the device.
- Encrypted bool
Whether the volume is Encrypted.
- Iops int
The provisioned IOPs of the volume.
- Snapshot
Id string The Snapshot ID of the mount.
- Volume
Size int The Size of the volume.
- Volume
Type string The Type of the volume.
- delete
On booleanTermination Whether the EBS Volume will be deleted on instance termination.
- device
Name string The Name of the device.
- encrypted boolean
Whether the volume is Encrypted.
- iops number
The provisioned IOPs of the volume.
- snapshot
Id string The Snapshot ID of the mount.
- volume
Size number The Size of the volume.
- volume
Type string The Type of the volume.
- delete
On boolTermination 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 float
The provisioned IOPs of the volume.
- snapshot_
id str The Snapshot ID of the mount.
- volume
Type str The Type of the volume.
- volume_
size float The Size of the volume.
GetLaunchConfigurationEphemeralBlockDevice
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Device
Name string The Name of the device.
- Virtual
Name string The Virtual Name of the device.
- Device
Name string The Name of the device.
- Virtual
Name string The Virtual Name of the device.
- device
Name string The Name of the device.
- virtual
Name string The Virtual Name of the device.
- device_
name str The Name of the device.
- virtual
Name str The Virtual Name of the device.
GetLaunchConfigurationRootBlockDevice
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Delete
On boolTermination 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.
- Volume
Size int The Size of the volume.
- Volume
Type string The 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
The provisioned IOPs of the volume.
- Volume
Size int The Size of the volume.
- Volume
Type string The 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
The provisioned IOPs of the volume.
- volume
Size number The Size of the volume.
- volume
Type string The 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 float
The provisioned IOPs of the volume.
- volume
Type str The Type of the volume.
- volume_
size float The Size of the volume.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.