updated to use shared region docs from ec2

reviewable/pr18780/r1
Brian Coca 9 years ago
parent 8d3122169d
commit 205115ea1f

@ -71,13 +71,9 @@ options:
- Write throughput capacity (units) to provision. - Write throughput capacity (units) to provision.
required: false required: false
default: 1 default: 1
region: extends_documentation_fragment:
description: - aws
- The AWS region to use. If not specified then the value of the EC2_REGION environment variable, if any, is used. - ec2
required: false
aliases: ['aws_region', 'ec2_region']
extends_documentation_fragment: aws
""" """
EXAMPLES = ''' EXAMPLES = '''

@ -26,11 +26,6 @@ options:
description: description:
- the source region that AMI should be copied from - the source region that AMI should be copied from
required: true required: true
region:
description:
- the destination region that AMI should be copied to
required: true
aliases: ['aws_region', 'ec2_region', 'dest_region']
source_image_id: source_image_id:
description: description:
- the id of the image in source region that should be copied - the id of the image in source region that should be copied
@ -63,7 +58,9 @@ options:
default: null default: null
author: Amir Moulavi <amir.moulavi@gmail.com> author: Amir Moulavi <amir.moulavi@gmail.com>
extends_documentation_fragment: aws extends_documentation_fragment:
- aws
- ec2
''' '''
EXAMPLES = ''' EXAMPLES = '''

@ -28,7 +28,9 @@ options:
required: false required: false
default: null default: null
aliases: ['elb_ids', 'ec2_elbs'] aliases: ['elb_ids', 'ec2_elbs']
extends_documentation_fragment: aws extends_documentation_fragment:
- aws
- ec2
''' '''
EXAMPLES = ''' EXAMPLES = '''

@ -75,7 +75,9 @@ options:
description: description:
- By default, interfaces perform source/destination checks. NAT instances however need this check to be disabled. You can only specify this flag when the interface is being modified, not on creation. - By default, interfaces perform source/destination checks. NAT instances however need this check to be disabled. You can only specify this flag when the interface is being modified, not on creation.
required: false required: false
extends_documentation_fragment: aws extends_documentation_fragment:
- aws
- ec2
''' '''
EXAMPLES = ''' EXAMPLES = '''

@ -27,7 +27,9 @@ options:
- The ID of the ENI. Pass this option to gather facts about a particular ENI, otherwise, all ENIs are returned. - The ID of the ENI. Pass this option to gather facts about a particular ENI, otherwise, all ENIs are returned.
required: false required: false
default: null default: null
extends_documentation_fragment: aws extends_documentation_fragment:
- aws
- ec2
''' '''
EXAMPLES = ''' EXAMPLES = '''
@ -129,7 +131,4 @@ def main():
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
from ansible.module_utils.ec2 import * from ansible.module_utils.ec2 import *
# this is magic, see lib/ansible/module_common.py
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
main() main()

