Skip to content

Commit

Permalink
Include rds_global_cluster endpoint in connection details
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Atzert <[email protected]>
  • Loading branch information
fillerimiz committed Dec 23, 2024
1 parent 973cb21 commit 149d099
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/rds/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,16 @@ func Configure(p *config.Provider) { //nolint:gocyclo
}
})

p.AddResourceConfigurator("aws_rds_global_cluster", func(r *config.Resource) {
r.UseAsync = true
r.Sensitive.AdditionalConnectionDetailsFn = func(attr map[string]any) (map[string][]byte, error) {
conn := map[string][]byte{}
if a, ok := attr["endpoint"].(string); ok {
conn["endpoint"] = []byte(a)
}
return conn, nil
}

p.AddResourceConfigurator("aws_db_proxy", func(r *config.Resource) {
r.UseAsync = true
})
Expand Down

0 comments on commit 149d099

Please sign in to comment.