Skip to content

os11k/terraform-iam-lego

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Terraform/OpenTofu module for creating IAM profile for Let's Encrypt DNS challenge

This module configures the necessary IAM role for the Let's Encrypt DNS challenge. The role will have only the permissions required to create _acme-challenge TXT records for the appropriate hostname. You need to provide the module with the hostname and the AWS Route53 hosted zone ID.

Usage

module "lego-iam" {
  source     = "../modules/lego-iam"
  hostname   = var.hostname
  hostedzone = var.hostedzone
}

resource "aws_instance" "instance-with-letsencrypt" {
  ...
  iam_instance_profile   = module.lego-iam.instance-profile-name
  ...
}

Additional Resources

For a more in-depth explanation and practical examples, check out the blog post here: How to manage Let's Encrypt certificate on EC2 instance

About

Terraform/OpenTofu module for creating IAM profile for Let's Encrypt DNS challenge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages