Skip to content

Apply Capacity Reservation tenancy to AWS instance launch#3992

Merged
jvstme merged 1 commit into
dstackai:masterfrom
james-boydell:aws-reservation-tenancy
Jun 25, 2026
Merged

Apply Capacity Reservation tenancy to AWS instance launch#3992
jvstme merged 1 commit into
dstackai:masterfrom
james-boydell:aws-reservation-tenancy

Conversation

@james-boydell

Copy link
Copy Markdown
Contributor

A Capacity Reservation created with non-default tenancy (e.g. dedicated) only accepts instances launched with a matching Placement.Tenancy. Previously dstack always launched with the implicit default tenancy, so runs targeting a dedicated-tenancy reservation failed to match it.

Read Tenancy from the reservation dstack already queries in create_instance and pass it through to create_instances_struct, which sets Placement.Tenancy when it is non-default. No user-facing config; it is detected automatically from the reservation and merges cleanly with the placement-group Placement entry.

A Capacity Reservation created with non-default tenancy (e.g. `dedicated`)
only accepts instances launched with a matching `Placement.Tenancy`.
Previously dstack always launched with the implicit `default` tenancy, so
runs targeting a dedicated-tenancy reservation failed to match it.

Read `Tenancy` from the reservation dstack already queries in
`create_instance` and pass it through to `create_instances_struct`, which
sets `Placement.Tenancy` when it is non-default. No user-facing config; it
is detected automatically from the reservation and merges cleanly with the
placement-group `Placement` entry.

Assisted-by: Claude
@peterschmidt85 peterschmidt85 requested a review from jvstme June 25, 2026 15:53
@jvstme jvstme merged commit 5e01dff into dstackai:master Jun 25, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants