Skip to content

Commit

Permalink
Pricing Endpoint for eu-central-1 (#4495)
Browse files Browse the repository at this point in the history
  • Loading branch information
riteshsonawane1372 authored Sep 1, 2023
1 parent 4e485a9 commit b4f8ca2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/providers/pricing/pricing.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ func NewAPI(sess *session.Session, region string) pricingiface.PricingAPI {
pricingAPIRegion := "us-east-1"
if strings.HasPrefix(region, "ap-") || strings.HasPrefix(region, "cn-") {
pricingAPIRegion = "ap-south-1"
} else if strings.HasPrefix(region, "eu-") {
pricingAPIRegion = "eu-central-1"
}
return pricing.New(sess, &aws.Config{Region: aws.String(pricingAPIRegion)})
}
Expand Down

0 comments on commit b4f8ca2

Please sign in to comment.