AWS Opsworks is an application management service. You can use it to define your application in one stack as a collection of different layers. Each stack provides package information that needs to be installed and configured, while also deploying any AWS resources defined in the Opsworks layer. Depending on the load or the predefined plan, Opsworks can also extend your application as needed.
If you plan to use Mysql,oracle,sqlserver or PostgreSQL, then Amazon relational database Service (RDS) can perform tedious, low-level system and database management work for you. You can allow RDS to handle hardware deployments, operating system and database installation, configuration, patching, scaling, backup, anomaly detection, and failover.
Today we will combine Opsworks and RDS so that you can refer to an RDS database instance that you created in advance in the AWS area where the Opsworks service resides by defining an RDS service layer. This feature is a complement to the existing Opsworks support MySQL layer.
You can define an RDS service layer in the AWS Management console as follows:
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Programming/extra/
To be able to create the RDS service layer, you will need to know the username and password of the database instance (this information will be passed to the application). If you do not have this information for the time being, you can edit the service layer or change the username/password later.
Note: Because all Opsworks stacks access AWS resources and services through the IAM (Identity and access Management) role, you may need to update the appropriate roles. Opsworks can detect the situation and provide assistance to handle it.
When you add the RDS service layer to the stack, Opsworks assigns it a flag (ID) and adds the information for the database instance to the stack configuration and deployment json file with the [:d Atabase] attribute. When the RDS service layer is used with the Ruby, PHP, and Java application services layers, Opsworks also provides some helper functions to help users access the details of the connection.
As always, this new feature is now available and you can start using it today. Visit the database Layers section of Opsworks User Guide for more information.