This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 2315d3011b5dabbbe0e4af82337173e4a63a2a45
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon Jun 5 14:50:26 2023 +0200

    AWS S3 - Added Infra configuration file for creating bucket - Ansible
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 infra/aws-s3/ansible/aws-s3.yaml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/infra/aws-s3/ansible/aws-s3.yaml b/infra/aws-s3/ansible/aws-s3.yaml
new file mode 100644
index 00000000..e4481e52
--- /dev/null
+++ b/infra/aws-s3/ansible/aws-s3.yaml
@@ -0,0 +1,15 @@
+---
+- name: Create AWS S3 Bucket
+  hosts: localhost
+  vars:
+    bucket_name: "s3_example"
+    encryption_type: "AES256"
+    bucket_policy: "generic"
+    s3_acl: "public-read"
+  tasks:
+    - name: Create bucket without JSON policy
+      amazon.aws.s3_bucket:
+        name: "{{ bucket_name }}"
+        state: present
+        encryption: "{{ encryption_type }}"
+      register: created_bucket

Reply via email to