kubernetes/kops · error

error creating tags on %v: %v

Error message

error creating tags on %v: %v

What it means

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.

Source

Thrown at upup/pkg/fi/cloudup/awsup/aws_cloud.go:1284

		}

		_, err := c.EC2().CreateTags(ctx, request)
		if err != nil {
			if isTagsEventualConsistencyError(err) {
				if attempt > CreateTagsMaxAttempts {
					return fmt.Errorf("got retryable error while creating tags on %q, but retried too many times without success: %v", resourceID, err)
				}

				if (attempt % CreateTagsLogInterval) == 0 {
					klog.Infof("waiting for eventual consistency while creating tags on %q", resourceID)
				}

				klog.V(2).Infof("will retry after encountering error creating tags on %q: %v", resourceID, err)
				time.Sleep(CreateTagsRetryInterval)
				continue
			}

			return fmt.Errorf("error creating tags on %v: %v", resourceID, err)
		}

		return nil
	}
}

// DeleteTags will remove tags from the specified resource,
// retrying up to MaxCreateTagsAttempts times if it hits an eventual-consistency type error
func (c *awsCloudImplementation) DeleteTags(resourceID string, tags map[string]string) error {
	return deleteTags(c, resourceID, tags)
}

func deleteTags(c AWSCloud, resourceID string, tags map[string]string) error {
	if len(tags) == 0 {
		return nil
	}
	ctx := context.TODO()

View on GitHub (pinned to 4c8573c808)

Solutions

  1. Verify ec2:CreateTags permission on the resource
  2. Confirm the resource ID exists in the account and region
  3. Inspect the wrapped error for the specific EC2 failure code
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at upup/pkg/fi/cloudup/awsup/aws_cloud.go:1284 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of kubernetes/kops@4c8573c808 (2026-09-05). Data as JSON: /api/errors/368a0573e6bda943. Report an issue: GitHub.