Skip to content

feat: support dynamic EC2 placement and block device overrides#5178

Merged
Brend-Smits merged 2 commits into
mainfrom
fix-missing-ec2-labels
Jun 19, 2026
Merged

feat: support dynamic EC2 placement and block device overrides#5178
Brend-Smits merged 2 commits into
mainfrom
fix-missing-ec2-labels

Conversation

@edersonbrilhante

@edersonbrilhante edersonbrilhante commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Description

Add missing dynamic EC2 override labels for placement and block device mappings, and align parseEc2OverrideConfig conditional ordering with the AWS SDK request property order.

This adds parser support for:

  • ghr-ec2-placement-group-name
  • ghr-ec2-placement-group-id
  • ghr-ec2-placement-availability-zone-id
  • ghr-ec2-block-device-name

When dynamic EBS or block device labels create an override without an explicit device name, scale-up now loads the default launch template version and uses its block device name for the CreateFleet override. The scale-up Lambda policy now includes ec2:DescribeLaunchTemplateVersions for that lookup.

Test Plan

Related Issues

#5173

Add missing dynamic labels for EC2 placement and block device mappings, and align parseEc2OverrideConfig conditional order with the AWS SDK request property order.
@github-actions

github-actions Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

When dynamic EBS or block-device labels create an override without an explicit DeviceName, load the default launch template version by name and use its block device name for the CreateFleet override.
@edersonbrilhante edersonbrilhante force-pushed the fix-missing-ec2-labels branch from 75e774f to ef6ce1a Compare June 16, 2026 16:17
@edersonbrilhante edersonbrilhante changed the title feat: add dynamic EC2 override labels feat: support dynamic EC2 placement and block device overrides Jun 16, 2026
@edersonbrilhante edersonbrilhante marked this pull request as ready for review June 16, 2026 17:05
@edersonbrilhante edersonbrilhante requested a review from a team as a code owner June 16, 2026 17:05

@npalm npalm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, asumming you teested the PR.

@edersonbrilhante

Copy link
Copy Markdown
Contributor Author

Yeap. I tested in my real environment and it worked just fine.

@Brend-Smits Brend-Smits merged commit 58fd1c2 into main Jun 19, 2026
10 of 11 checks passed
@Brend-Smits Brend-Smits deleted the fix-missing-ec2-labels branch June 19, 2026 09:44
Brend-Smits pushed a commit that referenced this pull request Jun 24, 2026
🤖 I have created a release *beep* *boop*
---


##
[7.8.0](v7.7.1...v7.8.0)
(2026-06-24)


### Features

* **runners:** add volume_initialization_rate to block_device_mappings
([#5165](#5165))
([449df46](449df46)),
closes
[#5163](#5163)
* support dynamic EC2 placement and block device overrides
([#5178](#5178))
([58fd1c2](58fd1c2))
* **webhook:** enforce per-runner dynamic labels policy in dispatcher
([#5172](#5172))
([d624d96](d624d96))


### Bug Fixes

* **ci:** restore persist-credentials for gh-pages deploy
([#5162](#5162))
([9955d73](9955d73))
* **codeowners:** require admin review for nested .github paths
([#5164](#5164))
([83ea30c](83ea30c))
* **mac:** handle RunInstances scale errors
([#5183](#5183))
([7d8c576](7d8c576))
* **scale-up:** prevent runnerLabels accumulation across dynamic label
groups
([#5176](#5176))
([246949e](246949e)),
closes
[#5175](#5175)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: runners-releaser[bot] <194412594+runners-releaser[bot]@users.noreply.github.com>
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.

3 participants