Sai shows you how to
attach Amazon RDS instances
to an OpsWorks stack

sai_opsworks_rds_db_stack

What is a best practice for attaching Amazon RDS DB instances to AWS OpsWorks Stacks?

To attach an Amazon RDS DB instance to an AWS OpsWorks stack, first register the RDS DB instance with the stack, and then connect it to the OpsWorks app.

Note: These instructions apply to Chef 11.10 stacks. For more information, see Implementing Recipes for Chef 11.10 Stacks.

  1. Open the AWS OpsWorks console and select your stack.
  2. From the navigation pane, choose Resources.
  3. Choose RDS, and then choose Register RDS DB instances.
    Note: You must have an RDS DB instance created and registered in your region. For more information, see Create an RDS DB Instance.
  4. In Connection Details for opsworksdbinstance, enter your username and password, and then choose Register with Stack.
    Note: To register and deregister RDS DB instances, the IAM policies should grant RegisterRdsDbInstance, UpdateRdsDbInstance, and DeregisterRdsDbInstance permissions.
  5. Choose Connect app, choose edit, and then choose RDS from Data Sources.
  6. Select the Database instance, enter the Database name, and then choose Save.
  7. Choose Deploy App, choose Advanced, select your instances, and then choose Deploy.

For more information, see How to Connect an Application Server Instance to Amazon RDS.


Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2017-09-27