February 2018
Intermediate to advanced
200 pages
5h 51m
English
We will use the S3 module for creating an empty bucket with public read permission, and then we will store our file as a data object in that bucket:
#Creating an empty s3 bucket
- name: Creating S3 bucket s3: bucket: my_first_bucket mode: create permission: public-read
tags:
- recipe3
#Putting object
- name: Put object in S3 bucket s3: bucket: my_first_bucket object: /location/of/text.txt src: file.txt mode: put
tags:
- recipe3
#Retrieving an object
- name: Get object
s3: bucket: my_first_bucket object: /location/of/text.txt dest: file.txt mode: get
tags:
- recipe3
Read now
Unlock full access