# RDS_MYSQL

> For AI agents: the complete documentation index is at https://buddy.works/llms.txt

AWS RDS for MySQL target for executing queries on an RDS-managed MySQL instance.

## YAML parameters for RDS_MYSQL

```typescript
interface YAMLParameters {
  /** Hash ID or identifier of an AWS integration. */
  integration: string;
  /** AWS region of the RDS instance, e.g. us-east-1 */
  region: string;
  /** RDS DB instance identifier */
  db_instance_identifier: string;
  /** The endpoint hostname of the RDS instance */
  host: string;
  /** The human-readable ID of the target */
  target: string;
  /** The name of the target */
  name?: string;
  /** The port of the RDS MySQL instance. Default: 3306 */
  port?: string;
  /** The default database name */
  database?: string;
  /** SSL connection mode. Default: REQUIRE. VERIFY_FULL cannot be combined with proxy — through an SSH tunnel the client connects to 127.0.0.1, so the server certificate fails hostname validation. */
  ssl_mode?: "DISABLE" | "REQUIRE" | "VERIFY_FULL";
  /** PEM-encoded CA certificate (required when ssl_mode is VERIFY_FULL) */
  ca_certificate?: string;
  /** MySQL authentication credentials */
  auth?: MysqlAuthYaml;
  /** SSH proxy target for tunneling to RDS instances in private VPCs. Keep ssl_mode at REQUIRE (the default) — TLS still terminates on the RDS instance, so the bastion never sees the wire protocol. VERIFY_FULL is not usable together with a proxy. */
  proxy?: string;
  /** Access permissions for the target */
  permissions?: PermissionsYaml;
  /** Indicates if this target is disabled (default: false) */
  disabled?: boolean;
  /** The list of tags associated with the target */
  tags?: string[];
  /** Defines how the target can be used (as deployment target, proxy, or both) */
  use_as?: UseAsYaml;
  /** Note for this resource */
  note?: string;
  /** YAML note for AI agents operating on this resource */
  agent_note?: string;
  type?: "RDS_MYSQL";
}
```

## Type Definitions

```typescript
interface MysqlAuthYaml {
  /** The MySQL username */
  username?: string;
  /** The MySQL password */
  password?: string;
}

interface PermissionsYaml {
  /** Access level for other workspace members. Allowed levels depend on the resource: pipelines and sandboxes accept `DENIED`, `READ_ONLY`, `RUN_ONLY`, `READ_WRITE` or `DEFAULT`; actions `DENIED` or `ALLOWED`; environments `DENIED`, `USE_ONLY`, `MANAGE` or `DEFAULT`; distributions `DENIED`, `READ_ONLY`, `MANAGE` or `DEFAULT` */
  others?: "DENIED" | "READ_ONLY" | "USE_ONLY" | "BLIND" | "RUN_ONLY" | "READ_WRITE" | "MANAGE" | "DEFAULT" | "ALLOWED" | "STAGE" | "COMMIT";
  /** Map of specific users (username or email) to their access levels. A user who is not a member of the project (of the workspace for a sandbox outside a project) is ignored without an error. Allowed levels depend on the resource: pipelines and sandboxes accept `DENIED`, `READ_ONLY`, `RUN_ONLY`, `READ_WRITE` or `DEFAULT`; actions `DENIED` or `ALLOWED`; environments `DENIED`, `USE_ONLY`, `MANAGE` or `DEFAULT`; distributions `DENIED`, `READ_ONLY`, `MANAGE` or `DEFAULT` */
  users?: object;
  /** List of user groups with their access levels. A group that is not added to the project (does not exist in the workspace for a sandbox outside a project) is ignored without an error. Allowed levels depend on the resource: pipelines and sandboxes accept `DENIED`, `READ_ONLY`, `RUN_ONLY`, `READ_WRITE` or `DEFAULT`; actions `DENIED` or `ALLOWED`; environments `DENIED`, `USE_ONLY`, `MANAGE` or `DEFAULT`; distributions `DENIED`, `READ_ONLY`, `MANAGE` or `DEFAULT` */
  groups?: object;
  /** List of pipelines allowed to access this resource */
  pipelines?: AllowedPipelineYaml[];
  /** List of sandboxes allowed to access this resource */
  sandboxes?: AllowedSandboxYaml[];
}

interface AllowedPipelineYaml {
  /** Access level granted to every pipeline. Allowed levels depend on the resource: targets accept `DENIED` or `USE_ONLY` (agent targets also `READ_WRITE`, the project repository target `DENIED`, `READ_ONLY` or `READ_WRITE`); artifacts accept `DENIED`, `READ_ONLY`, `READ_WRITE` or `MANAGE` */
  all?: "DENIED" | "READ_ONLY" | "USE_ONLY" | "BLIND" | "RUN_ONLY" | "READ_WRITE" | "MANAGE" | "DEFAULT" | "ALLOWED" | "STAGE" | "COMMIT";
  /** Project name containing the allowed pipeline */
  project?: string;
  /** Pipeline identifier that is allowed to access this resource */
  pipeline?: string;
  /** Access level granted to the pipeline. Required when `project` and `pipeline` are set */
  access?: "DENIED" | "READ_ONLY" | "USE_ONLY" | "BLIND" | "RUN_ONLY" | "READ_WRITE" | "MANAGE" | "DEFAULT" | "ALLOWED" | "STAGE" | "COMMIT";
}

interface AllowedSandboxYaml {
  /** Access level granted to every sandbox. Targets accept `DENIED`, `READ_ONLY` or `READ_WRITE`; artifacts also `MANAGE` */
  all?: "DENIED" | "READ_ONLY" | "USE_ONLY" | "BLIND" | "RUN_ONLY" | "READ_WRITE" | "MANAGE" | "DEFAULT" | "ALLOWED" | "STAGE" | "COMMIT";
  /** Project name containing the allowed sandbox */
  project?: string;
  /** Sandbox identifier that is allowed to access this resource */
  sandbox?: string;
  /** Access level granted to the sandbox */
  access?: "DENIED" | "READ_ONLY" | "USE_ONLY" | "BLIND" | "RUN_ONLY" | "READ_WRITE" | "MANAGE" | "DEFAULT" | "ALLOWED" | "STAGE" | "COMMIT";
}

interface UseAsYaml {
  /** Whether the target can be used as a deployment target (default: on) */
  target?: boolean | "on" | "off";
  /** Whether the target can be used as a proxy (default: on) */
  proxy?: boolean | "on" | "off";
}

```

## YAML examples for RDS_MYSQL

### RDS MySQL target with SSL verification

```yaml
- target: rds-mysql-prod
  type: RDS_MYSQL
  name: Production MySQL on RDS
  integration: aws-prod
  region: us-east-1
  db_instance_identifier: my-prod-mysql
  host: my-prod-mysql.abc123.us-east-1.rds.amazonaws.com
  port: '3306'
  database: production
  ssl_mode: VERIFY_FULL
  ca_certificate: |
    -----BEGIN CERTIFICATE-----
    <paste the AWS RDS regional CA bundle for us-east-1 here>
    -----END CERTIFICATE-----
  auth:
    username: admin
    password: secured

```

### Minimal

```yaml
- target: rds-mysql
  type: RDS_MYSQL
  integration: aws-prod
  region: us-east-1
  db_instance_identifier: my-mysql
  host: my-mysql.abc123.us-east-1.rds.amazonaws.com
  auth:
    username: admin
    password: secured

```


---
Original source: https://buddy.works/docs/yaml/yaml-targets/rds-mysql