We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ee3670 commit d51d15fCopy full SHA for d51d15f
pkg/aws/services/vpclattice.go
@@ -25,17 +25,14 @@ type defaultLattice struct {
25
vpclatticeiface.VpcLatticeAPI
26
}
27
28
-const (
29
- GammaEndpoint = "https://mercury-gamma.us-west-2.amazonaws.com/"
30
- BetaProdEndpoint = "https://vpc-lattice.us-west-2.amazonaws.com"
31
-)
32
-
33
func NewDefaultLattice(sess *session.Session, region string) *defaultLattice {
34
var latticeSess vpclatticeiface.VpcLatticeAPI
+
+ latticeEndpoint := "https://vpc-lattice." + region + ".amazonaws.com"
35
endpoint := os.Getenv("LATTICE_ENDPOINT")
36
37
if endpoint == "" {
38
- endpoint = BetaProdEndpoint
+ endpoint = latticeEndpoint
39
40
41
latticeSess = vpclattice.New(sess, aws.NewConfig().WithRegion(region).WithEndpoint(endpoint))
0 commit comments