The code change is very simple: surface a new AWS configuration parameter instanceProfileArn to spotty.yaml which the user can optionally set. If the parameter is set, it'll be assigned to the EC2 instance. If not, Spotty will create a new one to be attached to the instance.
This fix is primarily useful in situations where users don't have permission to create IAM roles/instance profiles in their AWS environment.
This pull request addresses issue #42.
The code change is very simple: surface a new AWS configuration parameter
instanceProfileArn
tospotty.yaml
which the user can optionally set. If the parameter is set, it'll be assigned to the EC2 instance. If not, Spotty will create a new one to be attached to the instance.This fix is primarily useful in situations where users don't have permission to create IAM roles/instance profiles in their AWS environment.