Resource: awsOpsworksRdsDbInstance
Provides an OpsWorks RDS DB Instance resource.
\~> Note: All arguments including the username and password will be stored in the raw state as plain-text. Read more about sensitive data in state.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.opsworksRdsDbInstance.OpsworksRdsDbInstance(this, "my_instance", {
dbPassword: "somePass",
dbUser: "someUser",
rdsDbInstanceArn: "${aws_db_instance.my_instance.arn}",
stackId: "${aws_opsworks_stack.my_stack.id}",
});
Argument Reference
The following arguments are supported:
stackId
- (Required) The stack to register a db instance for. Changing this will force a new resource.rdsDbInstanceArn
- (Required) The db instance to register for this stack. Changing this will force a new resource.dbUser
- (Required) A db usernamedbPassword
- (Required) A db password
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- The computed id. Please note that this is only used internally to identify the stack <-> instance relation. This value is not used in aws.