Skip to content

feat: add awsiamrds db auth driver #12566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Mar 20, 2024
Prev Previous commit
Next Next commit
add note
  • Loading branch information
f0ssel committed Mar 19, 2024
commit c256df33eaadaf26dee79d5cddc457f267742775
7 changes: 3 additions & 4 deletions coderd/database/awsrdsiam/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"os"
"testing"

"github.com/aws/aws-sdk-go-v2/config"
"github.com/stretchr/testify/require"

"cdr.dev/slog/sloggers/slogtest"
Expand All @@ -17,10 +16,10 @@ import (

func TestDriver(t *testing.T) {
t.Parallel()
cfg, err := config.LoadDefaultConfig(context.Background())
require.NoError(t, err)
t.Logf("%#v", cfg)
// Be sure to set AWS_DEFAULT_REGION to the database region as well.
// Example:
// export AWS_DEFAULT_REGION=us-east-2;
// export DBAWSIAMRDS_TEST_URL="postgres://user@host:5432/dbname";
url := os.Getenv("DBAWSIAMRDS_TEST_URL")
if url == "" {
t.Skip()
Expand Down