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
Initial support for AWS Batch Job Definitions #26700
Conversation
@Constantin07 @Etherdaemon @Lujeni @MichaelBaydoun @Sodki @adq @akazakov @alachaum @amir343 @bekelchik @bpennypacker @brandond @carsongee @dkhenry @fiunchinho @garethr @gunzy83 @j-carl @jarv @Java1Guy @jmenga @joelthompson @jonhadfield @jsdalton @jsmartin @kaczynskid @leedm777 @linuxdynasty @loia @lwade @MichaelBaydoun @michaeljs1990 @minichate @mjschultz @mmochan @nadirollo @nand0p @naslanidis @NickBall @pjodouin @psykotox @pwnall @RickMendes @roadmapper @ryansydnor @scicoin-project @scottanderson42 @seiffert @shepdelacreme @silviud @simplesteph @steynovich @tastychutney @tedder @tgerla @timmahoney @tombamford @whiter @wilvk @wimnat @zacblazic @zbal @zeekin @zimbatm As a maintainer of a module in the same namespace this new module has been submitted to, your vote counts for shipits. Please review this module and add |
|
||
DOCUMENTATION = ''' | ||
--- | ||
module: batch_job_definition |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for this one: since there's a flat namespace, please prefix this as aws_batch_job_definition
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
# logger.setLevel(logging.DEBUG) | ||
|
||
|
||
class AWSConnection: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is only ever used once, I think it would be easier to read to just create the different client/resource connections and pass those in.
The test
|
The test
|
@@ -0,0 +1,526 @@ | |||
#!/usr/bin/python | |||
# Copyright (c) 2017 Jon Meran <jonathan.meran@sonos.com> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should follow copyright guideline http://docs.ansible.com/ansible/latest/dev_guide/developing_modules_documenting.html#copyright and have author info in module author field.
1. Renamed file from batch_job_definition.py to aws_batch_job_definition.py 2. Fixed ANSIBLE_METADATA version 3. Updated the RETURN documentation 4. Used Try Except ImportError block while importing non standard python libraries 5. Updated the remove_job_definition() method to use deregister_job_definition() 6. Updated set_api_params() method 7. Removed the response getting embedded in ansible_facts. 8. Updated main() to convert the final result to snake_dict using camel_dict_to_snake_dict() to maintain consistency. 9. Added region and job_definition_arn in argument_spec
This reverts commit 0db6ddef5ba00d4cd063eb3f13243189c0ae9ad2.
Add traceback to exceptions Remove exception handling around the connection since boto3_conn handles it Add ec2 documentation fragment Region is not required because it may be provided as an environment variable Remove default=None from the arg spec since it is the default and cannot be used with required=true Add aliases for region Document job_definition_arn
The test
|
Merged as 05f765b |
SUMMARY
This adds automation support for the following AWS Batch Job Definitions
ISSUE TYPE
Feature Pull Request
COMPONENT NAME
amazon module
ANSIBLE VERSION
ansible 2.2.2.0
config file =
configured module search path = Default w/o overrides