官术网_书友最值得收藏!

How to do it...

We will be using the RDS module to create an RDS instance. We will be creating a MySQL database instance in our task:

- name: Create RDS Instance 
  rds: 
      aws_access_key: "{{ access_key }}" 
      aws_secret_key: "{{ secret_key }}" 
      region: "{{ aws_region }}" 
      command: create 
      instance_name: my-first-rds-instance 
      db_engine: MySQL 
      size: 10 
      instance_type: db1.m1.small 
      username: cookbook-admin 
      password: koobkooc 
      security_groups: "{{ my_first_sg.group_id }}" 
      multi_zone: yes 
      backup_retention: 7 
      tags: 
          Enviornment: cookbook-prod 
          Application: cookbook-test 
   tags: 
     - recipe1 
主站蜘蛛池模板: 松潘县| 石棉县| 抚顺县| 潍坊市| 镇远县| 临洮县| 青河县| 湟源县| 特克斯县| 温泉县| 和田市| 竹北市| 盈江县| 南澳县| 桦川县| 东乡族自治县| 禄劝| 新营市| 嘉祥县| 延庆县| 隆昌县| 南漳县| 体育| 盘锦市| 江源县| 台江县| 家居| 海口市| 山阳县| 同江市| 冷水江市| 平谷区| 望奎县| 济阳县| 镇安县| 阿瓦提县| 凤台县| 泸定县| 句容市| 巨野县| 涟源市|