Replies: 1 comment
-
Hi @ptilotta , It is possible to use the SDK to interact with RDS aurora. I see that there are some methods missing from the SDK, but you can use the following example to read the scaling config of a desired cluster For example: package main
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/service/rds"
"log"
)
func main() {
cfg, err := config.LoadDefaultConfig(context.TODO(), config.WithRegion("us-east-1"), config.WithClientLogMode(aws.LogResponseWithBody))
if err != nil {
log.Fatalf("unable to load SDK config, %v", err)
}
client := rds.NewFromConfig(cfg)
res, err := client.DescribeDBClusters(context.Background(), &rds.DescribeDBClustersInput{
DBClusterIdentifier: aws.String(myClusterIdentifier),
})
if err != nil {
fmt.Println(err)
}
fmt.Println("minCapacity: ", *res.DBClusters[0].ScalingConfigurationInfo.MinCapacity)
} Thanks, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Are the SDK v2 available to interact with Aurora MySQL Serverless 2 clusters ?
We need to read the cluster capacity (min, max and current) ACUS
Thanks
Beta Was this translation helpful? Give feedback.
All reactions