GithubHelp home page GithubHelp logo

knmorgan / terraform-provider-acme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vancluever/terraform-provider-acme

0.0 0.0 0.0 22.41 MB

Terraform ACME provider

Home Page: https://www.terraform.io/docs/providers/acme/

License: Mozilla Public License 2.0

Makefile 2.10% Go 84.62% Shell 2.42% HTML 10.86%

terraform-provider-acme's Introduction

Terraform ACME Provider

This is the repository for the Terraform ACME Provider, which one can use with Terraform to manage and generate certificates generated by an ACME CA, such as Let's Encrypt.

For general information about Terraform, visit the official website and the GitHub project page.

⚠️ NOTE: The ACME provider found here supports ACME v2 only. For ACME v1 endpoints, version 0.6.0 is required, which can be found here.

Using the Provider

The current version of this provider requires Terraform v0.10.2 or higher to run.

Note that you need to run terraform init to fetch the provider before deploying. Read about the provider split and other changes to TF v0.10.0 in the official release announcement found here.

Full Provider Documentation

The provider is documented in full on the Terraform website and can be found here.

Controlling the provider version

Note that you can also control the provider version. This requires the use of a provider block in your Terraform configuration if you have not added one already.

The syntax is as follows:

provider "acme" {
  version = "~> 1.0"
  ...
}

Version locking uses a pessimistic operator, so this version lock would mean anything within the 1.x namespace, including or after 1.0.0. Read more on provider version control.

Building The Provider

NOTE: Unless you are developing or require a pre-release bugfix or feature, you will want to use the officially released version of the provider (see the section above).

Cloning the Project

git clone [email protected]:terraform-providers/terraform-provider-acme

Running the Build

After the clone has been completed, you can enter the provider directory and build the provider.

cd terraform-provider-acme
make build

Installing the Local Plugin

After the build is complete, copy the terraform-provider-acme binary into the same path as your terraform binary, and re-run terraform init.

After this, your project-local .terraform/plugins/ARCH/lock.json (where ARCH matches the architecture of your machine) file should contain a SHA256 sum that matches the local plugin. Run shasum -a 256 on the binary to verify the values match.

Developing the Provider

NOTE: Before you start work on a feature, please make sure to check the issue tracker and existing pull requests to ensure that work is not being duplicated. For further clarification, you can also ask in a new issue.

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.11+ is required).

⚠️ This provider uses modules. Although a vendor/ directory is currently included with this project for backwards compatibility, it may be removed at a later time. If you have trouble building the project in a GOPATH, move the project outside of it.

See Building the Provider for details on building the provider.

Testing the Provider

Testing the provider requires:

  • An email address and valid domain name on AWS Route 53. These need to be set using the ACME_EMAIL_ADDRESS and ACME_CERT_DOMAIN environment variables.
  • Valid AWS credentials set in the environment - at the very least AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.

Some environment variables may be needed for other acceptance tests.

After this is done, you can run the acceptance tests by running:

$ make testacc

If you want to run against a specific set of tests, run make testacc with the TESTARGS parameter containing the run mask as per below:

make testacc TESTARGS="-run=TestAccACMECertificate"

This following example would run all of the acceptance tests matching TestAccACMECertificate. Change this for the specific tests you want to run.

License

Copyright 2018 Chris Marchesi
Copyright 2016-2018 PayByPhone Technologies, Inc.

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.

terraform-provider-acme's People

Contributors

vancluever avatar bzub avatar jimpaine avatar radeksimko avatar mengesb avatar abn avatar yamamoto-febc avatar appilon avatar mrsimo avatar counterbeing avatar maksym-iv avatar byt3bl33d3r 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.