pulumi_wasm_providers_aws_mini::ec2

Module launch_configuration

source
Expand description

Provides a resource to create a new launch configuration, used for autoscaling groups.

!> WARNING: The use of launch configurations is discouraged in favor of launch templates. Read more in the AWS EC2 Documentation.

Note When using aws.ec2.LaunchConfiguration with aws.autoscaling.Group, it is recommended to use the name_prefix (Optional) instead of the name (Optional) attribute.

§Example Usage

resources:
  asConf:
    type: aws:ec2:LaunchConfiguration
    name: as_conf
    properties:
      name: web_config
      imageId: ${ubuntu.id}
      instanceType: t2.micro
variables:
  ubuntu:
    fn::invoke:
      function: aws:ec2:getAmi
      arguments:
        mostRecent: true
        filters:
          - name: name
            values:
              - ubuntu/images/hvm-ssd/ubuntu-trusty-14.04-amd64-server-*
          - name: virtualization-type
            values:
              - hvm
        owners:
          - '099720109477'

§Import

Using pulumi import, import launch configurations using the name. For example:

$ pulumi import aws:ec2/launchConfiguration:LaunchConfiguration as_conf pulumi-lg-123456

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments