Giter Site home page Giter Site logo

Comments (5)

MPV avatar MPV commented on June 1, 2024

Looking at it again now, I'm assuming it might be related to this line — although unclear how to use this:

  aws_cli_assume_role_arn = "arn:aws:iam::xxxxxxxxxxx:role/OrganizationAccountAccessRole"

from terraform-aws-eks-workers.

MPV avatar MPV commented on June 1, 2024

I added a proper account into my aws_cli_assume_role_arn, yet I still see the same error when trying to apply my plans in Terraform Cloud.

from terraform-aws-eks-workers.

MPV avatar MPV commented on June 1, 2024

I also tried emptying aws_cli_assume_role_arn, still same issue.

Here's the plan output for the aws_autoscaling_group it wants to create:

# module.eks_workers.module.autoscale_group.aws_autoscaling_group.default[0] will be created
  + resource "aws_autoscaling_group" "default" {
      + arn                       = (known after apply)
      + availability_zones        = (known after apply)
      + default_cooldown          = 300
      + desired_capacity          = (known after apply)
      + enabled_metrics           = [
          + "GroupDesiredCapacity",
          + "GroupInServiceInstances",
          + "GroupMaxSize",
          + "GroupMinSize",
          + "GroupPendingInstances",
          + "GroupStandbyInstances",
          + "GroupTerminatingInstances",
          + "GroupTotalInstances",
        ]
      + force_delete              = false
      + health_check_grace_period = 300
      + health_check_type         = "EC2"
      + id                        = (known after apply)
      + load_balancers            = (known after apply)
      + max_size                  = 3
      + metrics_granularity       = "1Minute"
      + min_elb_capacity          = 0
      + min_size                  = 2
      + name                      = (known after apply)
      + name_prefix               = "hackers-test-eks3-"
      + protect_from_scale_in     = false
      + service_linked_role_arn   = (known after apply)
      + tags                      = [
          + {
              + "key"                 = "Attributes"
              + "propagate_at_launch" = "true"
              + "value"               = "workers"
            },
          + {
              + "key"                 = "Name"
              + "propagate_at_launch" = "true"
              + "value"               = "hackers-test-eks3-workers"
            },
          + {
              + "key"                 = "Namespace"
              + "propagate_at_launch" = "true"
              + "value"               = "hackers"
            },
          + {
              + "key"                 = "Stage"
              + "propagate_at_launch" = "true"
              + "value"               = "test"
            },
          + {
              + "key"                 = "kubernetes.io/cluster/hackers-test-eks3-cluster"
              + "propagate_at_launch" = "true"
              + "value"               = "owned"
            },
        ]
      + target_group_arns         = (known after apply)
      + termination_policies      = [
          + "Default",
        ]
      + vpc_zone_identifier       = [
          + "subnet-029f81b5fed6dc6d5",
          + "subnet-0a4795e9e7c8dcde7",
        ]
      + wait_for_capacity_timeout = "10m"
      + wait_for_elb_capacity     = 0

      + launch_template {
          + id      = "lt-03a3309fdd24f2bdd"
          + name    = (known after apply)
          + version = "$Latest"
        }
    }

I can't see what wouldn't be a valid launch template.

from terraform-aws-eks-workers.

aknysh avatar aknysh commented on June 1, 2024

@MPV thanks for testing!
aws_cli_assume_role_arn is not related to Launch Template, it's only used if you want to assume an IAM role before applying Auth ConfigMap with kubectl .
See this for more details: https://github.com/cloudposse/terraform-aws-eks-cluster/blob/master/auth.tf#L126

Regarding the Lunch Template not supported configuration error, please check the following:

  1. Does eu-north-1 support it? And all other resources (EKS, etc.) you are trying to provision. Try to change the region and run again

  2. If the region is supported and you still have the issue, try to deploy your code NOT using Terraform Cloud (e.g. from local computer)

thanks

from terraform-aws-eks-workers.

Nuru avatar Nuru commented on June 1, 2024

Closing this issue as stale and cannot reproduce. Please open a new issue if you experience a similar problem with the current release of this module.

from terraform-aws-eks-workers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.