An open API service indexing awesome lists of open source software.

https://github.com/simonrw/track-cloudtrail-events


https://github.com/simonrw/track-cloudtrail-events

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Deploy tracking with CloudTrail

Track CloudFormation API calls with CloudTrail.

This repo deploys a custom role that is used to track CloudTrail events, so that the events can be linked.

## Steps

1. Deploy the custom role: `make deploy-role STACK_PREFIX=`
2. Deploy the example template: `make deploy-stack STACK_PREFIX= TEMPLATE=`
3. Run `fetch_events_for_role.py` with the created role and time range to see your api calls.

> You can get the role arn by running:
>
> `aws cloudformation describe-stacks --stack-name -role --query 'Stacks[0].Outputs[0].OutputValue' --output text`