-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to provide instance requirements options to ASG module #831
Allow to provide instance requirements options to ASG module #831
Conversation
PR is ready to be merged now (from my side). |
Build succeeded.
|
Latest change is still green with recent CI. So I guess this can be merged now? |
Merge Failed. This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset. |
91e4518
to
5e55ef7
Compare
There was an error handling pipeline event 4d0d2b0a-3461-4c22-910a-93925224aff5. |
Looks like CI/bots got confused by the rebase? |
recheck |
recheck |
Hi @stefanhorning, could you please rebase with main? |
…ck instance types
9bc3b02
to
b52c47a
Compare
There is still two failures in the ASG tests (not related to my changes):
|
recheck |
For this one, you probably have to add the missing permissions against the https://github.com/mattclay/aws-terminator. |
@jatorcasso was working on this one. |
@alinabuzachis I thought about this too. But figured that neither updating the ASG nor access to the launch template is s.th. I added to the tests. Just one more task to basically requiring the same permissions as all the others already in the ASG test suite. But anyway just double-checked in https://github.com/mattclay/aws-terminator/blob/master/aws/policy/compute.yaml#L11 and the permission(s) already seem to be there. So I am a little lost, especially since this error popped up only after rebasing my branch. 🤔 |
Maybe the error message is missleading
but the terminator policies allows only
a nitro micro instance got |
I tried reducing the memory here, but ends up with same error. |
Yes, I also doubted that this will change anything, as the terminator AWS policy states the following condition
So it does an exact string match on the given instance type string (not on s.th. that will implicitly be chosen). |
opened a ticket for this in the project it now belongs to ansible-collections/amazon.aws#1807 Closing this PR for good as it won't be merged here anymore. |
module_utils.batch remove unused AWSConnection SUMMARY Remove deprecated and unused AWSConnection class from ansible_collections.amazon.aws.plugins.module_utils.batch ISSUE TYPE Feature Pull Request COMPONENT NAME plugins/module_utils/batch.py ADDITIONAL INFORMATION See also ansible/ansible#67191 Reviewed-by: Alina Buzachis <None>
... to let AWS pick instance types based on machine specs.
SUMMARY
Just allows to pass through more arguments in the
mixed_instances_policy
section, namely the one for specifying instance requirements (instead of providing specific instance types).ISSUE TYPE
COMPONENT NAME
ec2_asg