Giter Club home page Giter Club logo

terraformcloud-projects's Introduction

Terraform Cloud Projects Factory

Code which manages configuration and life-cycle of all the Terraform Cloud projects. It is designed to be used from a dedicated VCS-Driven Terraform Cloud workspace that would provision and manage the configuration using Terraform code (IaC).

Permissions

To manage the Terraform Cloud projects from that code, provide a token from an account with manage all projects and manage teams access. Alternatively, you can use a token from a team with that access instead of a user token.

To manage secrets in Hashicorp Vault Secrets, provide a client ID and a key from a service principals with the secret contributor role.

Authentication

Terraform Cloud

The Terraform Cloud provider requires a Terraform Cloud/Enterprise API token in order to manage resources.

  • Set the TFE_TOKEN environment variable: The provider can read the TFE_TOKEN environment variable and the token stored there to authenticate. Refer to Managing Variables documentation for more details.

Hashicorp Vault Secrets Authentication

The Hashicorp Vault Secrets provider requires a service principal client ID and a key in order to manage resources.

  • Set the HCP_CLIENT_ID environment variable: The provider can read the HCP_CLIENT_ID environment variable and the client ID stored there to authenticate. Refer to Managing Variables documentation for more details.

  • Set the HCP_CLIENT_SECRET environment variable: The provider can read the HCP_CLIENT_SECRET environment variable and the client ID stored there to authenticate. Refer to Managing Variables documentation for more details.

Features

  • Manages configuration and life-cycle of Terraform Cloud resources:
    • projects
    • teams
    • teams project access
    • teams token
  • Manages configuration and life-cycle of Hashicorp Vault Secrets
    • secrets

Documentation

Requirements

The following requirements are needed by this module:

Modules

No modules.

Required Inputs

The following input variables are required:

Description: (Required) The name of the Terraform Cloud organization.

Type: string

Description: (Required) A list of project names to create.

Type: list(string)

Description: (Required) The name of the application where the secret will be stored.

Type: string

Optional Inputs

No optional inputs.

Resources

The following resources are used by this module:

Outputs

The following outputs are exported:

Description: The project ID.

Description: The team resources attributes.

Description: The ID of the team.

Description: The team project access attributes.


This GitHub repository is manage through Terraform Code from TerraformCloud-Foundation repository.

terraformcloud-projects's People

Contributors

benyboy84 avatar github-actions[bot] avatar terraform-cloud-factories[bot] 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.