{"record":{"id":"368a0573e6bda943","repo":"kubernetes/kops","slug":"error-creating-tags-on-v-v","errorCode":null,"errorMessage":"error creating tags on %v: %v","messagePattern":"error creating tags on (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/awsup/aws_cloud.go","lineNumber":1284,"sourceCode":"\t\t}\n\n\t\t_, err := c.EC2().CreateTags(ctx, request)\n\t\tif err != nil {\n\t\t\tif isTagsEventualConsistencyError(err) {\n\t\t\t\tif attempt > CreateTagsMaxAttempts {\n\t\t\t\t\treturn fmt.Errorf(\"got retryable error while creating tags on %q, but retried too many times without success: %v\", resourceID, err)\n\t\t\t\t}\n\n\t\t\t\tif (attempt % CreateTagsLogInterval) == 0 {\n\t\t\t\t\tklog.Infof(\"waiting for eventual consistency while creating tags on %q\", resourceID)\n\t\t\t\t}\n\n\t\t\t\tklog.V(2).Infof(\"will retry after encountering error creating tags on %q: %v\", resourceID, err)\n\t\t\t\ttime.Sleep(CreateTagsRetryInterval)\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\treturn fmt.Errorf(\"error creating tags on %v: %v\", resourceID, err)\n\t\t}\n\n\t\treturn nil\n\t}\n}\n\n// DeleteTags will remove tags from the specified resource,\n// retrying up to MaxCreateTagsAttempts times if it hits an eventual-consistency type error\nfunc (c *awsCloudImplementation) DeleteTags(resourceID string, tags map[string]string) error {\n\treturn deleteTags(c, resourceID, tags)\n}\n\nfunc deleteTags(c AWSCloud, resourceID string, tags map[string]string) error {\n\tif len(tags) == 0 {\n\t\treturn nil\n\t}\n\tctx := context.TODO()\n","sourceCodeStart":1266,"sourceCodeEnd":1302,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/awsup/aws_cloud.go#L1266-L1302","documentation":"CreateTags failed with a non-retryable error (outside the eventual-consistency class), aborting tag application on resource %v. Fires on permission denied, nonexistent resource, or throttling not classified as retryable.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/awsup/aws_cloud.go:1284 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify ec2:CreateTags permission on the resource","Confirm the resource ID exists in the account and region","Inspect the wrapped error for the specific EC2 failure code"],"exampleFix":null,"handlingStrategy":"retry","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"}