https://github.com/simonrw/track-cloudtrail-events
https://github.com/simonrw/track-cloudtrail-events
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/simonrw/track-cloudtrail-events
- Owner: simonrw
- Created: 2022-12-12T17:25:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-15T13:36:54.000Z (about 3 years ago)
- Last Synced: 2025-02-06T08:45:13.365Z (over 1 year ago)
- Language: Python
- Size: 48.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`