Amazon RDS Data Bag (aws_opsworks_rds_db_instance)
Important
The AWS OpsWorks Stacks service reached end of life on May 26, 2024 and has been disabled for both new and existing customers.
We strongly recommend customers migrate their workloads to other solutions as soon as possible. If you have questions about migration, reach out to the AWS Support Team on AWS re:Post
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
.