@ -27,19 +27,15 @@ options:
- The VPC ID for the VPC in which to manage the Internet Gateway. - The VPC ID for the VPC in which to manage the Internet Gateway.
required: true required: true
default: null default: null
region:
description:
- The AWS region to use. If not specified then the value of the EC2_REGION environment variable, if any, is used. See U(http://docs.aws.amazon.com/general/latest/gr/rande.html#ec2_region)
required: false
default: null
aliases: [ 'aws_region', 'ec2_region' ]
state: state:
description: description:
- Create or terminate the IGW - Create or terminate the IGW
required: false required: false
default: present default: present
choices: [ 'present', 'absent' ] choices: [ 'present', 'absent' ]
extends_documentation_fragment: aws extends_documentation_fragment:
- aws
- ec2
''' '''
EXAMPLES = ''' EXAMPLES = '''

@ -61,8 +61,9 @@ options:
description: description:
- "VPC ID of the VPC in which to create the route table." - "VPC ID of the VPC in which to create the route table."
required: true required: true
extends_documentation_fragment:
extends_documentation_fragment: aws - aws
- ec2
''' '''
EXAMPLES = ''' EXAMPLES = '''

@ -27,14 +27,9 @@ options:
- A dict of filters to apply. Each dict item consists of a filter key and a filter value. See U(http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeRouteTables.html) for possible filters. - A dict of filters to apply. Each dict item consists of a filter key and a filter value. See U(http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeRouteTables.html) for possible filters.
required: false required: false
default: null default: null
region: extends_documentation_fragment:
description: - aws
- The AWS region to use. If not specified then the value of the EC2_REGION environment variable, if any, is used. See U(http://docs.aws.amazon.com/general/latest/gr/rande.html#ec2_region) - ec2
required: false
default: null
aliases: [ 'aws_region', 'ec2_region' ]
extends_documentation_fragment: aws
''' '''
EXAMPLES = ''' EXAMPLES = '''

@ -49,8 +49,9 @@ options:
- "VPC ID of the VPC in which to create the subnet." - "VPC ID of the VPC in which to create the subnet."
required: false required: false
default: null default: null
extends_documentation_fragment:
extends_documentation_fragment: aws - aws
- ec2
''' '''
EXAMPLES = ''' EXAMPLES = '''

@ -27,14 +27,9 @@ options:
- A dict of filters to apply. Each dict item consists of a filter key and a filter value. See U(http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSubnets.html) for possible filters. - A dict of filters to apply. Each dict item consists of a filter key and a filter value. See U(http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSubnets.html) for possible filters.
required: false required: false
default: null default: null
region: extends_documentation_fragment:
description: - aws
- The AWS region to use. If not specified then the value of the EC2_REGION environment variable, if any, is used. See U(http://docs.aws.amazon.com/general/latest/gr/rande.html#ec2_region) - ec2
required: false
default: null
aliases: [ 'aws_region', 'ec2_region' ]
extends_documentation_fragment: aws
''' '''
EXAMPLES = ''' EXAMPLES = '''

@ -36,12 +36,6 @@ options:
- The passphrase for the instance key pair. The key must use DES or 3DES encryption for this module to decrypt it. You can use openssl to convert your password protected keys if they do not use DES or 3DES. ex) openssl rsa -in current_key -out new_key -des3. - The passphrase for the instance key pair. The key must use DES or 3DES encryption for this module to decrypt it. You can use openssl to convert your password protected keys if they do not use DES or 3DES. ex) openssl rsa -in current_key -out new_key -des3.
required: false required: false
default: null default: null
region:
description:
- The AWS region to use. Must be specified if ec2_url is not used. If not specified then the value of the EC2_REGION environment variable, if any, is used.
required: false
default: null
aliases: [ 'aws_region', 'ec2_region' ]
wait: wait:
version_added: "2.0" version_added: "2.0"
description: description:
@ -56,7 +50,9 @@ options:
required: false required: false
default: 120 default: 120
extends_documentation_fragment: aws extends_documentation_fragment:
- aws
- ec2
''' '''
EXAMPLES = ''' EXAMPLES = '''

@ -44,6 +44,8 @@ options:
description: description:
- The number of times to wait for the cluster to have an instance - The number of times to wait for the cluster to have an instance
required: false required: false
extends_documentation_fragment:
- ec2
''' '''
EXAMPLES = ''' EXAMPLES = '''

@ -56,6 +56,8 @@ options:
description: description:
- A value showing who or what started the task (for informational purposes) - A value showing who or what started the task (for informational purposes)
required: False required: False
extends_documentation_fragment:
- ec2
''' '''
EXAMPLES = ''' EXAMPLES = '''

@ -52,7 +52,8 @@ options:
- A list of names of volumes to be attached - A list of names of volumes to be attached
required: False required: False
type: list of name type: list of name
extends_documentation_fragment:
- ec2
''' '''
EXAMPLES = ''' EXAMPLES = '''

@ -89,7 +89,9 @@ options:
default: 3 default: 3
choices: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] choices: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
author: "zimbatm (@zimbatm)" author: "zimbatm (@zimbatm)"
extends_documentation_fragment: aws extends_documentation_fragment:
- aws
- ec2
''' '''
EXAMPLES = ''' EXAMPLES = '''

@ -46,7 +46,9 @@ options:
- Comment associated with the zone - Comment associated with the zone
required: false required: false
default: '' default: ''
extends_documentation_fragment: aws extends_documentation_fragment:
- aws
- ec2
author: "Christopher Troup (@minichate)" author: "Christopher Troup (@minichate)"
''' '''

@ -38,11 +38,6 @@ options:
- The JSON policy as a string. - The JSON policy as a string.
required: false required: false
default: null default: null
region:
description:
- "AWS region to create the bucket in. If not set then the value of the AWS_REGION and EC2_REGION environment variables are checked, followed by the aws_region and ec2_region settings in the Boto config file. If none of those are set the region defaults to the S3 Location: US Standard."
required: false
default: null
s3_url: s3_url:
description: description:
- S3 URL endpoint for usage with Eucalypus, fakes3, etc. Otherwise assumes AWS - S3 URL endpoint for usage with Eucalypus, fakes3, etc. Otherwise assumes AWS
@ -71,8 +66,9 @@ options:
required: false required: false
default: no default: no
choices: [ 'yes', 'no' ] choices: [ 'yes', 'no' ]
extends_documentation_fragment:
extends_documentation_fragment: aws - aws
- ec2
''' '''
EXAMPLES = ''' EXAMPLES = '''

@ -46,11 +46,6 @@ options:
- "Prefix identifying one or more objects to which the rule applies. If no prefix is specified, the rule will apply to the whole bucket." - "Prefix identifying one or more objects to which the rule applies. If no prefix is specified, the rule will apply to the whole bucket."
required: false required: false
default: null default: null
region:
description:
- "AWS region to create the bucket in. If not set then the value of the AWS_REGION and EC2_REGION environment variables are checked, followed by the aws_region and ec2_region settings in the Boto config file. If none of those are set the region defaults to the S3 Location: US Standard."
required: false
default: null
rule_id: rule_id:
description: description:
- "Unique identifier for the rule. The value cannot be longer than 255 characters. A unique value for the rule will be generated if no value is provided." - "Unique identifier for the rule. The value cannot be longer than 255 characters. A unique value for the rule will be generated if no value is provided."
@ -84,8 +79,9 @@ options:
- "Indicates when, in days, an object transitions to a different storage class. If transition_date is not specified, this parameter is required." - "Indicates when, in days, an object transitions to a different storage class. If transition_date is not specified, this parameter is required."
required: false required: false
default: null default: null
extends_documentation_fragment:
extends_documentation_fragment: aws - aws
- ec2
''' '''
EXAMPLES = ''' EXAMPLES = '''

@ -26,11 +26,6 @@ options:
description: description:
- "Name of the s3 bucket." - "Name of the s3 bucket."
required: true required: true
region:
description:
- "AWS region to create the bucket in. If not set then the value of the AWS_REGION and EC2_REGION environment variables are checked, followed by the aws_region and ec2_region settings in the Boto config file. If none of those are set the region defaults to the S3 Location: US Standard."
required: false
default: null
state: state:
description: description:
- "Enable or disable logging." - "Enable or disable logging."
@ -47,8 +42,9 @@ options:
- "The prefix that should be prepended to the generated log files written to the target_bucket." - "The prefix that should be prepended to the generated log files written to the target_bucket."
required: false required: false
default: "" default: ""
extends_documentation_fragment:
extends_documentation_fragment: aws - aws
- ec2
''' '''
EXAMPLES = ''' EXAMPLES = '''

@ -61,13 +61,9 @@ options:
- The receive message wait time in seconds. - The receive message wait time in seconds.
required: false required: false
default: null default: null
region: extends_documentation_fragment:
description: - aws
- The AWS region to use. If not specified then the value of the EC2_REGION environment variable, if any, is used. - ec2
required: false
aliases: ['aws_region', 'ec2_region']
extends_documentation_fragment: aws
""" """
EXAMPLES = ''' EXAMPLES = '''

@ -58,7 +58,9 @@ options:
default: null default: null
notes: notes:
- In order to use the assumed role in a following playbook task you must pass the access_key, access_secret and access_token - In order to use the assumed role in a following playbook task you must pass the access_key, access_secret and access_token
extends_documentation_fragment: aws extends_documentation_fragment:
- aws
- ec2
''' '''
EXAMPLES = ''' EXAMPLES = '''

Loading…
Cancel
Save