diff --git a/roles/aws/aws_backup_validation/tasks/testing_resources.yml b/roles/aws/aws_backup_validation/tasks/testing_resources.yml index 7dfcfe66f..15bfc628b 100644 --- a/roles/aws/aws_backup_validation/tasks/testing_resources.yml +++ b/roles/aws/aws_backup_validation/tasks/testing_resources.yml @@ -57,17 +57,17 @@ - name: Construct AWS instance type. vars: - _instance_type: + instance_type: instance: "EC2" file-system: "EFS" db: "RDS" ansible.builtin.set_fact: - _instance_type_restore: "{{ _instance_type[backup.resource_type] }}" + _instance_type_restore: "{{ instance_type[backup.resource_type] }}" when: backup.resource_type != 'file-system' - name: Print previous variable ansible.builtin.debug: - var: _instance_type + var: instance_type - name: Print previous variable ansible.builtin.debug: @@ -89,15 +89,6 @@ ansible.builtin.debug: var: _protected_res -- name: Check if protected reource exist - ansible.builtin.command: > - aws backup list-protected-resources --query "Results[?ResourceArn=='{{ _resource_arn }}']" --region {{ _aws_region }} - register: _protected_res - -- name: Print previous variable - ansible.builtin.debug: - var: _protected_res - - name: Assign EC2 resource to AWS restore testing plan. ansible.builtin.command: > aws backup create-restore-testing-selection --cli-input-json file:///tmp/restore_testing.json --region {{ _aws_region }}