Terraform module for creating IAM Role and Profile for attaching to Jenkins EC2 instances to give access to :
- EC2 instance create/start/stop/...
- Jenkins Controller get config files from S3
- Cloudwatch logging and metrics
- Check AutoScalingGroup for number of instances so can delay mounting EFS until no instances using it.
- Send SNS messages for alerting
- Send Update on instance health to the ASG
- Get secrets for user passwords