Skip to content

opsd-io/terraform-module-aws-eks-autoscaler

Repository files navigation

OPSd

Meet OPSd. The unique and effortless way of managing cloud infrastructure.

terraform-module-aws-eks-autoscaler

Introduction

What does the module provide?

Usage

module "autoscaler" {
  source         = "github.com/opsd-io/terraform-module-eks-autoscaler"
  cluster_region = module.kubernetes.region
  cluster_name   = module.kubernetes.name
  openid_arn     = module.kubernetes.openid_arn
  openid_sub     = module.kubernetes.openid_sub
}

IMPORTANT: Make sure not to pin to master because there may be breaking changes between releases.

Requirements

Name Version
terraform >= 1.5.5
aws ~> 5.0
helm ~> 2.0

Providers

Name Version
aws ~> 5.0
helm ~> 2.0

Modules

No modules.

Resources

Name Type
aws_iam_role.main resource
helm_release.main resource
aws_iam_policy_document.assume_role_policy data source

Inputs

Name Description Type Default Required
chart_version Specify the exact chart version to install. string null no
cluster_name The name of the cluster. string n/a yes
cluster_region The AWS region of the cluster. string n/a yes
namespace The namespace to install the release into. string "kube-system" no
openid_arn The ARN assigned by AWS for IAM OpenID Connect of the cluster. string null no
openid_sub The URL of the identity provider. Corresponds to the iss claim. string null no
release_name The release name. string "cluster-autoscaler" no
role_name The name of IAM Roles for Service Account to create. Defaults to $cluster_name-autoscaler. string null no
service_account The name of the service account to create. string "cluster-autoscaler" no

Outputs

Name Description
cluster_role_arn The ARN of the IAM role that provides permissions for cluster-autoscaler.
cluster_role_name The name of the IAM role that provides permissions for cluster-autoscaler.

Examples of usage

Do you want to see how the module works? See all the usage examples.

Related modules

The list of related modules (if present).

Contributing

If you are interested in contributing to the project, see see our guide.

Support

If you have a problem with the module or want to propose a new feature, you can report it via the project's (Github) issue tracker.

If you want to discuss something in person, you can join our community on Slack.

License

Apache License 2.0