Skip to content

[EXAMPLE] Bottlerocket OS example creating circular dependency #2096

Closed as not planned
@dsantanu

Description

@dsantanu
  • ✋ I have searched the open/closed issues and my issue is not listed.

Is this example actualy tested?
https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/bottlerocket

I cannont make it work at all. Line 54 and 62 in eks.tf has a depenency on module.ebs_kms_key:

      block_device_mappings = {
        xvda = {
          device_name = "/dev/xvda"
          ebs = {
            encrypted             = true
            kms_key_id            = module.ebs_kms_key.key_arn
            delete_on_termination = true
          }
        }
        xvdb = {
          device_name = "/dev/xvdb"
          ebs = {
            encrypted             = true
            kms_key_id            = module.ebs_kms_key.key_arn
            delete_on_termination = true
          }
        }

and then in module ebs_kms_key, there is a dependency on module eks (Line 106):

  key_service_roles_for_autoscaling = [
    "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling",
    module.eks.cluster_iam_role_arn,
    module.eks_blueprints_addons.karpenter.iam_role_arn
  ]

Which creating a huge circular dependency for me. Can anyone confirm if I'm doimng anything wrong here please?

-S

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions