Commit 1064aa69 by Toshio Kuratomi

Update documentation for s3 use of region

parent efbe655b
...@@ -89,6 +89,12 @@ options: ...@@ -89,6 +89,12 @@ options:
required: false required: false
default: null default: null
version_added: "1.6" version_added: "1.6"
region:
description:
- AWS region to create the bucket in. If not set then the value of the EC2_REGION and AWS_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. Prior to ansible 1.8 this parameter could be specified but did nothing.
required: false
default: null
version_added: "1.8"
requirements: [ "boto" ] requirements: [ "boto" ]
author: Lester Wade, Ralph Tice author: Lester Wade, Ralph Tice
...@@ -117,6 +123,8 @@ EXAMPLES = ''' ...@@ -117,6 +123,8 @@ EXAMPLES = '''
- s3: bucket=mybucket mode=create - s3: bucket=mybucket mode=create
# Create a bucket with key as directory # Create a bucket with key as directory
- s3: bucket=mybucket object=/my/directory/path mode=create - s3: bucket=mybucket object=/my/directory/path mode=create
# Create an empty bucket in the EU region
- s3: bucket=mybucket mode=create region=eu-west-1
# Delete a bucket and all contents # Delete a bucket and all contents
- s3: bucket=mybucket mode=delete - s3: bucket=mybucket mode=delete
''' '''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment