This Bash script helps retrieve AWS account IDs associated with specific AWS services in different regions. It's particularly useful for identifying service-linked account IDs, which are often required for setting up resource policies or cross-account access.
- Supports multiple AWS services: ELB, S3, CloudFront, IAM, Lambda, and API Gateway
- Dynamically retrieves region-specific account IDs for services like ELB
- Provides hardcoded global account IDs for services like S3 and CloudFront
- Validates AWS region input to prevent errors