mirror of
https://github.com/Luzifer/cloudkeys-go.git
synced 2024-11-14 17:02:43 +00:00
9c6e3c89a5
* fix js scoping issue * add external libraries (they were offline too often) * new compiled scripts and css * new fixes in the binary * vendor update * change js source * remove needless variable * removed more needless variables
18 lines
918 B
Go
18 lines
918 B
Go
// Package rdsutils is used to generate authentication tokens used to
|
|
// connect to a givent Amazon Relational Database Service (RDS) database.
|
|
//
|
|
// Before using the authentication please visit the docs here to ensure
|
|
// the database has the proper policies to allow for IAM token authentication.
|
|
// https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html#UsingWithRDS.IAMDBAuth.Availability
|
|
//
|
|
// When building the connection string, there are two required parameters that are needed to be set on the query.
|
|
// * tls
|
|
// * allowCleartextPasswords must be set to true
|
|
//
|
|
// Example creating a basic auth token with the builder:
|
|
// v := url.Values{}
|
|
// v.Add("tls", "tls_profile_name")
|
|
// v.Add("allowCleartextPasswords", "true")
|
|
// b := rdsutils.NewConnectionStringBuilder(endpoint, region, user, dbname, creds)
|
|
// connectStr, err := b.WithTCPFormat().WithParams(v).Build()
|
|
package rdsutils
|