Skip to Main Content
Implementing AWS: Design, Build, and Manage your Infrastructure
book

Implementing AWS: Design, Build, and Manage your Infrastructure

by Yohan Wadia, Rowan Udell, Lucas Chan, Udita Gupta
January 2019
Intermediate to advanced content levelIntermediate to advanced
690 pages
16h
English
Packt Publishing
Content preview from Implementing AWS: Design, Build, and Manage your Infrastructure

Enabling governance using EC2 tags and Lambda

Governance has always been of one of the key issues faced by cloud administrators, especially when it comes to tracking EC2 instances for cost and compliance purposes. In this use case, we are going to automate the tagging of EC2 instances and its corresponding resources using a simple Lambda function used in conjuncture with AWS CloudTrail and CloudWatch. The function will ensure that users can work only on those resources that they have created based on resource tags.

How it all works is as follows. We start off by creating a trail in CloudTrail to track all the API calls and events taking place within the AWS account. Next, we create a dummy user in IAM, which will not only have permissions ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

AWS Account Setup Best Practices

AWS Account Setup Best Practices

Chad Smith
AWS Administration Cookbook

AWS Administration Cookbook

Rowan Udell, Lucas Chan

Publisher Resources

ISBN: 9781788835770OtherErrata Page