Skip to content
Discussion options

You must be logged in to vote

Ah you beautiful person. Thank you tons! Here is my working code. You got pretty much all of it.

    let region = "your_region"
    let serverHost = "RDS_host"
    let serverPort = "RDS_port"
    let dbUser = "DB_user"
    let secretKey = "your_secret)key"
    let accessKey = "your_access_key"
    let sessionToken = "your_session_token"
    let url = "https://\(serverHost):\(serverPort)/?Action=connect&DBUser=\(dbUser)"
    let credentials: Credential = StaticCredential(
        accessKeyId: accessKey,
        secretAccessKey: secretKey,
        sessionToken: sessionToken
    )
    let signer = AWSSigner(credentials: credentials, name: "rds-db", region: region)
    let signedURL = signer.…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@adam-fowler
Comment options

Answer selected by alteredtech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants