community.general/lib/ansible/modules
Deiwin Sarjas e970ae102c ecs_ecr: Fix AWS ECR repository creation (#34798)
* ecs_ecr: Remove registry ID from create repository call

[Boto3 documentation][1] specifies 'repositoryName' as the only expected
argument. The `**build_kwargs(registry_id)` part also adds 'registryId' which,
when executed, fails with: 'Unknown parameter in input: “registryId”, must be
one of: repositoryName'.

[AWS API documentation][2] also lists only the 'repositoryName' parameter. I.e.
this is not a problem with the boto3 library.

The default registry ID for the account that's making the request will be used
when creating the rpository. This means that if the `registry_id` specified by
the user is different from the default registry ID, then the policy changes
following the repository creation would fail, because the repository will have
been created in one repository but subsequent calls try to modify it in
another. Added a safeguard against this scenario.

[1]: https://boto3.readthedocs.io/en/latest/reference/services/ecr.html#ECR.Client.create_repository
[2]: https://docs.aws.amazon.com/AmazonECR/latest/APIReference/API_CreateRepository.html

* Fix concurrent ECR integration tests

If the `ecr_name` is the same in multiple concurrent test runs, then they can
interfere with one another causing both to fail. The `resource_prefix` is
guaranteed to be unique for different jobs running in CI an so avoids this
issue while also making it easier to identify the test which created the
resource.
2018-01-24 10:42:41 +10:00
..
cloud ecs_ecr: Fix AWS ECR repository creation (#34798) 2018-01-24 10:42:41 +10:00
clustering Module DOCUMENTATION should match argspec (#34895) 2018-01-16 12:18:51 +00:00
commands Remove shell module specialcases 2017-12-21 20:42:44 -08:00
crypto Add support for adding the intermediate cert (#35144) 2018-01-21 15:39:22 -05:00
database influxdb: add login aliases (#34599) 2018-01-19 14:54:42 +01:00
files archive: Add support for xz (#34110) 2018-01-22 07:33:07 -05:00
identity FreeIPA: Add CNAME, DNAME and A6 as record type (#34236) 2017-12-27 16:32:11 -05:00
inventory Fix invalid string escape sequences. 2017-11-21 20:59:08 -08:00
messaging
monitoring New module: monitoring/grafana_datasource (#29006) 2018-01-18 14:02:21 +00:00
net_tools adds restart_if_needed argument to nios_zone (#35191) 2018-01-22 21:21:07 +00:00
network New module to setup WAF profile. (#34363) 2018-01-23 20:22:54 +00:00
notification Module DOCUMENTATION should match argspec (#34895) 2018-01-16 12:18:51 +00:00
packaging Add rhsm_repository module (#28292) 2018-01-22 12:42:29 -05:00
remote_management Ucs vlans and integration tests (#35071) 2018-01-23 16:32:32 +01:00
source_control github_release: Fix state returned from module (#33735) 2018-01-23 08:37:41 +05:30
storage modules/na_cdot_lun: properly compare LUN size (#34846) 2018-01-17 16:32:54 -05:00
system Update pamd.py to allow module path with slashes (#32197) 2018-01-18 09:57:12 +05:30
utilities Add module support to yamllint sanity test. (#34964) 2018-01-16 15:08:56 -08:00
web_infrastructure Add identifier option to apache2_module (#33748) 2018-01-23 18:56:59 +01:00
windows implement gather_subset on Windows setup (#35212) 2018-01-22 21:10:25 -08:00
__init__.py