mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-20 16:09:09 -07:00
parse botocore.endpoint logs into a list of AWS actions (#49312)
* Add an option to parse botocore.endpoint logs for the AWS actions performed during a task Add a callback to consolidate all AWS actions used by modules Added some documentation to the AWS guidelines * Enable aws_resource_actions callback only for AWS tests * Add script to help generate policies * Set debug_botocore_endpoint_logs via environment variable for all AWS integration tests Ensure AWS tests inherit environment (also remove AWS CLI in aws_rds inventory tests and use the module)
This commit is contained in:
parent
eb790cd3c6
commit
7da565b3ae
34 changed files with 672 additions and 233 deletions
|
@ -99,8 +99,12 @@ class AwsCloudEnvironment(CloudEnvironment):
|
|||
|
||||
ansible_vars.update(dict(parser.items('default')))
|
||||
|
||||
env_vars = {'ANSIBLE_DEBUG_BOTOCORE_LOGS': 'True'}
|
||||
|
||||
return CloudEnvironmentConfig(
|
||||
env_vars=env_vars,
|
||||
ansible_vars=ansible_vars,
|
||||
callback_plugins=['aws_resource_actions'],
|
||||
)
|
||||
|
||||
def on_failure(self, target, tries):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue