code: func (p *ecrProvider) Enabled() bool {
  	sess, err := session.NewSessionWithOptions(session.Options{
  		SharedConfigState: session.SharedConfigEnable,
  	})
  	if err != nil {
  		klog.Errorf("while validating AWS credentials %v", err)
  		return false
  	}
  	if _, err := sess.Config.Credentials.Get(); err != nil {
  		klog.Errorf("while getting AWS credentials %v", err)
  		return false
  	}
  	return true
  }
docs: // Enabled implements DockerConfigProvider.Enabled. Enabled is true if AWS
  // credentials are found.