summaryrefslogtreecommitdiff
path: root/hacking
diff options
context:
space:
mode:
authorShuang Wang <ooocamel@icloud.com>2018-10-18 13:32:06 +0900
committerWill Thames <will@thames.id.au>2018-10-18 14:32:06 +1000
commit0c6513e9b141fb6cdd6bfaae6f0090456a0a86ce (patch)
treeeff95eeef697d6a0e53848ba5c29f574434ac647 /hacking
parent9258ffa478ecf528a50d416004bd64f7407f6dfc (diff)
downloadansible-0c6513e9b141fb6cdd6bfaae6f0090456a0a86ce.tar.gz
add module aws_codecommit to represent AWS CodeCommit (#46161)
* kick off * done for the day * beta code and test * fix a typo * boto3_conn and boto_exception aren't used in this code, ec2_argument_spec is used but unneeded. * Returning when find a match avoids doing extra work, especially when pagination is involved * add new permissions for test * (output is changed) is preferred over accessing the attribute directly. * pass the result through camel_dict_to_snake_dict() before returning it. * AnsibleAWSModule automatically merges the argument_spec. * deletes the created resources even if a test fails. * AnsibleAWSModule automatically merges the argument_spec. * fix typo * fix pep8 * paginate list_repositories * specify permissions for test * cut the unnecessary code. * add return doc string * add missed ':' * fix syntax error: mapping values are not allowed here * add description for return * fix syntax error * rename module name and turn off automated integration test.
Diffstat (limited to 'hacking')
-rw-r--r--hacking/aws_config/testing_policies/devops-policy.json17
1 files changed, 17 insertions, 0 deletions
diff --git a/hacking/aws_config/testing_policies/devops-policy.json b/hacking/aws_config/testing_policies/devops-policy.json
new file mode 100644
index 0000000000..3b8def2d65
--- /dev/null
+++ b/hacking/aws_config/testing_policies/devops-policy.json
@@ -0,0 +1,17 @@
+{
+ "Version": "2012-10-17",
+ "Statement": [
+ {
+ "Sid": "AllowCodeCommitModuleTests",
+ "Effect": "Allow",
+ "Action": [
+ "codecommit:ListRepositories",
+ "codecommit:CreateRepositories",
+ "codecommit:DeleteRpositories"
+ ],
+ "Resource": [
+ "arn:aws:codecommit:*"
+ ]
+ }
+ ]
+} \ No newline at end of file