Skip to content

fix(ec2): RunInstances response includes tagSet for launch-time tags (#351) - #352

Merged
scttfrdmn merged 1 commit into
mainfrom
fix/351-runinstances-tagset
Jul 20, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
fix/351-runinstances-tagset

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

Problem

RunInstances stored TagSpecification tags but its response item struct had no tagSet field, so SDK callers reading the returned instance's tags got an empty set — even though a later DescribeInstances rendered them fine. Real EC2 populates tagSet in the RunInstances response.

Fix

Add tagSet to the runInstancesResponse item struct and populate from inst.Tags, mirroring the DescribeInstances renderer.

Per the reporter's note, I checked StartInstances/StopInstances too — they correctly return only instanceId + currentState/previousState (no tagSet), matching AWS, so no change there.

Verification

TestEC2_RunInstances_ReturnsTagSet launches with two TagSpecification tags and asserts both appear in the RunInstances response tagSet. make test (race) + make lint clean. Found building spawn-ts (browser EC2 launcher using #346's CORS).

Closes #351

…351)

RunInstances stored TagSpecification tags but its response item struct had no
tagSet field, so SDK callers reading the returned instance's tags got an empty
set (a later DescribeInstances rendered them fine). Real EC2 populates tagSet in
the RunInstances response. Add the field + populate from inst.Tags, mirroring the
DescribeInstances renderer.

Verified StartInstances/StopInstances responses correctly omit tagSet (matching
AWS — they return only currentState/previousState), so no change there.

Regression test TestEC2_RunInstances_ReturnsTagSet. make test (race) + lint clean.

Closes #351
@scttfrdmn
scttfrdmn merged commit 8fb7c20 into main Jul 20, 2026
9 checks passed
@scttfrdmn
scttfrdmn deleted the fix/351-runinstances-tagset branch July 20, 2026 20:56
@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RunInstances response omits tagSet for launch-time TagSpecifications

1 participant