Menu
AWS OpsWorks
User Guide (API Version 2013-02-18)

Amazon RDS Data Bag (aws_opsworks_rds_db_instance)

A set of data bag content that specifies an Amazon Relational Database Service (Amazon RDS) instance's configuration as follows:

The following example shows how to use Chef search to search through a single data bag item and then multiple data bag items to write messages to the Chef log with the Amazon RDS instances' addresses and database engine types:

Copy
rds_db_instance = search("aws_opsworks_rds_db_instance").first Chef::Log.info("********** The RDS instance's address is '#{rds_db_instance['address']}' **********") Chef::Log.info("********** The RDS instance's database engine type is '#{rds_db_instance['engine']}' **********") search("aws_opsworks_rds_db_instance").each do |rds_db_instance| Chef::Log.info("********** The RDS instance's address is '#{rds_db_instance['address']}' **********") Chef::Log.info("********** The RDS instance's database engine type is '#{rds_db_instance['engine']}' **********") end
address

The instance's DNS name.

port

The instance's port.

db_instance_identifier

The instance's ID.

db_password

The instance's master password.

db_user

The instance's master user name.

engine

The instance's database engine, such as mysql.

rds_db_instance_arn

The instance's Amazon Resource Name (ARN).

region

The instance's AWS region, such as us-west-2.