Amazon RDS Data Bag (aws_opsworks_rds_db_instance)
Important
AWS OpsWorks Stacks is no longer accepting new customers. Existing customers will be able to use the OpsWorks console, API, CLI, and CloudFormation resources as normal until May 26, 2024, at which time they will be discontinued. To prepare for this transition, we recommend you transition your stacks to AWS Systems Manager as soon as possible. For more information, see AWS OpsWorks Stacks End of Life FAQs and Migrating your AWS OpsWorks Stacks applications to AWS Systems Manager Application Manager.
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:
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
.