AnsiblePilot — Master Ansible Automation

AnsiblePilot is the leading resource for learning Ansible automation, DevOps, and infrastructure as code. Browse over 1,400 tutorials covering Ansible modules, playbooks, roles, collections, and real-world examples. Whether you are a beginner or an experienced engineer, our step-by-step guides help you automate Linux, Windows, cloud, containers, and network infrastructure.

Popular Topics

About Luca Berton

Luca Berton is an Ansible automation expert, author of 8 Ansible books published by Apress and Leanpub including "Ansible for VMware by Examples" and "Ansible for Kubernetes by Example", and creator of the Ansible Pilot YouTube channel. He shares practical automation knowledge through tutorials, books, and video courses to help IT professionals and DevOps engineers master infrastructure automation.

amazon.aws 10.3.1 Release: Bugfixes for S3, AutoScaling, KMS, and CloudFront

By Luca Berton · Published 2024-01-01 · Category: installation

amazon.aws 10.3.1 released with bugfixes for s3_object_info, autoscaling_group, kms_key, and CloudFront. Review fixes and examples.

Introduction

The amazon.aws collection version 10.3.1 has been released with important bugfixes across several modules. This release addresses issues in s3_object_info, autoscaling_group, kms_key, and CloudFront module utilities.

See also: Ansible AWS: Complete Guide to Cloud Automation (2026)

What's Fixed

s3_object_info — Duplicate Dictionary Fix

The s3_object_info module had an issue with duplicate dictionary entries in the returned data. This has been resolved, ensuring clean and accurate object metadata.

- name: Get S3 object information
  amazon.aws.s3_object_info:
    bucket_name: my-bucket
    object_name: data/export.csv
  register: s3_info

- name: Display object metadata ansible.builtin.debug: msg: > Object: {{ s3_info.object_info.object_name }} Size: {{ s3_info.object_info.content_length }} bytes Last modified: {{ s3_info.object_info.last_modified }}

autoscaling_group — Key Assignment Fix

The autoscaling_group module had issues with key assignments that could cause unexpected behavior during Auto Scaling Group updates. The fix improves reliability when managing scaling configurations.

- name: Create Auto Scaling Group
  amazon.aws.autoscaling_group:
    name: web-asg
    launch_template:
      launch_template_name: web-template
      version: "$Latest"
    min_size: 2
    max_size: 10
    desired_capacity: 4
    vpc_zone_identifier:
      - subnet-abc123
      - subnet-def456
    tags:
      - key: Environment
        value: production
        propagate_at_launch: true
  register: asg_result

kms_key — Reliability Improvements

The kms_key module received reliability improvements, making key management operations more consistent.

- name: Create KMS key for encryption
  amazon.aws.kms_key:
    alias: my-app-key
    description: "Encryption key for application data"
    key_usage: ENCRYPT_DECRYPT
    key_spec: SYMMETRIC_DEFAULT
    tags:
      Application: my-app
      Environment: production
  register: kms_result

- name: Display key ARN ansible.builtin.debug: msg: "KMS Key ARN: {{ kms_result.key_arn }}"

CloudFront Utilities — TypeError Fix

A TypeError in CloudFront module utilities has been fixed, improving stability when managing CloudFront distributions and related resources.

- name: Create CloudFront distribution
  amazon.aws.cloudfront_distribution:
    state: present
    origins:
      - id: myS3Origin
        domain_name: my-bucket.s3.amazonaws.com
        s3_origin_config:
          origin_access_identity: ""
    default_cache_behavior:
      target_origin_id: myS3Origin
      viewer_protocol_policy: redirect-to-https
      allowed_methods:
        items:
          - GET
          - HEAD
      forwarded_values:
        query_string: false
    comment: "My application CDN"
    enabled: true

How to Update

# Update to the latest version
ansible-galaxy collection install amazon.aws:10.3.1 --force

# Verify the installed version ansible-galaxy collection list | grep amazon.aws

Update requirements.yml

# requirements.yml
collections:
  - name: amazon.aws
    version: ">=10.3.1"

See also: Ansible for AWS: Complete Guide to Cloud Automation with EC2, S3, RDS, and More

FAQ

Should I update immediately?

If you're using any of the affected modules (s3_object_info, autoscaling_group, kms_key, or CloudFront), updating is recommended to benefit from the bugfixes.

Are there breaking changes?

No. Version 10.3.1 is a patch release containing only bugfixes. It is backward compatible with 10.3.0.

What Python dependencies are required?

The amazon.aws collection requires boto3 and botocore. Ensure they are up to date:

pip install --upgrade boto3 botocore

Conclusion

The amazon.aws 10.3.1 release addresses several reliability issues across S3, Auto Scaling, KMS, and CloudFront modules. Update your collection to benefit from these fixes, especially if you've encountered unexpected behavior with these modules.

See also: Ansible S3 Module: Upload, Download, Manage AWS S3 Objects (Complete Guide)

Related Articles

Ansible on AWS: Automate EC2, S3, IAM Complete GuideAnsible AWS Complete GuideAnsible Cloud Automation: EC2, S3, RDS, VPC Complete GuideAnsible Dynamic Inventory: Complete Guide AWS, Azure, GCP

Category: installation

Browse all Ansible tutorials · AnsiblePilot Home