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

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 
主站蜘蛛池模板: 叙永县| 柯坪县| 桂平市| 梧州市| 那曲县| 新乡县| 东乌珠穆沁旗| 焦作市| 泊头市| 盐山县| 辰溪县| 天长市| 吉隆县| 长春市| 蒲江县| 莱芜市| 高邑县| 太白县| 莒南县| 四会市| 宣化县| 营山县| 新疆| 金堂县| 射洪县| 杭锦旗| 茶陵县| 喀喇沁旗| 平南县| 鹤壁市| 城口县| 阿克陶县| 临海市| 北流市| 阳新县| 九龙坡区| 韶关市| 隆尧县| 陇南市| 武威市| 湟中县|