Giter Site home page Giter Site logo

goci-io / aws-cert-manager-helm Goto Github PK

View Code? Open in Web Editor NEW
0.0 5.0 0.0 76 KB

Deploys Cert-Manager using Helm, required AWS resources and letsencrypt ClusterIssuer

License: Apache License 2.0

HCL 100.00%
aws helm terraform cert-manager iam issuer kubernetes letsencrypt

aws-cert-manager-helm's Introduction

aws-cert-manager-helm

Maintained by @goci-io/prp-terraform

terraform

This module deploys cert-manager using helm on AWS (Kubernetes). A reference to another terraform module state can be specified to read the issuer private key. Another option is to reference a file providing the private key in pem format. The IAM role required to change DNS records in Rotue53 is created and applied to the cluster issuer. Currently only one deployment of an Issuer is supported.

The default version of the helm chart is currently an alpha version to support automatically creating CustomResourceDefinition's with correct configuration and namespace. The version used for now is v0.15.0-alpha.2. If you dont need automated installation of CRDs you can change the version for example to v0.14.2 (current stable at the moment of writing).

Usage

module "cert_manager" {
  source                = "git::https://github.com/goci-io/aws-cert-manager-helm.git?ref=tags/<latest-version>"
  namespace             = "goci"
  stage                 = "corp"
  region                = "eu1"
  name                  = "cert-manager"
  dns_zone              = "corp.eu1.goci.io"
  issuer_email          = "certs<at>@goci.io"
  ca_private_key_secret = "/etc/ssl/my-ca.pem"
}

Use a module for the private key ref

  1. Create a LetsEncrypt Account using this module
  2. Expose an output called account_key_pem containing the private key in pem format (makred as sensitive)
  3. Store state of the letsencrypt module for example on S3 under /letsencrypt/terraform.tfstate
  4. Configure this module to use the remote state of the existing module:
module "cert_manager" {
  ...
  ca_module_state = "letsencrypt/terraform.tfstate"
  tf_bucket       = "my-terraform-state-bucket"
}

Grant Access to multiple Zones

module "cert_manager" {
  ...

  # Grant all Zones
  iam_role_zone_grants = ["*"]
}

You can also provide specific Hosted Zone IDs.

Creating Issuer

You can either let this module create a ClusterIssuer or Issuer (default). An issue is bound to the namespace cert-manager will be deployed into. Specify issuer_type to set your desired issuer type.

aws-cert-manager-helm's People

Watchers

 avatar  avatar  avatar  avatar  avatar

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.