Comments (7)
@apls777 Thanks I have indeed updated my fork to surface the instanceProfileArn
parameter to the config file so I'll open up a pull request when I get a chance to clean things up and merge-ready, probably towards the end of the week.
from spotty.
At the moment Spotty creates an IAM role and an Instance Profile that wraps that role to use it with an EC2 instance. I assume that in some environments users also cannot create their own Instance Profile. Maybe then better to add functionality to use an existing Instance Profile?
Let's say it will be the instanceProfileArn
parameter, and if it's specified then Spotty will use it instead of creating one. What do you think?
Also, I have a question about your environment: do you have permissions to create your own bucket? Or is it an issue as well? Because Spotty creates a bucket that is being used to sync the project and download files.
from spotty.
Hello, I also have issues with using Spotty in a managed AWS environment and would love the ability to provide a predefined IAM Role and Instance Profile as a configuration option. Is this feature in the pipeline and what would you estimate the level of effort required to implement?
To answer your S3 bucket question: yes I can create S3 buckets in my particular environment. In more restrictive environments where wholesale bucket creation is not an option I imagine that admins could grant users permissions to create buckets under some ARN naming restrictions. An admin may allow a user to create a private bucket conforming to some naming convention as long as the bucket is private, for example.
from spotty.
Apologies for never responding to the above questions, I must have missed this. I did actually end up modifying the spotty code to allow this, but I don't remember what I did and I've since lost the code. The fix wasn't too difficult if I remember correctly.
from spotty.
@tsdalton Actually, it's straight forward. I cannot promise that I'll release this feature in the following days as I'm a little busy with another project, but maybe I'll get some spare time.
For now, you can just clone the repo and replace the call that creates the Instance Profile stack with your Instance Profile ARN here:
https://github.com/apls777/spotty/blob/e67cae8afec893ec32c80a2f158a9fe3566b144c/spotty/providers/aws/deployment/instance_deployment.py#L73
But if you'll also create the instanceProfileArn
parameter in the configuration file and will use it when it's specified, feel free to open a PR :).
from spotty.
@apls777 sorry it took me so long, got sidetracked. I've opened a pull request, please review it at your leisure!
from spotty.
Thank you @tsdalton, this functionality now released with Spotty 1.3.0.
from spotty.
Related Issues (20)
- ValidationError: Resource PreparingInstanceSignal does not exist for stack HOT 4
- GCP: 30 minutes for runtimeconfig.v1beta1.waiter Timeout expired HOT 19
- How to resize root partition (instead of 50GB) on GCP? HOT 1
- Caught non-retryable exception while listing file:///mnt/heareval-heareval-leader-joseph-workspace/project: [Errno 28] No space left on device HOT 2
- Question: Possibility to execute code on instance startup HOT 1
- 'spotty sh' with private ip address HOT 1
- Is this still maintained? HOT 1
- Help with solving NO_PUBKEY error on instance startup HOT 1
- Update default AMI image to support G5 instances HOT 1
- List all instances currently running HOT 1
- Spotty for coreweave? HOT 1
- "ResourceErrorMessage":"Failure condition satisfied." HOT 1
- --instance-initiated-shutdown-behavior terminate HOT 1
- Documentation for the remote provider is missing
- [Question] Is there a way to add a tags for S3 bucket and EC2 instance? HOT 1
- Error while trying to ssh into instance using spotty HOT 4
- Vast.ai provider support HOT 7
- Spot price for the "us-east-1c" availability zone not found.
- RuntimeError: can't start new thread HOT 2
- How does Spotty work?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spotty.