{"record":{"id":"355e6d8b90e92332","repo":"kubernetes/kops","slug":"downloading-nodeup-from-an-s3-url-is-not-suppor","errorCode":null,"errorMessage":"downloading nodeup from an s3:// URL is not supported in AWS region %q","messagePattern":"downloading nodeup from an s3:// URL is not supported in AWS region %q","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/model/resources/nodeup.go","lineNumber":443,"sourceCode":"\t}\n\tp, err := vfsContext.BuildVfsPath(location)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"building path for %q: %w\", location, err)\n\t}\n\ts3Path, ok := p.(*vfs.S3Path)\n\tif !ok {\n\t\treturn fmt.Errorf(\"unexpected path type %T for %q\", p, location)\n\t}\n\tb.S3Region, err = s3Path.Region(ctx)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"getting the region of %q: %w\", location, err)\n\t}\n\tsupported, err := awsup.SupportsS3BootstrapEndpoint(ctx, b.S3Region)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif !supported {\n\t\treturn fmt.Errorf(\"downloading nodeup from an s3:// URL is not supported in AWS region %q\", b.S3Region)\n\t}\n\treturn nil\n}\n\nfunc gzipBase64(data string) (string, error) {\n\tvar b bytes.Buffer\n\tgz := gzip.NewWriter(&b)\n\n\t_, err := gz.Write([]byte(data))\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\tif err = gz.Flush(); err != nil {\n\t\treturn \"\", err\n\t}\n\n\tif err = gz.Close(); err != nil {","sourceCodeStart":425,"sourceCodeEnd":461,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/pkg/model/resources/nodeup.go#L425-L461","documentation":"The nodeup artifact is served from an s3:// URL, but the bucket's region does not support the S3 bootstrap endpoint mechanism (SupportsS3BootstrapEndpoint returned false). This is a regional capability check for pre-IMDS-style bootstrap endpoints, not a transient failure.","triggerScenarios":"Thrown at pkg/model/resources/nodeup.go:443 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Copy the nodeup artifacts to a bucket in a supported region and update the location","Use a non-s3 base URL (e.g. https) for nodeup distribution"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}