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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| assign_public_ip | bool | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| classic_link_vpc_id | str | |||
| classic_link_vpc_security_groups | list | |||
| debug_botocore_endpoint_logs | bool | false | ||
| ebs_optimized | bool | false | ||
| endpoint_url | str | |||
| image_id | str | |||
| instance_id | str | |||
| instance_monitoring | bool | false | ||
| instance_profile_name | str | |||
| instance_type | str | |||
| kernel_id | str | |||
| key_name | str | |||
| name | str | yes | ||
| placement_tenancy | str | |||
| profile | str | |||
| ramdisk_id | str | |||
| region | str | |||
| secret_key | str | |||
| security_groups | list | [] | ||
| session_token | str | |||
| spot_price | float | |||
| state | str | present | ||
| user_data | str | |||
| user_data_path | path | |||
| validate_certs | bool | true | ||
| volumes | list | |||
| vpc_id | str |
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