Skip to content

Plan fails if KMS key is being created at the same time as the module #1318

@tomjjjj1

Description

@tomjjjj1

Describe the bug

A re-opening of a previous ticket that has been closed #1278, we are hitting the exact same issue

To Reproduce

Steps to reproduce the behavior:
Try to use the module like this:

module "gitlab-runner" {
source = "cattle-ops/gitlab-runner/aws"
version = "9.2.0"

environment = "prod"
runner_gitlab = {
url = var.gitlab_url
preregistered_runner_token_ssm_parameter_name = var.token_ssm_parameter_name
}

enable_managed_kms_key = true

subnet_id = var.subnet
vpc_id = var.vpc
}

Expected behavior

Terraform plan should not fail

Additional context

Caused by #1258

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions