Summary
The launch-bottlerocket-ec2 skill currently uses raw AWS CLI commands. Using AWS CDK would provide:
- Infrastructure as code with type safety
- Easier resource cleanup
- Better state management
- Reusable constructs for common patterns
Suggested Approach
Create CDK constructs for:
- Bottlerocket EC2 instances (standalone, ECS, EKS modes)
- Required IAM roles and instance profiles
- Security groups with appropriate rules