Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
AWS SysOps Cookbook

You're reading from   AWS SysOps Cookbook Practical recipes to build, automate, and manage your AWS-based cloud environments

Arrow left icon
Product type Paperback
Published in Sep 2019
Publisher
ISBN-13 9781838550189
Length 490 pages
Edition 2nd Edition
Tools
Arrow right icon
Authors (3):
Arrow left icon
Eric Z. Beard Eric Z. Beard
Author Profile Icon Eric Z. Beard
Eric Z. Beard
Rowan Udell Rowan Udell
Author Profile Icon Rowan Udell
Rowan Udell
Lucas Chan Lucas Chan
Author Profile Icon Lucas Chan
Lucas Chan
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. AWS Fundamentals FREE CHAPTER 2. Account Setup and Management 3. AWS Storage and Content Delivery 4. AWS Compute 5. Monitoring the Infrastructure 6. Managing AWS Databases 7. AWS Networking Essentials 8. AWS Account Security and Identity 9. Managing Costs 10. Advanced AWS CloudFormation 11. AWS Well-Architected Framework 12. Working with Business Applications 13. AWS Partner Solutions 14. Other Books You May Enjoy

Using a macro to create an S3 bucket for CloudTrail logs

A CloudFormation macro is a transformation that allows you to create your own shorthand, in order to inject snippets into your templates. You probably already know a little bit about macros—AWS::Include and AWS::Serverless are both macros that are hosted by CloudFormation. Now, you have the ability to write your own macros, and with some creativity, you will find that this can be a very powerful tool to add to your arsenal as an AWS administration guru.

In this recipe, you will create a simple macro that allows you to configure an AWS CloudTrail auditing trail, and a bucket to hold the audit logs, all in just a few short lines of YAML. Similar to the last recipe on custom resources, you will create a lambda function in order to implement the macro transformation.

...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image