Skip to main content

alpha.dagger.io/aws/rds

AWS Relational Database Service (RDS)

import "alpha.dagger.io/aws/rds"

rds.#Database

Creates a new Database on an existing RDS Instance

rds.#Database Inputs

NameTypeDescription
config.regionstringAWS region
config.accessKeydagger.#SecretAWS access key
config.secretKeydagger.#SecretAWS secret key
config.localMode*false \| boolAWS localstack mode
namestringDB name
dbArnstringARN of the database instance
secretArnstringARN of the database secret (for connecting via rds api)
dbTypestringDatabase type MySQL or PostgreSQL (Aurora Serverless only)

rds.#Database Outputs

NameTypeDescription
outstringName of the DB created

rds.#Instance

Fetches information on an existing RDS Instance

rds.#Instance Inputs

NameTypeDescription
config.regionstringAWS region
config.accessKeydagger.#SecretAWS access key
config.secretKeydagger.#SecretAWS secret key
config.localMode*false \| boolAWS localstack mode
dbArnstringARN of the database instance

rds.#Instance Outputs

NameTypeDescription
hostname_\|_DB hostname
port_\|_DB port
info_\|_-

rds.#User

Creates a new user credentials on an existing RDS Instance

rds.#User Inputs

NameTypeDescription
config.regionstringAWS region
config.accessKeydagger.#SecretAWS access key
config.secretKeydagger.#SecretAWS secret key
config.localMode*false \| boolAWS localstack mode
usernamestringUsername
passwordstringPassword
dbArnstringARN of the database instance
secretArnstringARN of the database secret (for connecting via rds api)
grantDatabase*"" \| stringName of the database to grants access to
dbTypestringDatabase type MySQL or PostgreSQL (Aurora Serverless only)

rds.#User Outputs

NameTypeDescription
outstringOutputed username