README.md 5.3 KB
Newer Older
S
Sandra McCann 已提交
1 2 3
# Amazon AWS Collection
The Ansible Amazon AWS collection includes a variety of Ansible content to help automate the management of AWS instances. This collection is maintained by the Ansible cloud team.

M
Milan Zink 已提交
4 5
AWS related modules and plugins supported by the Ansible community are in the [community.aws](https://github.com/ansible-collections/community.aws/) collection.

J
Jill R 已提交
6 7
## Ansible version compatibility

8
Tested with the Ansible Core >= 2.12.0 versions, and the current development version of Ansible. Ansible Core versions before 2.12.0 are not supported.
J
Jill R 已提交
9

10
Use amazon.aws 4.x.y if you are using Ansible 2.9 or Ansible Core 2.10.
J
Jill R 已提交
11

J
Jill R 已提交
12 13
## Python version compatibility

14 15 16 17 18 19
This collection depends on the AWS SDK for Python (Boto3 and Botocore).  Due to the
[AWS SDK Python Support Policy](https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/)
this collection requires Python 3.6 or greater.

Amazon have also announced the end of support for
[Python less than 3.7](https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/).
20 21 22
As such support for Python less than 3.7 by this collection has been deprecated and will be removed in release 7.0.0.
Additionally, support for Python less than 3.8 is expected to be removed in a release after 2024-12-01 based on currently
available schedules.
23

24 25
## AWS SDK version compatibility

26 27
Starting with the 2.0.0 releases of amazon.aws and community.aws, it is generally the collection's policy to support the versions of `botocore` and `boto3` that were released 12 months prior to the most recent major collection release, following semantic versioning (for example, 2.0.0, 3.0.0).

28
Version 6.0.0 of this collection supports `boto3 >= 1.22.0` and `botocore >= 1.25.0`
J
Jill R 已提交
29

30
All support for the original AWS SDK `boto` was removed in release 4.0.0.
31

S
Sandra McCann 已提交
32
## Included content
J
Jill R 已提交
33
<!--start collection content-->
34
See the complete list of collection content in the [Plugin Index](https://ansible-collections.github.io/amazon.aws/branch/main/collections/amazon/aws/index.html#plugin-index).
J
Jill R 已提交
35

J
Jill R 已提交
36
<!--end collection content-->
S
Sandra McCann 已提交
37 38 39 40 41 42 43 44 45 46 47 48 49 50

## Installing this collection

You can install the AWS collection with the Ansible Galaxy CLI:

    ansible-galaxy collection install amazon.aws

You can also include it in a `requirements.yml` file and install it with `ansible-galaxy collection install -r requirements.yml`, using the format:

```yaml
---
collections:
  - name: amazon.aws
```
51

52 53 54 55 56 57 58 59 60
A specific version of the collection can be installed by using the `version` keyword in the `requirements.yml` file:

```yaml
---
collections:
  - name: amazon.aws
    version: 3.1.1
```

61 62 63
The python module dependencies are not installed by `ansible-galaxy`.  They can
be manually installed using pip:

64
    pip install -r requirements.txt
65 66 67

or:

68
    pip install boto3 botocore
69

S
Sandra McCann 已提交
70 71
## Using this collection

72
You can either call modules by their Fully Qualified Collection Name (FQCN), such as `amazon.aws.ec2_instance`, or you can call modules by their short name if you list the `amazon.aws` collection in the playbook's `collections` keyword:
S
Sandra McCann 已提交
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91

```yaml
---
  - name: Setup an instance for testing
    amazon.aws.ec2_instance:
      name: '{{ resource_prefix }}'
      instance_type: t2.nano
      image_id: "{{ (amis.images | sort(attribute='creation_date') | last).image_id }}"
      wait: yes
      volumes:
        - device_name: /dev/xvda
          ebs:
            volume_size: 8
            delete_on_termination: true
    register: instance
```

### See Also:

A
Akira Yokochi 已提交
92
* [Amazon Web Services Guide](https://docs.ansible.com/ansible/latest/collections/amazon/aws/docsite/guide_aws.html)
S
Sandra McCann 已提交
93 94 95 96
* [Ansible Using collections](https://docs.ansible.com/ansible/latest/user_guide/collections_using.html) for more details.

## Contributing to this collection

97
We welcome community contributions to this collection. If you find problems, please open an issue or create a PR against the [Amazon AWS collection repository](https://github.com/ansible-collections/amazon.aws).
98
See [CONTRIBUTING.md](https://github.com/ansible-collections/amazon.aws/blob/main/CONTRIBUTING.md) for more details.
S
Sandra McCann 已提交
99

100 101
This collection is tested using GitHub Actions. To know more on testing, refer to [CI.md](https://github.com/ansible-collections/amazon.aws/blob/main/CI,md).

S
Sandra McCann 已提交
102 103
You can also join us on:

104
- Libera.Chat IRC - the ``#ansible-aws`` [irc.libera.chat](https://libera.chat/) channel
S
Sandra McCann 已提交
105 106

## Release notes
107 108

See the [rendered changelog](https://ansible-collections.github.io/amazon.aws/branch/main/collections/amazon/aws/docsite/CHANGELOG.html) or the [raw generated changelog](https://github.com/ansible-collections/amazon.aws/tree/main/CHANGELOG.rst).
S
Sandra McCann 已提交
109 110 111 112 113 114 115 116 117 118

## Roadmap

<!-- Optional. Include the roadmap for this collection, and the proposed release/versioning strategy so users can anticipate the upgrade/update cycle. -->

## More information

- [Ansible Collection overview](https://github.com/ansible-collections/overview)
- [Ansible User guide](https://docs.ansible.com/ansible/latest/user_guide/index.html)
- [Ansible Developer guide](https://docs.ansible.com/ansible/latest/dev_guide/index.html)
119
- [Ansible Collection Developer Guide](https://docs.ansible.com/ansible/devel/dev_guide/developing_collections.html)
S
Sandra McCann 已提交
120 121 122 123 124 125
- [Ansible Community code of conduct](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html)

## Licensing

GNU General Public License v3.0 or later.

J
Jill R 已提交
126
See [COPYING](https://www.gnu.org/licenses/gpl-3.0.txt) to see the full text.