Parameter |
Choices/Defaults |
Comments |
architecture
(added in 2.3) |
|
The target architecture of the image to register
|
aws_access_key
|
|
AWS access key. If not set then the value of the AWS_ACCESS_KEY_ID, AWS_ACCESS_KEY or EC2_ACCESS_KEY environment variable is used.
aliases: ec2_access_key, access_key
|
aws_secret_key
|
|
AWS secret key. If not set then the value of the AWS_SECRET_ACCESS_KEY, AWS_SECRET_KEY, or EC2_SECRET_KEY environment variable is used.
aliases: ec2_secret_key, secret_key
|
billing_products
(added in 2.5) |
|
A list of valid billing codes. To be used with valid accounts by aws marketplace vendors.
|
delete_snapshot
bool |
|
Delete snapshots when deregistering the AMI.
|
description
|
|
Human-readable string describing the contents and purpose of the AMI.
|
device_mapping
(added in 2.0) |
|
List of device hashes/dictionaries with custom configurations (same block-device-mapping parameters).
Valid properties include: device_name, volume_type, size/volume_size (in GB), delete_on_termination (boolean), no_device (boolean), snapshot_id, iops (for io1 volume_type), encrypted
|
ec2_url
|
|
Url to use to connect to EC2 or your Eucalyptus cloud (by default the module will use EC2 endpoints). Ignored for modules where region is required. Must be specified for all other modules if region is not used. If not set then the value of the EC2_URL environment variable, if any, is used.
|
enhanced_networking
(added in 2.5) |
|
A boolean representing whether enhanced networking with ENA is enabled or not.
|
image_id
|
|
Image ID to be deregistered.
|
image_location
(added in 2.5) |
|
The s3 location of an image to use for the AMI.
|
instance_id
|
|
Instance ID to create the AMI from.
|
kernel_id
(added in 2.3) |
|
The target kernel id of the image to register.
|
launch_permissions
(added in 2.0) |
|
Users and groups that should be able to launch the AMI. Expects dictionary with a key of user_ids and/or group_names. user_ids should be a list of account ids. group_name should be a list of groups, "all" is the only acceptable value currently.
You must pass all desired launch permissions if you wish to modify existing launch permissions (passing just groups will remove all users)
|
name
|
|
The name of the new AMI.
|
no_reboot
bool |
|
Flag indicating that the bundling process should not attempt to shutdown the instance before bundling. If this flag is True, the responsibility of maintaining file system integrity is left to the owner of the instance.
|
profile
(added in 1.6) |
|
Uses a boto profile. Only works with boto >= 2.24.0.
|
purge_tags
(added in 2.5) |
Default:
"no"
|
Whether to remove existing tags that aren't passed in the tags parameter
|
ramdisk_id
(added in 2.5) |
|
The ID of the RAM disk.
|
region
|
|
aliases: aws_region, ec2_region
|
root_device_name
(added in 2.3) |
|
The root device name of the image to register.
|
security_token
(added in 1.6) |
|
AWS STS security token. If not set then the value of the AWS_SECURITY_TOKEN or EC2_SECURITY_TOKEN environment variable is used.
aliases: access_token
|
sriov_net_support
(added in 2.5) |
|
Set to simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the AMI and any instances that you launch from the AMI.
|
state
|
Choices:
- absent
present ←
|
Register or deregister an AMI.
|
tags
(added in 2.0) |
|
A dictionary of tags to add to the new image; '{"key":"value"}' and '{"key":"value","key":"value"}'
|
validate_certs
bool
(added in 1.5) |
|
When set to "no", SSL certificates will not be validated for boto versions >= 2.6.0.
|
virtualization_type
(added in 2.3) |
|
The virtualization type of the image to register.
|
wait
bool |
|
Wait for the AMI to be in state 'available' before returning.
|
wait_timeout
|
Default:
900
|
How long before wait gives up, in seconds.
|