{"id":18792859,"url":"https://github.com/deekayen/ansible-role-cloudtrail","last_synced_at":"2025-12-28T14:30:16.786Z","repository":{"id":138908942,"uuid":"410064867","full_name":"deekayen/ansible-role-cloudtrail","owner":"deekayen","description":"CIS Amazon Web Services Foundations Benchmark: Check CloudTrail is enabled for \"ALL\" region capturing all types of Management Events","archived":false,"fork":false,"pushed_at":"2021-09-24T19:39:16.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-29T15:30:30.092Z","etag":null,"topics":["ansible-role","aws-cloudtrail"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/deekayen/cloudtrail","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deekayen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"deekayen","ko_fi":"deekayen","liberapay":"deekayen","custom":["paypal.me/deekayen","venmo.com/drdnorman","buymeacoff.ee/deekayen"]}},"created_at":"2021-09-24T18:30:00.000Z","updated_at":"2021-09-24T19:39:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"13c828c0-9751-4bd4-8e1e-9086683aca6c","html_url":"https://github.com/deekayen/ansible-role-cloudtrail","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deekayen%2Fansible-role-cloudtrail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deekayen%2Fansible-role-cloudtrail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deekayen%2Fansible-role-cloudtrail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deekayen%2Fansible-role-cloudtrail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deekayen","download_url":"https://codeload.github.com/deekayen/ansible-role-cloudtrail/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239718375,"owners_count":19685725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible-role","aws-cloudtrail"],"created_at":"2024-11-07T21:22:07.499Z","updated_at":"2025-12-28T14:30:16.737Z","avatar_url":"https://github.com/deekayen.png","language":null,"funding_links":["https://github.com/sponsors/deekayen","https://ko-fi.com/deekayen","https://liberapay.com/deekayen","paypal.me/deekayen","venmo.com/drdnorman","buymeacoff.ee/deekayen"],"categories":[],"sub_categories":[],"readme":"Cloudtrail\n==========\n\n[![CI](https://github.com/deekayen/ansible-role-cloudtrail/actions/workflows/ci.yml/badge.svg)](https://github.com/deekayen/ansible-role-cloudtrail/actions/workflows/ci.yml)\n\nEnsure CloudTrail is enabled in all regions.\n\nCIS Amazon Web Services Foundations Benchmark\n\nCheck CloudTrail is enabled for \"ALL\" region capturing all types of Management Events\n\n## Perform the following to enable global (Multi-region) CloudTrail logging:\n\n### Via the management Console\n\n1. Sign in to the AWS Management Console and open the CloudTrail console at https://console.aws.amazon.com/cloudtrail\n2. Click on Trails on the left navigation pane\n3. Click Get Started Now, if presented\n\n### Click Create trail\n\nEnter a trail name in the Trail name box\nSet the Apply trail to all regions option to Yes\nSpecify an S3 bucket name in the S3 bucket box\nClick Create\n4. If 1 or more trails already exist, select the target trail to enable for global logging\n5. Click the edit icon (pencil) next to Apply trail to all regions, Click Yes and Click Save.\n6. Click the edit icon (pencil) next to Management Events click All for setting Read/Write Events and Click Save.\n\n## Via CLI\n\n```\naws cloudtrail create-trail --name [trail_name] --bucket-name [s3_bucket_for_cloudtrail] --is-multi-region-trail\naws cloudtrail update-trail --name [trail_name] --is-multi-region-trail\n```\n\n**Note**: Creating CloudTrail via CLI without providing any overriding options configures Management Events to set All type of Read/Writes by default.\n\n## Evidence\n\narn:aws:cloudtrail:us-east-1:012345678900:trail/management-events\n\n```\n{\"Management Events Value\":[{\"readWriteType\":\"All\",\"includeManagementEvents\":true,\"dataResources\":[],\"excludeManagementEventSources\":[]}],\"Cloudtrail Logging Status\":\"true\"}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeekayen%2Fansible-role-cloudtrail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeekayen%2Fansible-role-cloudtrail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeekayen%2Fansible-role-cloudtrail/lists"}