How ruyanga/aws-lab1 works
This repository defines AWS engineer onboarding as infrastructure: an administrator bootstraps Git sync, then merges to main drive CloudFormation updates from the deployment file and onboarding template. The template provisions permission boundaries, groups, users, generated initial passwords, and an optional CloudTrail audit trail with an S3 bucket. Engineers receive credentials out of band. The evidence script verifies access, boundary enforcement, audit history, and boundary drift. Relationships below follow the README; source excerpts were not available, so implementation details are not inferred.
Main entry points: onboarding.yaml Onboarding stack · evidence.sh Access evidence checks · gitsync-bootstrap.yaml Git sync bootstrap · deployment-file.yaml Deployment configuration
Components 19
GitOps deployment
- CodeConnections
- CloudFormation Git sync
- Deployment configuration
deployment-file.yaml - Git sync bootstrap
bootstrap/gitsync-bootstrap.yaml - Onboarding stack
templates/onboarding.yaml
Identity onboarding
- Permission boundaries
templates/onboarding.yaml - IAM groups
templates/onboarding.yaml - IAM users
templates/onboarding.yaml - Initial passwords
templates/onboarding.yaml - Secrets Manager
Audit and verification
- CloudTrail trail
templates/onboarding.yaml - Encrypted audit bucket
templates/onboarding.yaml - Access evidence checks
evidence.sh - IAM policy simulator
- CloudTrail event history
Other components
- AWS administrator
- GitHub main
- Engineers
- Secure out-of-band channel
Connections 22
- AWS administrator → Git sync bootstrap: deploys once
README.md - Git sync bootstrap → CodeConnections: creates connection
README.md - Git sync bootstrap → CloudFormation Git sync: configures roles
README.md - GitHub main → CodeConnections: authorizes
README.md - GitHub main → CloudFormation Git sync: merge triggers
README.md - CloudFormation Git sync → Deployment configuration: reads
README.md - Deployment configuration → Onboarding stack: selects template
README.md - CloudFormation Git sync → Onboarding stack: updates stack
README.md - Onboarding stack → Permission boundaries: defines
README.md - Onboarding stack → IAM groups: defines
README.md - Onboarding stack → IAM users: defines
README.md - Onboarding stack → Initial passwords: generates passwords
README.md - Initial passwords → Secrets Manager: stores passwords
README.md - Onboarding stack → CloudTrail trail: configures
README.md - CloudTrail trail → Encrypted audit bucket: writes audit logs
README.md - Engineers → Secure out-of-band channel: receives credentials
README.md - Secrets Manager → Secure out-of-band channel: password retrieved
README.md - AWS administrator → Access evidence checks: runs checks
README.md - Access evidence checks → IAM policy simulator: simulates access
README.md - Access evidence checks → CloudTrail event history: lists changes
README.md - Access evidence checks → IAM users: checks boundaries
README.md - Access evidence checks → IAM groups: temporarily tests policy ceiling
README.md