Terraform module for creating IAM Role and Profile for attaching to Nexus EC2 instances to give access to :
- EC2 instance create/start/stop/...
- Nexus 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 nexus user passwords