Debian Codegraph @

ansible_collections/community/aws/tests/integration/targets/networkfirewall_policy/tasks/main.yml

raw
1 ---
2 - module_defaults:
3 group/aws:
4 access_key: '{{ aws_access_key }}'
5 secret_key: '{{ aws_secret_key }}'
6 session_token: '{{ security_token | default(omit) }}'
7 region: '{{ aws_region }}'
8 collections:
9 - amazon.aws
10 - community.aws
11 block:
12 # Fetch some info about the account so we can build ARNs
13 - aws_caller_info: {}
14 register: caller_info
15 - name: 'Generate the ARN pattern to search for'
16 vars:
17 _caller_info: '{{ caller_info.arn.split(":") }}'
18 _base_arn: 'arn:{{_caller_info[1]}}:network-firewall:{{aws_region}}'
19 set_fact:
20 account_arn: '{{_base_arn}}:{{_caller_info[4]}}:firewall-policy/'
21
22 # Prepare the resources we'll need for testing the policies
23 - include_tasks: 'setup.yml'
24
25 # Tests specifically related to policies using 'default' rule order
26 - include_tasks: 'default_order.yml'
27
28 # Tests specifically related to policies using 'strict' rule order
29 - include_tasks: 'strict_order.yml'
30
31 - include_tasks: 'actions.yml'
32
33 # Tests related to 'common' attributes on policies (description/tagging)
34 # Note: Unlike the other tests this includes *waiting* for the deletion of
35 # policies, and as such we should do this last so that the other policies
36 # can also finish deleting while we wait for the 'common' policy to be
37 # deleted.
38 - include_tasks: 'common.yml'
39
40 always:
41 - include_tasks: 'cleanup.yml'