Skip to content

Commit

Permalink
Merge branch 'main' into refact-rds
Browse files Browse the repository at this point in the history
  • Loading branch information
nstrappazzonc committed Oct 16, 2023
2 parents 297156a + 7d107ee commit a26ac03
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion aws/rds/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package rds

import (
"errors"

"github.com/debeando/go-common/retry"

"github.com/aws/aws-sdk-go/aws"
Expand All @@ -21,7 +23,11 @@ type RDS struct {
Zone string `json:"zone"` // New instance Availability Zone.
}

func (r *RDS) Init() (err error) {
func (c *Config) Init() (err error) {

Check failure on line 26 in aws/rds/main.go

View workflow job for this annotation

GitHub Actions / Check code quality and run tests

undefined: Config
if len(c.Region) == 0 {
return errors.New("Empty environment variable: AWS_REGION")
}

sess, err := session.NewSession(&aws.Config{
Region: aws.String(r.Region),

Check failure on line 32 in aws/rds/main.go

View workflow job for this annotation

GitHub Actions / Check code quality and run tests

undefined: r
})
Expand Down

0 comments on commit a26ac03

Please sign in to comment.