今回は S3 簡単なやつ
使うモジュール
バケットの作成
- name: Create a bucket s3_bucket: name: "{{ project }}-dbbackup" state: present region: ap-northeast-1
ライフサイクルの追加
- name: Add a lifecycle s3_lifecycle: name: "{{ project }}-dbbackup" storage_class: onezone_ia transition_days: 31 state: present status: enabled