Skip to content

Commit

Permalink
Ensure ec2_instance tests filter correctly
Browse files Browse the repository at this point in the history
Multiple instances test picks up instances from other tests when run
concurrently. Use tag filters to prevent this.
  • Loading branch information
jillr committed May 2, 2023
1 parent dceef92 commit 29d942b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
state: present
tags:
TestId: "{{ ec2_instance_tag_TestId }}"
filters:
"tag:TestId": "{{ ec2_instance_tag_TestId }}"
register: create_multiple_instances
check_mode: true

Expand All @@ -35,6 +37,8 @@
state: present
tags:
TestId: "{{ ec2_instance_tag_TestId }}"
filters:
"tag:TestId": "{{ ec2_instance_tag_TestId }}"
wait: true
register: create_multiple_instances

Expand Down

0 comments on commit 29d942b

Please sign in to comment.