Book Image

Amazon EC2 Cookbook

Book Image

Amazon EC2 Cookbook

Overview of this book

Discover how to perform a complete forensic investigation of large-scale Hadoop clusters using the same tools and techniques employed by forensic experts. This book begins by taking you through the process of forensic investigation and the pitfalls to avoid. It will walk you through Hadoop’s internals and architecture, and you will discover what types of information Hadoop stores and how to access that data. You will learn to identify Big Data evidence using techniques to survey a live system and interview witnesses. After setting up your own Hadoop system, you will collect evidence using techniques such as forensic imaging and application-based extractions. You will analyze Hadoop evidence using advanced tools and techniques to uncover events and statistical information. Finally, data visualization and evidence presentation techniques are covered to help you properly communicate your findings to any audience.
Table of Contents (15 chapters)
Amazon EC2 Cookbook
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Updating a stack


When you update a stack using AWS CloudFormation, it compares the current version of the template with the previous one and then updates the AWS resources accordingly. You can specify stack policies to avoid accidental updates to your AWS resources. You can also use a single stack policy to specify the restrictions for multiple resources. However, you can only apply one stack policy for the stack at any given time. Stack policies are specified in the JSON format. If you don't specify a stack policy for your stack then, by default, you will be able to update any of the resources. Also, if a stack policy is specified, then, by default, it will restrict all updates unless you explicitly specify Allow statements for your resources.

How to do it…

Follow these steps to update your stack:

  1. Create a stack policy as a JSON file (name it webserverautoscalingpolicy.json) with the following content:

    {
    "Statement" : [
    {
    "Effect" : "Deny",
    "Action" : "Update:*",
    "Principal": "*",
    "Resource...