Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Vikas Kumar
@vikas027
I have a small demo coming up
Cristian Măgherușan-Stanciu
@cristim
now you have a use case for justifying custom development
Vikas Kumar
@vikas027
sure
Cristian Măgherușan-Stanciu
@cristim
often C-level execs feel like wasting their time approving expenses of a few hundreds/month, it's always easier to get their attention with something more expensive
Vikas Kumar
@vikas027
yeah, I agree
mello7tre
@mello7tre
@vikas027 you can choose as AS deploy mode StackSets and select in which regions you want to deploy it
(this way you further help us to test StackSets deploy mode ;-) )
Vikas Kumar
@vikas027
Surely, we can but that is a lot of code to change on our side, and we do not use CF anyways.
Cameron Tod
@cam8001
If I have an ASG with a min/max size of 1, should autospotting replace instances and terminate the old ones? I am seeing autospotting launch a new instance but not remove the old one
MIN_ON_DEMAND_NUMBER is 0
autospotting also doesn't seem to launch things into the target group of the instance its replacing
Cameron Tod
@cam8001
ok, apparently I just needed to be more patient. It took 20 odd minutes for everything to sort itself out
Cristian Măgherușan-Stanciu
@cristim
Yes, but I would not recommend it for groups of a single instance, unless you are fine with occasional downtime while instances are being replaced
mello7tre
@mello7tre
@cam8001 maybe you should read some docs regarding how AS works:
First, AS is invoked by default every 5 minutes.
Spot instance is launched as "single" instance ("out of ASG") identically to the one to replace.
On next runs, it's attached to ASG only if Instance lifetime is greater that ASG configured Grace period.
Once successfully attached, relative onDemand instance is terminated.
If you need a faster timeline, you should consider trying the event-based branch (we can say that it's still in beta, but personally i find it working pretty fine).
But dunno if there is an already compiled version or you need to do it yourself.
(with event-based version spot instances are attached as soon as their state is "running")
Cristian Măgherușan-Stanciu
@cristim
I guess at this point we can merge the event based branch into master and try to quickly handle the potential fallout. What do you folks think about this?
I think even if it has a few rough edges it's still in many ways better than the current implementation, and this gives us the chance to mature it much faster
Cristian Măgherușan-Stanciu
@cristim
For people who find issues there's always the stable stuff
I just merged it. 🤞
mello7tre
@mello7tre
:-)
Cameron Tod
@cam8001
thank you both. Event based sounds good to me
Cristian Măgherușan-Stanciu
@cristim
Cool, let us know if you run into any issues with it
Cristian Măgherușan-Stanciu
@cristim
@/all I've recently addressed a number of issues in the trunk event-based code, tested wanted to help polish it further. As always, whoever finds a valid bug or contributes a meaningful patch receives a year of stable build access
Renzo
@RenzoF
image.png
Hi @cristim I found a small issue the cloud formation template "/AutoSpotting/template.yaml" that breaks the cloudformation designer rendering.
Cristian Măgherușan-Stanciu
@cristim
Thanks , patches welcome 😁
Renzo
@RenzoF
:thumbsup: Done :smile: ... now lets see if I pass the checks :laughing:
christopinka
@christopinka
Greeting Spotters. Can someone point me to minimum permissions needed for deploying the stack? I'm using Terraform and getting permission denied errors. Thanks!
Cristian Măgherușan-Stanciu
@cristim
We usually deploy it with admin-like permissions but I would love to see if you can figure out a smaller list.
I would also recommend Cloudformation for now, Terraform very probably won't support the latest code changes in AutoSpotting core
6 replies
But if you are interested in fixing it any issues with Terraform I would love to see it brought up to speed
Cristian Măgherușan-Stanciu
@cristim
We recently had a massive code change and still trying to figure out if there are any regressions
So any feedback is welcome
Robin Sillem
@robinsillem
Hi, have the permissions on the cloudprowess S3 bucket changed? I could deploy the terraform autospotter module last week, but not now. Further digging shows I get access denied when trying to access the bucket, hence the lambda wont deploy.
This may be the same issue @christopinka is seeing?
Renzo
@RenzoF
Hi I think this is because the S3 bucket with the lambda is located in us-west -1 and you are trying to deploy to another region.
The only way I managed deploy was on us-west-1 even though all my default zone is eu-west-2
Robin Sillem
@robinsillem
Ah, no, I know all about that one :-) My problem now is more basic - I get access denied when accessing the bucket itself
Cristian Măgherușan-Stanciu
@cristim
I recently switched the bucket to "requester pays" mide
And disabled the List permissions
I will have a look later today
Robin Sillem
@robinsillem
Thanks
If it helps, what i'm seeing elsewhere is "Error running command 'aws s3 cp s3://cloudprowess/nightly/lambda.zip s3://<my bucket>/nightly/lambda.zip': exit status 1. Output: fatal error: An error occurred (403) when calling the HeadObject operation: Forbidden". In this scenario I'm running in a different region, hence the copy.
Though if you enable Requester Pays on a bucket, anonymous access to that bucket is not allowed, which may be the problem
Cristian Măgherușan-Stanciu
@cristim
I disabled requester pays, let me know if you have any other issues
Robin Sillem
@robinsillem
Thanks cristim, that fixed on of our deployment scenarios, I'm waiting on the results of the other but expect it to fix that too - Occam's razor.
But I imagine you have a valid cost concern
Cristian Măgherușan-Stanciu
@cristim
Well, I'm paying it from my own pocket, I expected it would work
Robin Sillem
@robinsillem
How often does the lambda source get updated? Is it a sensible option to just take the binary and host it ourselves?
Cristian Măgherușan-Stanciu
@cristim
why not build it from source?
these binaries are for people who just want to try it out, but also for my Patreon sponsors. if you're neither of these please build it from source