You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Detached sweep members drop every non-tag RunInstances setting: volume_size, security groups, subnet/AZ, spot_max_price, hibernation, EFA, placement (#1330 follow-up) #1353
Found while fixing #1330. With that fix a detached (Lambda-orchestrated) sweep member carries the same tags a foreground member does. Its RunInstances request still carries almost nothing else from the member's config.
Evidence (code trace on branch fix/1330-1331-1327-detached-sweeps, not run on AWS)
buildRunInstancesInput (lambda/sweep-orchestrator/spored.go) sets only MinCount/MaxCount, InstanceType, UserData, IamInstanceProfile, TagSpecifications, ImageId, KeyName and, for spot: true, a bare InstanceMarketOptions{MarketType: spot}. The Lambda reads only ami, iam_role, instance_type, key_name, spot, spawn_user_data and spawn_tags from the params (TestDetachedSweepSeedsEveryKeyTheLambdaReads enforces that list).
Everything Client.Launch (pkg/aws/client.go) derives from the rest of the LaunchConfig is dropped on this path, for example:
--security-group / --vpc / --subnet / az: members land in the default VPC's default SG.
spot_max_price: ignored (no SpotOptions.MaxPrice).
hibernate / hibernate_on_idle / --on-idle hibernate: no HibernationOptions and no RAM-sized encrypted root, so the spawn:hibernate-on-idle tag now rides on an instance that cannot hibernate.
EFA, placement group, nested virtualization, capacity reservation / Capacity Block, --attach-volume, FSx/EFS IDs that are created at launch.
Persistent Spot (#922) is the one I handled in #1330: such a member is now refused up front with a pointer at ttl: or --no-detach, because the orchestrator has no way to cancel a persistent request before terminating its instance (terminateUnverifiedMembers calls TerminateInstances directly), and an orphaned persistent request launches replacements.
Suggested
The same shape as #1323/#1330: render the RunInstances-side settings on the CLI (or a param the Lambda can apply verbatim), or refuse, before upload, a detached sweep whose members set something the orchestrator cannot apply, pointing at --no-detach. Persistent Spot additionally needs the cancel-before-terminate path in the orchestrator and ec2:CancelSpotInstanceRequests on the cross-account role.
Activity
fix(sweep): orchestrator launches legacy params (no spawn_launch_sett…
fix(sweep): carry every RunInstances setting to detached sweep member…
fix(sweep): name the real remedy when a detached sweep refuses a sett…
fix(sweep): orchestrator launches legacy params (no spawn_launch_sett…
fix(sweep): carry every RunInstances setting to detached sweep member…