MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / ValidateCredentials

Method ValidateCredentials

internal/aws/clients.go:186–189  ·  view source on GitHub ↗

ValidateCredentials checks if AWS credentials are valid

(ctx context.Context)

Source from the content-addressed store, hash-verified

184
185// ValidateCredentials checks if AWS credentials are valid
186func (f *ClientFactory) ValidateCredentials(ctx context.Context) error {
187 _, err := f.GetAccountID(ctx)
188 return err
189}
190
191// GetRegion returns the configured AWS region
192func (f *ClientFactory) GetRegion() string {

Callers 3

runDestroyFunction · 0.95
runStatusFunction · 0.95
runDeployFunction · 0.95

Calls 1

GetAccountIDMethod · 0.95

Tested by

no test coverage detected