How timmyeats/aws-magic-tagging-resources works
Event Sources Layer
• Supported AWS services that generate events:
• EC2
• ELB
• RDS
• CloudFront
• Lambda
• SNS
• IAM
• AutoScaling
Processing Layer
• AWS Lambda Function (main handler)
• Internal structure of the Lambda function with subcomponents:
• Main Handler (handler/main.py)
• Resource Taggers (separate modules for each service)
• Common Utilities (taggers.py)
Permissions Layer
• IAM Role
• IAM Policies
• Connections to required AWS services
Monitoring Layer
• CloudWatch Logs
• CloudWatch Dashboard
• Resource Group
Component Organization
• EventBridge at the top
• Lambda function and its components in the center
• IAM components on the left side
• Monitoring components on the right side
Specific Implementation Details:
• AWS Services -> EventBridge -> Lambda -> Resource Tagging
Lambda Internal Structure
• Main Handler
• EC2 Tagger
• ELB Tagger
• RDS Tagger
• Other Service Taggers
Tag Information Flow
• How tag information is extracted:
• Source IP
• Event Time
• User Agent
• Identity Type
• Resource-specific information
Infrastructure as Code Elements
• A section showing Terraform components
• Multi-region deployment capability
• Notes about supported AWS services
• Default tags that are applied
Important Considerations: