You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/06/06 11:55:40 UTC

[camel-kamelets] branch infra-1504 created (now 397dd5ea)

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

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


      at 397dd5ea AWS S3 - Added Infra configuration file for creating bucket - Docs

This branch includes the following new commits:

     new 76932012 AWS S3 - Added Infra configuration file for creating bucket - Ansible
     new 2cbb0a10 AWS S3 - Added Infra configuration file for creating bucket - Terraform
     new 78d2bc01 AWS S3 - Added Infra configuration file for creating bucket - Cloudformation
     new 05d43ebe AWS S3 - Added Infra configuration file for creating bucket - Docs
     new 397dd5ea AWS S3 - Added Infra configuration file for creating bucket - Docs

The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel-kamelets] 01/05: AWS S3 - Added Infra configuration file for creating bucket - Ansible

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 76932012009e915071c1f72064c2e68a44fe34bc
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jun 5 14:50:26 2023 +0200

    AWS S3 - Added Infra configuration file for creating bucket - Ansible
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 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


[camel-kamelets] 04/05: AWS S3 - Added Infra configuration file for creating bucket - Docs

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 05d43ebe1af5124abc7b650282b8c11adc8e8f2a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jun 6 13:11:54 2023 +0200

    AWS S3 - Added Infra configuration file for creating bucket - Docs
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 infra/aws-s3/Readme.md | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/infra/aws-s3/Readme.md b/infra/aws-s3/Readme.md
new file mode 100644
index 00000000..5b3f6ac8
--- /dev/null
+++ b/infra/aws-s3/Readme.md
@@ -0,0 +1,45 @@
+# Apache Camel Kamelets - AWS S3 Commodity Configuration files
+
+In this directory you'll find:
+
+- Ansible
+- Terraform
+- Cloudformation 
+
+Configuration files, to be used for creating your infra for using AWS S3 Kamelets.
+
+This will create an S3 Bucket with basic functionalities.
+
+## Ansible
+
+The commmand to create the infra is:
+
+```bash
+$ ansible-playbook -v ansible/aws-s3.yaml --extra-vars bucket_name=<bucket-name>
+```
+
+## Terraform
+
+The commmand to create the infra is:
+
+```bash
+$ cd terraform/
+$ terraform init
+$ terraform apply -var="bucket_name=<bucket-name>"
+```
+
+Once completed do:
+
+```bash
+$ cd terraform/
+$ terraform destroy
+```
+
+## Cloudformation
+
+The commmand to create the infra is:
+
+```bash
+$ aws cloudformation deploy --template-file cloudformation/aws-s3.yaml --stack-name my-new-stack --parameter-overrides BucketName=<bucket-name>
+```
+


[camel-kamelets] 03/05: AWS S3 - Added Infra configuration file for creating bucket - Cloudformation

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 78d2bc0124e7babb41552fa508b7dec07b1f16b9
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jun 5 18:00:47 2023 +0200

    AWS S3 - Added Infra configuration file for creating bucket - Cloudformation
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 infra/aws-s3/cloudformation/aws-s3.yaml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/infra/aws-s3/cloudformation/aws-s3.yaml b/infra/aws-s3/cloudformation/aws-s3.yaml
new file mode 100644
index 00000000..cc1cda13
--- /dev/null
+++ b/infra/aws-s3/cloudformation/aws-s3.yaml
@@ -0,0 +1,12 @@
+Parameters:
+  BucketName:
+    Type: String
+    Description: The bucket name.
+
+Resources:
+  S3Bucket:
+    Type: 'AWS::S3::Bucket'
+    DeletionPolicy: Retain
+    Properties:
+      BucketName: 
+        Ref: BucketName


[camel-kamelets] 05/05: AWS S3 - Added Infra configuration file for creating bucket - Docs

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 397dd5ead010b1e10db06f41024d72826a0bc304
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jun 6 13:12:55 2023 +0200

    AWS S3 - Added Infra configuration file for creating bucket - Docs
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 infra/aws-s3/Readme.md | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/infra/aws-s3/Readme.md b/infra/aws-s3/Readme.md
index 5b3f6ac8..8d63e2d8 100644
--- a/infra/aws-s3/Readme.md
+++ b/infra/aws-s3/Readme.md
@@ -43,3 +43,10 @@ The commmand to create the infra is:
 $ aws cloudformation deploy --template-file cloudformation/aws-s3.yaml --stack-name my-new-stack --parameter-overrides BucketName=<bucket-name>
 ```
 
+Once completed do:
+
+```bash
+$ aws cloudformation delete-stack --stack-name my-new-stack
+```
+
+


[camel-kamelets] 02/05: AWS S3 - Added Infra configuration file for creating bucket - Terraform

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 2cbb0a10226cb6342ce92b8fa0053bab0a4328a7
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jun 5 17:22:09 2023 +0200

    AWS S3 - Added Infra configuration file for creating bucket - Terraform
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 infra/aws-s3/ansible/aws-s3.yaml | 3 ---
 infra/aws-s3/terraform/main.tf   | 7 +++++++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/infra/aws-s3/ansible/aws-s3.yaml b/infra/aws-s3/ansible/aws-s3.yaml
index e4481e52..2700147e 100644
--- a/infra/aws-s3/ansible/aws-s3.yaml
+++ b/infra/aws-s3/ansible/aws-s3.yaml
@@ -2,10 +2,7 @@
 - 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:
diff --git a/infra/aws-s3/terraform/main.tf b/infra/aws-s3/terraform/main.tf
new file mode 100644
index 00000000..9068e175
--- /dev/null
+++ b/infra/aws-s3/terraform/main.tf
@@ -0,0 +1,7 @@
+variable "bucket_name" {
+  type = string
+}
+
+resource "aws_s3_bucket" "example" {
+  bucket = var.bucket_name
+}