diff --git a/roles/aws/aws_rds/README.md b/roles/aws/aws_rds/README.md index a1ad86e2d..b448714aa 100644 --- a/roles/aws/aws_rds/README.md +++ b/roles/aws/aws_rds/README.md @@ -1,5 +1,14 @@ # AWS RDS Creates an RDS instance and associated ressources. + +If the `engine` variable is set to **aurora-mysql**, you'll need to manually create the Aurora cluster first. Typically, a controller will already exist, so something like this can be run from the controller: + +``` +AWS_PROFILE=example aws rds create-db-cluster --db-cluster-identifier example-aurora-cluster --engine aurora-mysql --engine-version 5.7.mysql_aurora.2.10.2 --db-subnet-group-name example-aurora --vpc-security-group-ids sg-abcdefghijklmnop --storage-encrypted --master-username "auroradev" --master-user-password "aurora12345" +``` + +You'll need to have created the subnet group first as well as the security groups. + diff --git a/roles/aws/aws_rds/tasks/main.yml b/roles/aws/aws_rds/tasks/main.yml index 989a1781f..5de5486e4 100644 --- a/roles/aws/aws_rds/tasks/main.yml +++ b/roles/aws/aws_rds/tasks/main.yml @@ -102,10 +102,6 @@ register: _rds_instance_info when: "'aurora' not in aws_rds.engine" -- name: Debug _rds_instance_info - ansible.builtin.debug: - msg: "{{ _rds_instance_info }}" - - name: Create SNS topic. ansible.builtin.include_role: name: aws/aws_sns @@ -163,7 +159,7 @@ - aws_rds.rds_cloudwatch_alarms - _rds_instance_info.db_instance_identifier is defined -- name: Create RDS CloudWatch alarms. +- name: Create Aurora RDS CloudWatch alarms. ansible.builtin.include_role: name: aws/aws_ec2_metric_alarm vars: