PARALLAX

autoscaling_launch_config

Create or delete AWS Autoscaling Launch Configurations

Collection: community.aws

Full Name: community.aws.autoscaling_launch_config

Synopsis

Create or delete AWS Autoscaling Launch Configurations

Parameters

NameTypeRequiredDefaultDescription
access_keystr
assign_public_ipbool
aws_ca_bundlepath
aws_configdict
classic_link_vpc_idstr
classic_link_vpc_security_groupslist
debug_botocore_endpoint_logsboolfalse
ebs_optimizedboolfalse
endpoint_urlstr
image_idstr
instance_idstr
instance_monitoringboolfalse
instance_profile_namestr
instance_typestr
kernel_idstr
key_namestr
namestryes
placement_tenancystr
profilestr
ramdisk_idstr
regionstr
secret_keystr
security_groupslist[]
session_tokenstr
spot_pricefloat
statestrpresent
user_datastr
user_data_pathpath
validate_certsbooltrue
volumeslist
vpc_idstr

Example

yaml
- name: create a launch configuration with an encrypted volume
  community.aws.autoscaling_launch_config:
    name: special
    image_id: ami-XXX
    key_name: default
    security_groups:
        - 'group'
        - 'group2'
    instance_type: t1.micro
    volumes:
        - device_name: /dev/sda1
          volume_size: 100
          volume_type: io1
          iops: 3000
          delete_on_termination: true
          encrypted: true
        - device_name: /dev/sdb
          ephemeral: ephemeral0

- name: create a launch configuration using a running instance id as a basis
  community.aws.autoscaling_launch_config:
    name: special
    instance_id: i-00a48b207ec59e948
    key_name: default
    security_groups:
        - 'launch-wizard-2'
    volumes:
        - device_name: /dev/sda1
          volume_size: 120
          volume_type: io1
          iops: 3000
          delete_on_termination: true

- name: create a launch configuration to omit the /dev/sdf EBS device that is included in the AMI image
  community.aws.autoscaling_launch_config:
    name: special
    image_id: ami-XXX
    key_name: default
    security_groups:
        - 'group'
        - 'group2'
    instance_type: t1.micro
    volumes:
        - device_name: /dev/sdf
          no_device: true

- name: Create launch configuration
  community.aws.autoscaling_launch_config:
    name: lc1
    image_id: ami-xxxx
    assign_public_ip: true
    instance_type: t2.medium
    key_name: my-key
    security_groups:
        - 'sg-xxxx'
    volumes: "{{ volumes }}"
  register: lc_info
Search
    ↑ ↓ move↵ openesc close