chore: remove unnecessary dependency (#7938)

This commit is contained in:
Piyush Singariya 2025-05-14 15:40:25 +05:30 committed by GitHub
parent 96cfb607d1
commit 81b8f93177
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 30 additions and 31 deletions

2
go.mod
View File

@ -11,7 +11,6 @@ require (
github.com/SigNoz/signoz-otel-collector v0.111.39 github.com/SigNoz/signoz-otel-collector v0.111.39
github.com/antlr4-go/antlr/v4 v4.13.1 github.com/antlr4-go/antlr/v4 v4.13.1
github.com/antonmedv/expr v1.15.3 github.com/antonmedv/expr v1.15.3
github.com/aws/aws-sdk-go v1.55.5
github.com/cespare/xxhash/v2 v2.3.0 github.com/cespare/xxhash/v2 v2.3.0
github.com/coreos/go-oidc/v3 v3.11.0 github.com/coreos/go-oidc/v3 v3.11.0
github.com/dustin/go-humanize v1.0.1 github.com/dustin/go-humanize v1.0.1
@ -94,6 +93,7 @@ require (
github.com/andybalholm/brotli v1.1.1 // indirect github.com/andybalholm/brotli v1.1.1 // indirect
github.com/armon/go-metrics v0.4.1 // indirect github.com/armon/go-metrics v0.4.1 // indirect
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
github.com/aws/aws-sdk-go v1.55.5 // indirect
github.com/bboreham/go-loser v0.0.0-20230920113527-fcc2c21820a3 // indirect github.com/bboreham/go-loser v0.0.0-20230920113527-fcc2c21820a3 // indirect
github.com/beevik/etree v1.1.0 // indirect github.com/beevik/etree v1.1.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect github.com/beorn7/perks v1.0.1 // indirect

View File

@ -2,7 +2,6 @@ package cloudintegrations
import ( import (
"github.com/SigNoz/signoz/pkg/errors" "github.com/SigNoz/signoz/pkg/errors"
"github.com/aws/aws-sdk-go/aws/endpoints"
) )
var ( var (
@ -12,33 +11,33 @@ var (
// List of all valid cloud regions on Amazon Web Services // List of all valid cloud regions on Amazon Web Services
var ValidAWSRegions = map[string]bool{ var ValidAWSRegions = map[string]bool{
endpoints.AfSouth1RegionID: true, "af-south-1": true, // Africa (Cape Town).
endpoints.ApEast1RegionID: true, "ap-east-1": true, // Asia Pacific (Hong Kong).
endpoints.ApNortheast1RegionID: true, "ap-northeast-1": true, // Asia Pacific (Tokyo).
endpoints.ApNortheast2RegionID: true, "ap-northeast-2": true, // Asia Pacific (Seoul).
endpoints.ApNortheast3RegionID: true, "ap-northeast-3": true, // Asia Pacific (Osaka).
endpoints.ApSouth1RegionID: true, "ap-south-1": true, // Asia Pacific (Mumbai).
endpoints.ApSouth2RegionID: true, "ap-south-2": true, // Asia Pacific (Hyderabad).
endpoints.ApSoutheast1RegionID: true, "ap-southeast-1": true, // Asia Pacific (Singapore).
endpoints.ApSoutheast2RegionID: true, "ap-southeast-2": true, // Asia Pacific (Sydney).
endpoints.ApSoutheast3RegionID: true, "ap-southeast-3": true, // Asia Pacific (Jakarta).
endpoints.ApSoutheast4RegionID: true, "ap-southeast-4": true, // Asia Pacific (Melbourne).
endpoints.CaCentral1RegionID: true, "ca-central-1": true, // Canada (Central).
endpoints.CaWest1RegionID: true, "ca-west-1": true, // Canada West (Calgary).
endpoints.EuCentral1RegionID: true, "eu-central-1": true, // Europe (Frankfurt).
endpoints.EuCentral2RegionID: true, "eu-central-2": true, // Europe (Zurich).
endpoints.EuNorth1RegionID: true, "eu-north-1": true, // Europe (Stockholm).
endpoints.EuSouth1RegionID: true, "eu-south-1": true, // Europe (Milan).
endpoints.EuSouth2RegionID: true, "eu-south-2": true, // Europe (Spain).
endpoints.EuWest1RegionID: true, "eu-west-1": true, // Europe (Ireland).
endpoints.EuWest2RegionID: true, "eu-west-2": true, // Europe (London).
endpoints.EuWest3RegionID: true, "eu-west-3": true, // Europe (Paris).
endpoints.IlCentral1RegionID: true, "il-central-1": true, // Israel (Tel Aviv).
endpoints.MeCentral1RegionID: true, "me-central-1": true, // Middle East (UAE).
endpoints.MeSouth1RegionID: true, "me-south-1": true, // Middle East (Bahrain).
endpoints.SaEast1RegionID: true, "sa-east-1": true, // South America (Sao Paulo).
endpoints.UsEast1RegionID: true, "us-east-1": true, // US East (N. Virginia).
endpoints.UsEast2RegionID: true, "us-east-2": true, // US East (Ohio).
endpoints.UsWest1RegionID: true, "us-west-1": true, // US West (N. California).
endpoints.UsWest2RegionID: true, "us-west-2": true, // US West (Oregon).
} }