Migrated from github.com/shafiqalibhai/terraform-tls-ssh-key-pair https://cloudposse.com/
  • HCL 81%
  • Makefile 11%
  • Dockerfile 8%
Find a file
2026-04-27 23:06:13 +00:00
docs Migrate readme yaml (#3) 2018-07-26 21:18:03 -07:00
.gitignore Migrate readme yaml (#3) 2018-07-26 21:18:03 -07:00
.travis.yml Add TravisCI. Update README (#2) 2018-04-27 17:13:47 -04:00
Dockerfile Add Dockerfile: terraform runner with TLS SSH key-pair module pre-loaded 2026-04-27 23:06:13 +00:00
LICENSE Add TravisCI. Update README (#2) 2018-04-27 17:13:47 -04:00
main.tf Module for generating an SSH public key file (#1) 2018-04-26 09:24:22 -04:00
Makefile Migrate readme yaml (#3) 2018-07-26 21:18:03 -07:00
output.tf Migrate readme yaml (#3) 2018-07-26 21:18:03 -07:00
README.md Update README with comprehensive project information 2026-04-27 20:39:46 +00:00
README.yaml Migrate readme yaml (#3) 2018-07-26 21:18:03 -07:00
variables.tf Module for generating an SSH public key file (#1) 2018-04-26 09:24:22 -04:00

terraform-tls-ssh-key-pair

Overview

Terraform module for generating an SSH public key file.

Detected project types: Terraform, Make-based.

This repository was migrated from upstream source github.com/shafiqalibhai/terraform-tls-ssh-key-pair and is preserved here for archival, reference, or continued local development.

At a glance

  • Default branch: master
  • Visibility: public
  • Size: 44 KB
  • Created: 2026-04-27
  • Last updated: 2026-04-27
  • Stars / Forks / Open issues: 0 / 0 / 0
  • License: Apache-2.0

Languages

Language Bytes Share
HCL 2,866 bytes 88.1%
Makefile 388 bytes 11.9%

Repository structure

  • docs/
  • .gitignore (147 B)
  • .travis.yml (241 B)
  • LICENSE (11,346 B)
  • main.tf (1,236 B)
  • Makefile (388 B)
  • output.tf (249 B)
  • README.md (8,667 B)
  • README.yaml (2,372 B)
  • variables.tf (1,381 B)

Getting started

Clone the repository:

git clone https://forgejo.deployview.com/ssa/terraform-tls-ssh-key-pair.git
cd terraform-tls-ssh-key-pair

Installation

terraform init
terraform plan
terraform apply
make

Usage

Configure variables in a *.tfvars file or via -var flags, then run terraform plan to preview changes.

Original README

The content below is preserved from the previous README. Headings have been demoted so they don't compete with the new top-level sections.

Cloud Posse

terraform-tls-ssh-key-pair Build Status Latest Release Slack Community

Terraform module for generating an SSH public key file.


This project is part of our comprehensive "SweetOps" approach towards DevOps.

It's 100% Open Source and licensed under the APACHE2.

Usage

module "ssh_key_pair" {
  source                = "git::https://github.com/cloudposse/terraform-tls-ssh-key-pair.git?ref=master"
  namespace             = "cp"
  stage                 = "prod"
  name                  = "app"
  ssh_public_key_path   = "/secrets"
  private_key_extension = ".pem"
  public_key_extension  = ".pub"
  chmod_command         = "chmod 600 %v"
}

Makefile Targets

Available targets:

  help                                This help screen
  help/all                            Display help for all targets
  lint                                Lint terraform code

Inputs

Name Description Type Default Required
attributes Additional attributes (e.g. 1) list <list> no
chmod_command Template of the command executed on the private key file string chmod 600 %v no
delimiter Delimiter to be used between namespace, stage, name and attributes string - no
name Application or solution name (e.g. app) string - yes
namespace Namespace (e.g. cp or cloudposse) string - yes
private_key_extension Private key extension string `` no
public_key_extension Public key extension string .pub no
ssh_key_algorithm SSH key algorithm string RSA no
ssh_public_key_path Path to SSH public key directory (e.g. /secrets) string - yes
stage Stage (e.g. prod, dev, staging) string - yes
tags Additional tags (e.g. map(BusinessUnit,XYZ) map <map> no

Outputs

Name Description
key_name Name of SSH key
public_key Contents of the generated public key

Check out these related projects.

  • terraform-aws-acm-request-certificate - Terraform module to request an ACM certificate for a domain name and create a CNAME record in the DNS zone to complete certificate validation
  • bastion - 🔒Secure Bastion implemented as Docker Container running Alpine Linux with Google Authenticator & DUO MFA support
  • terraform-aws-key-pai - Terraform Module to Automatically Generate SSH Key Pairs (Public/Private Keys)

Help

Got a question?

File a GitHub issue, send us an email or join our Slack Community.

Commercial Support

Work directly with our team of DevOps experts via email, slack, and video conferencing.

We provide commercial support for all of our Open Source projects. As a Dedicated Support customer, you have access to our team of subject matter experts at a fraction of the cost of a full-time engineer.

E-Mail

  • Questions. We'll use a Shared Slack channel between your team and ours.
  • Troubleshooting. We'll help you triage why things aren't working.
  • Code Reviews. We'll review your Pull Requests and provide constructive feedback.
  • Bug Fixes. We'll rapidly work to fix any bugs in our projects.
  • Build New Terraform Modules. We'll develop original modules to provision infrastructure.
  • Cloud Architecture. We'll assist with your cloud strategy and design.
  • Implementation. We'll provide hands-on support to implement our reference architectures.

Community Forum

Get access to our Open Source Community Forum on Slack. It's FREE to join for everyone! Our "SweetOps" community is where you get to talk with others who share a similar vision for how to rollout and manage infrastructure. This is the best place to talk shop, ask questions, solicit feedback, and work together as a community to build sweet infrastructure.

Contributing

Bug Reports & Feature Requests

Please use the issue tracker to report any bugs or file feature requests.

Developing

If you are interested in being a contributor and want to get involved in developing this project or help out with our other projects, we would love to hear from you! Shoot us an email.

In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. Submit a Pull Request so that we can review your changes

NOTE: Be sure to merge the latest changes from "upstream" before making a pull request!

Copyright © 2017-2018 Cloud Posse, LLC

License

License

See LICENSE for full details.

Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

  https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.

Trademarks

All other trademarks referenced herein are the property of their respective owners.

About

This project is maintained and funded by Cloud Posse, LLC. Like it? Please let us know at hello@cloudposse.com

Cloud Posse

We're a DevOps Professional Services company based in Los Angeles, CA. We love Open Source Software!

We offer paid support on all of our projects.

Check out our other projects, apply for a job, or hire us to help with your cloud strategy and implementation.

Contributors

Erik Osterman
Erik Osterman
Andriy Knysh
Andriy Knysh
AMyachev
AMyachev

Contributing

Contributions are welcome. The typical workflow is:

  1. Open an issue describing the change you'd like to make.
  2. Fork the repository (or create a feature branch if you have write access).
  3. Commit your changes with clear, descriptive messages.
  4. Open a pull request against the master branch.

Please follow the existing code style and include tests or reproduction steps where relevant.

License

This project is licensed under the Apache-2.0 license. See the LICENSE file for the full text.

Repository

  • Browse: https://forgejo.deployview.com/ssa/terraform-tls-ssh-key-pair
  • Clone (HTTPS): https://forgejo.deployview.com/ssa/terraform-tls-ssh-key-pair.git
  • Clone (SSH): ssh://git@forgejo.deployview.com:30143/ssa/terraform-tls-ssh-key-pair.git
  • Upstream / origin: github.com/shafiqalibhai/terraform-tls-ssh-key-pair

This README was generated automatically based on repository metadata, contents, and any prior README content. Edit any section above to add project-specific detail.