Repository navigation
feat(terraform): add SSM storage provider boundary - #5454
Merged
Merged
Conversation
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
edersonbrilhante
force-pushed
the
feat/ssm-storage-provider-terraform
branch
2 times, most recently
from
September 18, 2026 22:33
b48c0d3 to
d254931
Compare
edersonbrilhante
marked this pull request as draft
September 18, 2026 22:42
edersonbrilhante
force-pushed
the
feat/ssm-storage-provider-terraform
branch
9 times, most recently
from
September 18, 2026 23:57
b6a170c to
dbc3aaa
Compare
edersonbrilhante
force-pushed
the
feat/ssm-storage-provider-terraform
branch
from
September 19, 2026 00:16
83950de to
93f5536
Compare
edersonbrilhante
marked this pull request as ready for review
September 21, 2026 19:35
edersonbrilhante
enabled auto-merge (squash)
September 21, 2026 20:32
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Nine unresolved findings remain, including two critical issues.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 2
Open (2)
What changed in this PR
Adds an AWS SSM storage-provider boundary across runner, webhook, orchestration, and EC2 modules.
Changes:
- Relocates the SSM module under
modules/storage-providers/aws/ssm. - Nests global and lane configuration under storage-provider objects.
- Updates configuration propagation, IAM wiring, tests, documentation, and examples.
| File | Review summary |
|---|---|
README.md |
Updates root documentation. Critical (1 vote): workflow still validates removed modules/ssm; update the workflow list and documentation include. |
modules/webhook/webhook.tf |
Passes nested storage-provider configuration. No final comment. |
modules/webhook/variables.tf |
Defines webhook storage-provider input. No final comment. |
modules/webhook/README.md |
Updates webhook documentation. No final comment. |
modules/webhook/eventbridge/webhook.tf |
Uses nested KMS configuration. No final comment. |
modules/webhook/eventbridge/variables.tf |
Updates EventBridge configuration schema. No final comment. |
modules/webhook/eventbridge/README.md |
Updates EventBridge documentation. No final comment. |
modules/webhook/eventbridge/dispatcher.tf |
Updates dispatcher KMS wiring. No final comment. |
modules/webhook/direct/webhook.tf |
Moderate (1 vote): Lambda KMS policy is not gated on the selected aws_ssm provider; apply the same condition to EventBridge policies. |
modules/webhook/direct/variables.tf |
Updates direct webhook configuration schema. No final comment. |
modules/webhook/direct/README.md |
Updates direct webhook documentation. No final comment. |
modules/storage-providers/aws/ssm/versions.tf |
Adds SSM module requirements. No final comment. |
modules/storage-providers/aws/ssm/variables.tf |
Defines SSM inputs. No final comment. |
modules/storage-providers/aws/ssm/ssm.tf |
Creates SSM parameters and manifests. No final comment. |
modules/storage-providers/aws/ssm/README.md |
Documents the relocated module. No final comment. |
modules/storage-providers/aws/ssm/outputs.tf |
Exposes SSM parameter metadata. No final comment. |
modules/storage-providers/aws/ssm/local.tf |
Resolves the default KMS key. No final comment. |
modules/runners/README.md |
Updates runner documentation. No final comment. |
modules/runner-config/variables.tf |
Replaces the legacy SSM input. No final comment. |
modules/runner-config/validations.tf |
Uses nested SSM paths. No final comment. |
modules/runner-config/tests/tags.tftest.hcl |
Updates nested test inputs. No final comment. |
modules/runner-config/tests/pool.tftest.hcl |
Updates nested test inputs. No final comment. |
modules/runner-config/tests/fixtures/computed-iam-inputs/computed-iam-inputs.tf |
Updates fixture configuration. No final comment. |
modules/runner-config/ssm-housekeeper.tf |
Uses nested housekeeper settings. No final comment. |
modules/runner-config/runner-ssm-parameters.tf |
Moderate (1 vote): SSM parameters remain unconditional; gate parameter, housekeeper, and IAM resources on aws_ssm. |
modules/runner-config/README.md |
Updates runner-config documentation. No final comment. |
modules/runner-config/orchestration-provider.tf |
Passes resolved SSM settings downstream. No final comment. |
modules/runner-config/compute-provider.aws.ec2.tf |
Passes storage-provider configuration to EC2. No final comment. |
modules/runner-config/common-config.tf |
Resolves nested tags, paths, and KMS settings. No final comment. |
modules/orchestration-providers/webhook/variables.tf |
Adds storage-provider capabilities. No final comment. |
modules/orchestration-providers/webhook/tests/webhook.tftest.hcl |
Updates nested test inputs. No final comment. |
modules/orchestration-providers/webhook/scale-runners/variables.tf |
Adds scale-runner storage-provider inputs. No final comment. |
modules/orchestration-providers/webhook/scale-runners/tests/scale-runners.tftest.hcl |
Updates scale-runner tests. No final comment. |
modules/orchestration-providers/webhook/scale-runners/scale-up.tf |
Passes storage-provider environment variables. No final comment. |
modules/orchestration-providers/webhook/scale-runners/scale-up-iam-policies.tf |
Moderate (1 vote): KMS permissions are not gated on aws_ssm; apply the guard to the other SSM KMS policies. |
modules/orchestration-providers/webhook/scale-runners/scale-down.tf |
Updates environment wiring. No final comment. |
modules/orchestration-providers/webhook/scale-runners/scale-down-iam-policies.tf |
Updates KMS policy wiring. No final comment. |
modules/orchestration-providers/webhook/scale-runners/README.md |
Updates scale-runner documentation. No final comment. |
modules/orchestration-providers/webhook/scale-runners.tf |
Passes storage-provider configuration. No final comment. |
modules/orchestration-providers/webhook/README.md |
Updates webhook provider documentation. No final comment. |
modules/orchestration-providers/webhook/pool/variables.tf |
Adds pool storage-provider inputs. No final comment. |
modules/orchestration-providers/webhook/pool/tests/provider.tftest.hcl |
Updates pool tests. No final comment. |
modules/orchestration-providers/webhook/pool/README.md |
Updates pool documentation. No final comment. |
modules/orchestration-providers/webhook/pool/pool.tf |
Uses nested SSM environment and policies. No final comment. |
modules/orchestration-providers/webhook/pool/iam-policies.tf |
Updates SSM and KMS policy wiring. No final comment. |
modules/orchestration-providers/webhook/pool.tf |
Passes pool storage-provider settings. No final comment. |
modules/orchestration-providers/webhook/main.tf |
Includes storage-provider configuration in resolved data. No final comment. |
modules/orchestration-providers/webhook/job-retry/variables.tf |
Adds job-retry storage-provider inputs. No final comment. |
modules/orchestration-providers/webhook/job-retry/tests/job-retry.tftest.hcl |
Updates job-retry tests. No final comment. |
modules/orchestration-providers/webhook/job-retry/README.md |
Updates job-retry documentation. No final comment. |
modules/orchestration-providers/webhook/job-retry/job-retry.tf |
Uses storage-provider environment variables. No final comment. |
modules/orchestration-providers/webhook/job-retry/iam-policies.tf |
Updates KMS and policy composition. No final comment. |
modules/orchestration-providers/webhook/job-retry.tf |
Passes job-retry storage-provider settings. No final comment. |
modules/multi-runner/webhook.tf |
Passes nested SSM settings to webhook. No final comment. |
modules/multi-runner/variables.tf |
Nests lane storage configuration. No final comment. |
modules/multi-runner/variables.experimental.storage-provider.tf |
Moderate (1 vote): schema lacks a plan-known aws_ssm discriminator and selection validation. |
modules/multi-runner/variables.experimental.ssm.tf |
Removes the legacy global SSM input. No final comment. |
modules/multi-runner/tests/config-translation.tftest.hcl |
Updates translation tests. No final comment. |
modules/multi-runner/tests/config-resolution.tftest.hcl |
Updates resolution tests. No final comment. |
modules/multi-runner/tests/config-effective.tftest.hcl |
Updates effective-configuration tests. No final comment. |
modules/multi-runner/storage-provider.aws.ssm.tf |
Moderate (3 votes): SSM module is unconditional and lacks plan-known provider dispatch; gate SSM resources and KMS statements on aws_ssm. |
modules/multi-runner/runners.tf |
Propagates nested SSM settings to legacy runners. No final comment. |
modules/multi-runner/runners.experimental.tf |
Propagates storage-provider settings to runner-config. No final comment. |
modules/multi-runner/main.tf |
Resolves nested SSM root paths. No final comment. |
modules/multi-runner/config.experimental.translation.tf |
Translates legacy SSM configuration. No final comment. |
modules/multi-runner/config.experimental.resolved.tf |
Resolves nested lane storage settings. No final comment. |
modules/multi-runner/config.experimental.effective.tf |
Resolves effective SSM KMS settings. No final comment. |
modules/compute-providers/aws/ec2/variables.tf |
Replaces the EC2 SSM input. No final comment. |
modules/compute-providers/aws/ec2/tests/provider.tftest.hcl |
Critical (3 votes): indexes singleton runner_config_run_as with [0], causing an invalid-index test failure. |
modules/compute-providers/aws/ec2/runner-instances.tf |
Uses nested SSM tags and paths. No final comment. |
modules/compute-providers/aws/ec2/runner-config.tf |
Moderate (1 vote): EC2 SSM parameter remains unconditional; gate it on the selected storage-provider type. |
modules/compute-providers/aws/ec2/README.md |
Updates EC2 documentation. No final comment. |
modules/compute-providers/aws/ec2/policies-runner.tf |
Updates SSM policy paths. No final comment. |
modules/compute-providers/aws/ec2/logging.tf |
Uses nested SSM paths. No final comment. |
main.tf |
Uses the relocated SSM module and nested webhook input. No final comment. |
examples/migration-test/v2/main.tf |
Updates the migration example configuration. No final comment. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Brend-Smits
approved these changes
Sep 22, 2026
Brend-Smits
added a commit
that referenced
this pull request
Oct 22, 2026
🤖 I have created a release *beep* *boop* --- ## [8.0.0](v7.11.0...v8.0.0) (2026-10-21) ### ⚠ BREAKING CHANGES * **terraform:** require Terraform 1.5.6 ([#5261](#5261)) ### Features * **compute-providers:** add AWS EC2 provider modules ([#5343](#5343)) ([ffa299f](ffa299f)) * **dynamic-labels:** add a capacity-type label to choose spot or on-demand per job ([#5485](#5485)) ([edecd36](edecd36)) * **dynamic-labels:** add allow-list mode to the AWS dynamic labels policy ([#5411](#5411)) ([05984f6](05984f6)) * **examples:** add multi-runner-v2 example ([#5367](#5367)) ([f2779cc](f2779cc)) * **github-app:** select app by rate limit budget ([#5391](#5391)) ([668d8da](668d8da)) * **github-app:** use ssm manifest for extra apps ([#5282](#5282)) ([33c3332](33c3332)) * **multi-runner:** add experimental config translation ([#5284](#5284)) ([dd24d33](dd24d33)) * **multi-runner:** consume resolved experimental config ([#5340](#5340)) ([ff8bfc2](ff8bfc2)) * **multi-runner:** move v1 state into v2 modules ([#5415](#5415)) ([e8d7956](e8d7956)) * **orchestration-providers:** add webhook provider modules ([#5344](#5344)) ([c05c9b3](c05c9b3)) * **runner-config:** add provider-aware runner configuration ([#5345](#5345)) ([42b1261](42b1261)) * **runners:** add network_interfaces for advanced EC2 launch template configuration ([#5427](#5427)) ([1e72c14](1e72c14)) * **scale-down:** opt-in idle confirmation window before terminating not-busy runners ([#5397](#5397)) ([595f3e5](595f3e5)) * **scale-set:** add scale set orchestration in Terraform ([#5299](#5299)) ([937fe15](937fe15)) * **storage:** add runner config consumer ([#5358](#5358)) ([138309c](138309c)) * support native SSM expiration policies for runner token parameters ([#5265](#5265)) ([2dca7f9](2dca7f9)) * **terraform:** add SSM storage provider boundary ([#5454](#5454)) ([d04c5da](d04c5da)) * **terraform:** require Terraform 1.5.6 ([#5261](#5261)) ([f335b32](f335b32)) ### Bug Fixes * allow null amd_sev_snp/nested_virtualization in cpu_options vali… ([#5430](#5430)) ([0b5ec3d](0b5ec3d)) * **control-plane:** clarify partial runner creation test name ([#5339](#5339)) ([b1dd396](b1dd396)) * **deps:** bump actions/deploy-pages from 5.0.0 to 5.0.1 in the github group ([#5418](#5418)) ([1a691ea](1a691ea)) * **deps:** bump github/codeql-action/upload-sarif from 4.36.3 to 4.37.8 ([#5317](#5317)) ([fdb4385](fdb4385)) * **deps:** bump google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml from 2.5.0 to 2.5.1 ([#5331](#5331)) ([1523a66](1523a66)) * **deps:** bump ossf/scorecard-action from 2.4.3 to 2.4.4 ([#5319](#5319)) ([d798070](d798070)) * **deps:** bump step-security/harden-runner from 2.19.4 to 2.21.0 ([#5318](#5318)) ([c81927a](c81927a)) * **deps:** bump step-security/harden-runner from 2.19.4 to 2.21.1 ([#5386](#5386)) ([48b0c42](48b0c42)) * **deps:** bump step-security/harden-runner from 2.21.1 to 2.22.1 ([#5532](#5532)) ([5ccf8b3](5ccf8b3)) * **deps:** bump terraform-linters/setup-tflint from 6.3.0 to 6.3.1 ([#5419](#5419)) ([5f0ecef](5f0ecef)) * **deps:** bump terraform-linters/setup-tflint from 6.3.1 to 6.3.2 ([#5515](#5515)) ([4c4191f](4c4191f)) * **deps:** bump the github group with 3 updates ([#5330](#5330)) ([ab6edf5](ab6edf5)) * **deps:** bump the github group with 3 updates ([#5446](#5446)) ([7bb9280](7bb9280)) * **deps:** bump the github group with 3 updates ([#5504](#5504)) ([aa08de3](aa08de3)) * **deps:** bump the github group with 5 updates ([#5531](#5531)) ([c5b9a47](c5b9a47)) * **deps:** bump zizmorcore/zizmor-action from 0.6.2 to 0.6.3 ([#5387](#5387)) ([62aef5d](62aef5d)) * **deps:** bump zizmorcore/zizmor-action from 0.6.3 to 0.6.4 ([#5447](#5447)) ([aa24dc0](aa24dc0)) * **ec2:** avoid launch template tag conflict for on-demand capacity-type overrides ([#5522](#5522)) ([dc9e820](dc9e820)) * **ec2:** improve failure observability ([#5335](#5335)) ([91751ef](91751ef)) * fail over rate-limited GitHub App requests ([#5523](#5523)) ([7453956](7453956)) * fix typo in variable ([#5462](#5462)) ([0786125](0786125)) * **github-runner:** record the rate-limit metric even when the call fails ([#5426](#5426)) ([5026cd9](5026cd9)) * **lambda:** bump @babel/core from 7.23.9 to 7.29.7 in /lambdas ([#5181](#5181)) ([3729cf7](3729cf7)) * **lambda:** bump @humanfs/node from 0.16.6 to 0.16.8 in /lambdas ([#5336](#5336)) ([f7dd7cb](f7dd7cb)) * **lambda:** bump axios from 1.18.0 to 1.18.1 in /lambdas ([#5223](#5223)) ([21d27f1](21d27f1)) * **lambda:** bump axios from 1.18.1 to 1.20.0 in /lambdas ([#5502](#5502)) ([e2f9e5e](e2f9e5e)) * **lambda:** bump browserslist from 4.22.3 to 4.28.8 in /lambdas ([#5329](#5329)) ([27e7d53](27e7d53)) * **lambda:** bump fast-uri from 3.1.2 to 3.1.5 in /lambdas ([#5242](#5242)) ([9c3e28c](9c3e28c)) * **lambda:** bump fast-uri from 3.1.5 to 3.1.6 in /lambdas ([#5337](#5337)) ([07bbc87](07bbc87)) * **lambda:** bump fast-uri from 3.1.6 to 3.1.8 in /lambdas ([#5488](#5488)) ([3062702](3062702)) * **lambda:** bump follow-redirects from 1.16.0 to 1.16.1 in /lambdas ([#5540](#5540)) ([a7b6dea](a7b6dea)) * **lambda:** bump js-yaml from 3.15.0 to 3.15.1 in /lambdas ([#5264](#5264)) ([a3116bd](a3116bd)) * **lambda:** bump js-yaml from 3.15.1 to 3.15.2 in /lambdas ([#5398](#5398)) ([3db123f](3db123f)) * **lambda:** bump proxy-addr from 2.0.7 to 2.0.8 in /lambdas ([#5510](#5510)) ([faf57cd](faf57cd)) * **lambda:** bump source-map-js from 1.2.1 to 1.2.2 in /lambdas ([#5511](#5511)) ([e058e05](e058e05)) * **lambda:** bump undici from 6.28.0 to 6.28.1 in /lambdas ([#5489](#5489)) ([3ff5877](3ff5877)) * **lambda:** create log groups before functions ([#5324](#5324)) ([2f844ab](2f844ab)), closes [#5323](#5323) * **migration-test:** preserve unreserved job retry concurrency ([#5516](#5516)) ([feba645](feba645)) * **multi-runner:** gate v2 routing with experimental feature ([#5404](#5404)) ([b448845](b448845)) * **multi-runner:** make v2 inputs independent ([#5368](#5368)) ([45d3d0e](45d3d0e)) * **multi-runner:** route v1 and v2 runners separately ([#5346](#5346)) ([cfac174](cfac174)) * **pages:** configure GitHub Pages deployment environment ([#5334](#5334)) ([f081004](f081004)) * **pool-lambda:** grant permission to terminate failed EC2 runners ([#5538](#5538)) ([0043890](0043890)) * re-indent commands in CONTRIBUTING.md guide ([#5305](#5305)) ([547a98b](547a98b)) * retain arm64 build coverage in lambda workflow ([#5535](#5535)) ([80078d7](80078d7)) * **runners:** guard SEGMENT against set -u in start-runner.sh ([#5233](#5233)) ([182b37d](182b37d)) * **runners:** support instance requirements in EC2 Fleet overrides ([#5314](#5314)) ([4f80654](4f80654)) * **scale-set:** implement review followups ([#5477](#5477)) ([445269c](445269c)) * **ssm:** batch housekeeper parameter deletions ([#5469](#5469)) ([28a5135](28a5135)) * **ssm:** delete expired runner parameters as pages are listed ([#5464](#5464)) ([d815b76](d815b76)) * **ssm:** restore incremental housekeeper cleanup ([#5508](#5508)) ([22b9310](22b9310)) * **storage:** add SSM adapter diagnostics ([#5385](#5385)) ([d08be31](d08be31)) * **webhook:** cache only a successful config load ([#5519](#5519)) ([a2fea96](a2fea96)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Signed-off-by: Brend Smits <[email protected]> Co-authored-by: runners-releaser[bot] <194412594+runners-releaser[bot]@users.noreply.github.com> Co-authored-by: Brend Smits <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Add the Terraform storage-provider boundary for the existing AWS SSM implementation.
global_storage_provider.aws.ssm.storage_provider.aws.ssm.runner-config.aws_ssmprovider type.Test Plan
terraform fmt -check -recursiveon all affected Terraform modules.git diff --check.terraform validatewas also attempted, but the local AWS/null/random provider binaries failed the plugin schema handshake before configuration validation.Related Issues
None.