Skip to content

Commit

Permalink
Wait for the RDS instance to be available
Browse files Browse the repository at this point in the history
  • Loading branch information
abikouo committed Jan 31, 2024
1 parent d6ea987 commit 4c4e498
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@
db_subnet_group_name: "{{ rds_subnet_group_name }}"
vpc_security_group_ids:
- "{{ rds_sg.group_id }}"
wait: false
wait: true
register: rds_result

# Create key pair to connect to the VM
- name: Create directory to generate keys in
Expand Down Expand Up @@ -211,8 +212,3 @@
subnet: private
route: nat-gateway
state: present

- name: Get RDS instance info
amazon.aws.rds_instance_info:
db_instance_identifier: "{{ rds_identifier }}"
register: rds_result

0 comments on commit 4c4e498

Please sign in to comment.