Skip to content

[Feat] Add the possibility of advanced settings for S3 bucket #1261

Description

@vitabaks

Problem

The current bucket management capabilities are basic:

aws_s3_bucket_create: true # if 'cloud_provider=aws'
aws_s3_bucket_name: "{{ patroni_cluster_name }}-backup" # Name of the S3 bucket. Bucket naming rules: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html
aws_s3_bucket_region: "{{ server_location }}" # The AWS region to use.
aws_s3_bucket_object_lock_enabled: false # Whether S3 Object Lock to be enabled.
aws_s3_bucket_encryption: "AES256" # Describes the default server-side encryption to apply to new objects in the bucket. Choices: "AES256", "aws:kms"
aws_s3_bucket_block_public_acls: true # Sets BlockPublicAcls value.
aws_s3_bucket_ignore_public_acls: true # Sets IgnorePublicAcls value.
aws_s3_bucket_absent: false # Allow to delete S3 bucket when deleting a cluster servers using the 'state=absent' variable.

Description

Add the ability to specify additional options such as:

  • accelerate_enabled
  • object_lock_default_retention
  • object_ownership
  • policy
  • profile
  • versioning

Importance

nice to have

Proposed implementation

Doc: https://docs.ansible.com/ansible/latest/collections/amazon/aws/s3_bucket_module.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    automationAutomation functionality using AnsibleenhancementImprovement of the current functionality

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions