Skip to content

buildTags does not refuse a launch over AWS's 50-tag limit; maximal launch + all #1308 spored settings = 54 tags #1336

Closed

Description

@scttfrdmn

Found while doing #1308.

buildTags (pkg/aws/tags.go) never checks its own output against AWS's 50-tag limit. It only budgets the droppable spawn:param:* tags. TestTagsNeverExceedAWSLimit's maximalConfig came to 46 tags before #1308. With every #1308 spored setting also set (--idle-cpu-threshold, --metrics with port/bind/path, --tracing with sampling) it comes to 54. Measured by adding them to maximalConfig: 0 sweep params → 54 tags, over AWS's 50-tag limit by 4. RunInstances then rejects the launch outright. The documented monitoring setup (--metrics --metrics-bind 0.0.0.0 --idle-cpu-threshold) still fits, at 49 (TestMonitoringSettingsFitOnAMaximalLaunch).

This is not new with #1308. TestFunctionalTagsAreNeverDropped already builds 134 tags (80 --tags), and nothing before RunInstances objects. Proposal: once section 7 is appended, buildTags returns an error naming the count and the limit. The launch then fails in the shell before any AWS call, not after security groups/IAM/FSx are set up. Cost: that test changes from "builds 134 tags" to "refuses".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions