# Create AWS RDS with Ansible script

**URL:** <https://forum.ansible.com/t/create-aws-rds-with-ansible-script/26619>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [February 1, 2018, 8:10am UTC](https://forum.ansible.com/t/create-aws-rds-with-ansible-script/26619 "2018-02-01T08:10:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reddy\_Myyb](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@Reddy\_Myyb](https://forum.ansible.com/u/Reddy_Myyb)\
**Post date:** [February 1, 2018, 8:10am UTC](https://forum.ansible.com/t/create-aws-rds-with-ansible-script/26619/1 "2018-02-01T08:10:27Z")

</div>

I have a requirement to create AWS RDS for Oracle Standard Edition 2. I have created the script and gave values as available in the AWS RDS console. The problem is Ansible is not accepting the Engine version available in the AWS console. I’m using the exact version and the fields mentioned in AWS console. If the script accepts the version it says the instance type doesn’t match and I’m not able to find the correct engine version and instance type together. I searched the aws docs for the engine and instance type mappings and used the same, but still the script fails to create the rds and complaints about either of them.Please find below my script. Any suggestions welcome !

Below is my role:

- rds:  
aws\_access\_key: XXXXXXXXXXXXXXXXXXXXXXXXX  
aws\_secret\_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  
command: create  
license\_model: license-included  
instance\_name: Prod  
db\_engine: oracle-se2  
db\_name: ERPDB  
engine\_version: 11.2.0.4  
port: 1433  
region: ap-southeast-2  
size: 300  
#iops:  
#instance\_type: db.m4.2xlarge  
instance\_type: db.t2.micro  
username: oracle\_admin  
password: xxxxx  
tags:  
Environment: Production  
Application: APAC

Below is my playbook:
