2021-06-09 02:35:42 +02:00
|
|
|
---
|
|
|
|
sidebar_label: rds
|
|
|
|
---
|
|
|
|
|
2021-06-23 16:31:42 +02:00
|
|
|
# alpha.dagger.io/aws/rds
|
2021-06-09 02:35:42 +02:00
|
|
|
|
2021-06-15 10:48:54 +02:00
|
|
|
AWS Relational Database Service (RDS)
|
|
|
|
|
2021-06-16 12:14:39 +02:00
|
|
|
```cue
|
2021-06-23 16:31:42 +02:00
|
|
|
import "alpha.dagger.io/aws/rds"
|
2021-06-16 12:14:39 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
## rds.#Database
|
2021-06-09 02:35:42 +02:00
|
|
|
|
2021-06-15 10:48:54 +02:00
|
|
|
Creates a new Database on an existing RDS Instance
|
|
|
|
|
2021-06-16 12:14:39 +02:00
|
|
|
### rds.#Database Inputs
|
2021-06-09 02:35:42 +02:00
|
|
|
|
2021-08-31 17:16:04 +02:00
|
|
|
| Name | Type | Description |
|
|
|
|
| ------------- |:-------------: |:-------------: |
|
|
|
|
|*config.region* | `string` |AWS region |
|
|
|
|
|*config.accessKey* | `dagger.#Secret` |AWS access key |
|
|
|
|
|*config.secretKey* | `dagger.#Secret` |AWS secret key |
|
|
|
|
|*config.localMode* | `*false \| bool` |AWS localstack mode |
|
|
|
|
|*name* | `string` |DB name |
|
|
|
|
|*dbArn* | `string` |ARN of the database instance |
|
|
|
|
|*secretArn* | `string` |ARN of the database secret (for connecting via rds api) |
|
|
|
|
|*dbType* | `string` |Database type MySQL or PostgreSQL (Aurora Serverless only) |
|
2021-06-09 02:35:42 +02:00
|
|
|
|
2021-06-16 12:14:39 +02:00
|
|
|
### rds.#Database Outputs
|
2021-06-09 02:35:42 +02:00
|
|
|
|
|
|
|
| Name | Type | Description |
|
|
|
|
| ------------- |:-------------: |:-------------: |
|
|
|
|
|*out* | `string` |Name of the DB created |
|
|
|
|
|
2021-06-16 12:14:39 +02:00
|
|
|
## rds.#Instance
|
2021-06-09 02:35:42 +02:00
|
|
|
|
2021-06-15 10:48:54 +02:00
|
|
|
Fetches information on an existing RDS Instance
|
|
|
|
|
2021-06-16 12:14:39 +02:00
|
|
|
### rds.#Instance Inputs
|
2021-06-09 02:35:42 +02:00
|
|
|
|
2021-08-31 17:16:04 +02:00
|
|
|
| Name | Type | Description |
|
|
|
|
| ------------- |:-------------: |:-------------: |
|
|
|
|
|*config.region* | `string` |AWS region |
|
|
|
|
|*config.accessKey* | `dagger.#Secret` |AWS access key |
|
|
|
|
|*config.secretKey* | `dagger.#Secret` |AWS secret key |
|
|
|
|
|*config.localMode* | `*false \| bool` |AWS localstack mode |
|
|
|
|
|*dbArn* | `string` |ARN of the database instance |
|
2021-06-09 02:35:42 +02:00
|
|
|
|
2021-06-16 12:14:39 +02:00
|
|
|
### rds.#Instance Outputs
|
2021-06-09 02:35:42 +02:00
|
|
|
|
|
|
|
| Name | Type | Description |
|
|
|
|
| ------------- |:-------------: |:-------------: |
|
|
|
|
|*hostname* | `_\|_` |DB hostname |
|
|
|
|
|*port* | `_\|_` |DB port |
|
|
|
|
|*info* | `_\|_` |- |
|
2021-06-15 18:10:57 +02:00
|
|
|
|
2021-06-16 12:14:39 +02:00
|
|
|
## rds.#User
|
2021-06-15 18:10:57 +02:00
|
|
|
|
|
|
|
Creates a new user credentials on an existing RDS Instance
|
|
|
|
|
2021-06-16 12:14:39 +02:00
|
|
|
### rds.#User Inputs
|
2021-06-15 18:10:57 +02:00
|
|
|
|
2021-08-31 17:16:04 +02:00
|
|
|
| Name | Type | Description |
|
|
|
|
| ------------- |:-------------: |:-------------: |
|
|
|
|
|*config.region* | `string` |AWS region |
|
|
|
|
|*config.accessKey* | `dagger.#Secret` |AWS access key |
|
|
|
|
|*config.secretKey* | `dagger.#Secret` |AWS secret key |
|
|
|
|
|*config.localMode* | `*false \| bool` |AWS localstack mode |
|
|
|
|
|*username* | `string` |Username |
|
|
|
|
|*password* | `string` |Password |
|
|
|
|
|*dbArn* | `string` |ARN of the database instance |
|
|
|
|
|*secretArn* | `string` |ARN of the database secret (for connecting via rds api) |
|
|
|
|
|*grantDatabase* | `*"" \| string` |Name of the database to grants access to |
|
|
|
|
|*dbType* | `string` |Database type MySQL or PostgreSQL (Aurora Serverless only) |
|
2021-06-15 18:10:57 +02:00
|
|
|
|
2021-06-16 12:14:39 +02:00
|
|
|
### rds.#User Outputs
|
2021-06-15 18:10:57 +02:00
|
|
|
|
2022-02-08 21:12:05 +01:00
|
|
|
| Name | Type | Description |
|
|
|
|
| ------------- |:-------------: |:-------------: |
|
|
|
|
|*out* | `string` |Outputted username |
|