in internal/cs/pushimage.go [99:113]
func getServiceRegistryAuth(ctx context.Context, rlc RegistryLoginCreator) (*types.AuthConfig, error) {
out, err := rlc.CreateContainerServiceRegistryLoginWithContext(
ctx,
new(lightsail.CreateContainerServiceRegistryLoginInput),
)
if err != nil {
return nil, err
}
return &types.AuthConfig{
Username: aws.StringValue(out.RegistryLogin.Username),
Password: aws.StringValue(out.RegistryLogin.Password),
ServerAddress: aws.StringValue(out.RegistryLogin.Registry) + "/sr",
}, nil
}