Skip to content

chore: update kms settings for launch template to allow default kms#1343

Merged
kayman-mk merged 2 commits into
cattle-ops:mainfrom
maxvandermeij:main
Oct 16, 2025
Merged

chore: update kms settings for launch template to allow default kms#1343
kayman-mk merged 2 commits into
cattle-ops:mainfrom
maxvandermeij:main

Conversation

@maxvandermeij

@maxvandermeij maxvandermeij commented Oct 16, 2025

Copy link
Copy Markdown
Contributor

Description

Fix for change in kms_key_id validation on the launch template ebs volumes. This was implemented on the aws provider 6.16.0 https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md#6160-october-9-2025. When using the default ebs kms key, it will now no longer complain about the empty "" provided to the kms_key_id for ebs volumes with encryption enabled.

│ Error: "block_device_mappings.0.ebs.0.kms_key_id" cannot be shorter than 1 character
│ 
│   with module.runner.aws_launch_template.this[0],
│   on .terraform/modules/runner/docker_autoscaler.tf line 41, in resource "aws_launch_template" "this":
│   41:       kms_key_id  = local.kms_key_arn
│ 

Closes #1342

@github-actions

Copy link
Copy Markdown
Contributor

Hey @maxvandermeij! 👋

Thank you for your contribution to the project. Please refer to the contribution rules for a quick overview of the process.

Make sure that this PR clearly explains:

  • the problem being solved
  • the best way a reviewer and you can test your changes

With submitting this PR you confirm that you hold the rights of the code added and agree that it will published under this LICENSE.

The following ChatOps commands are supported:

  • /help: notifies a maintainer to help you out

Simply add a comment with the command in the first line. If you need to pass more information, separate it with a blank line from the command.

This message was generated automatically. You are welcome to improve it.

@kayman-mk kayman-mk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sounds good to me. Thanks for fixing that.

@kayman-mk kayman-mk merged commit f5a4e4e into cattle-ops:main Oct 16, 2025
22 checks passed
kayman-mk added a commit that referenced this pull request Oct 27, 2025
…1349)

## Description

Fix for change in `kms_key_id` validation on the launch template ebs
volumes. This was implemented on the aws provider 6.16.0
https://github.com/hashicorp/terraform-provider-aws/blob/main/CHANGELOG.md#6160-october-9-2025.
When using the default ebs kms key, it will now no longer complain about
the empty "" provided to the `kms_key_id` for ebs volumes with
encryption enabled.

> Error: "block_device_mappings.0.ebs.0.kms_key_id" cannot be shorter
than 1 character
> 
>   with module.runner.aws_launch_template.this[0],
> on .terraform/modules/runner/docker_machine_fleet.tf line 42, in
resource "aws_launch_template" "this":
>   41:       kms_key_id  = local.kms_key_arn
> 

Closes
#1348

Basically duplicate of
#1343 but
for docker_machine_fleet instead of docker_autoscaler.

Co-authored-by: Matthias Kay <matthias.kay@hlag.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.

aws_launch_template in docker autoscaler setup fails when not using KMS keys

2 participants