Book Image

Ansible 2 Cloud Automation Cookbook

By : Aditya Patawari, Vikas Aggarwal
Book Image

Ansible 2 Cloud Automation Cookbook

By: Aditya Patawari, Vikas Aggarwal

Overview of this book

Ansible has a large collection of inbuilt modules to manage various cloud resources. The book begins with the concepts needed to safeguard your credentials and explain how you interact with cloud providers to manage resources. Each chapter begins with an introduction and prerequisites to use the right modules to manage a given cloud provider. Learn about Amazon Web Services, Google Cloud, Microsoft Azure, and other providers. Each chapter shows you how to create basic computing resources, which you can then use to deploy an application. Finally, you will be able to deploy a sample application to demonstrate various usage patterns and utilities of resources.
Table of Contents (11 chapters)

Managing S3 objects

AWS Simple Storage Service (S3) is a storage service that can be used as storage on the internet. It allows us to download and upload any amount of data any time, with various use cases such as storing videos, images, documents, log files, assets (such as images, JavaScripts, and CSS) of a website, and so on.

S3 allows us to store our documents in private and public modes, which enables us to store secret data over S3 for personal use, as well as files that are publicly available. S3 uses object storage instead of flat file systems. Object storage is storage designed to store data as an object. An object contains data and metadata, allowing us to store unstructured data.

In this recipe, we will be creating an S3 object using the PUT operation and then we will retrieve that object with the GET operation. Amazon S3 stores our data as objects inside buckets.

...