spotty-cloud / spotty

Training deep learning models on AWS and GCP instances
https://spotty.cloud
MIT License
492 stars 43 forks source link

New AWS configuration parameter: instanceProfileArn #69

Closed tsdalton closed 4 years ago

tsdalton commented 4 years ago

This pull request addresses issue #42.

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.

apls777 commented 4 years ago

That's great, thanks! I'll add it to the next release.