Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/aws/services/vpclattice.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,11 @@ func (d *defaultLattice) buildServiceNetworkInfo(ctx context.Context, snMatch *v
// by examining VPC associations. This is used to discover RAM-shared
// service networks that don't appear in ListServiceNetworks.
func (d *defaultLattice) findServiceNetworkViaVPCAssociation(ctx context.Context, nameOrId string) (*ServiceNetworkInfo, error) {
// Validate that VPC ID is configured
if config.VpcID == "" {
return nil, fmt.Errorf("cannot discover RAM-shared service networks: CLUSTER_VPC_ID environment variable is not set")
}

// List all VPC-to-Service Network associations for the controller's VPC
associations, err := d.ListServiceNetworkVpcAssociationsAsList(ctx,
&vpclattice.ListServiceNetworkVpcAssociationsInput{
Expand Down