https://github.com/hadenlabs/terraform-github-environment
Terraform github environment
https://github.com/hadenlabs/terraform-github-environment
environment github hadenlabs peru terraform terraform-modules
Last synced: 2 months ago
JSON representation
Terraform github environment
- Host: GitHub
- URL: https://github.com/hadenlabs/terraform-github-environment
- Owner: hadenlabs
- License: lgpl-3.0
- Created: 2021-09-19T17:53:38.000Z (almost 5 years ago)
- Default Branch: develop
- Last Pushed: 2025-09-28T14:10:31.000Z (9 months ago)
- Last Synced: 2025-09-28T15:48:39.467Z (9 months ago)
- Topics: environment, github, hadenlabs, peru, terraform, terraform-modules
- Language: HCL
- Homepage:
- Size: 132 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: docs/code_of_conduct.md
- Support: docs/support.md
Awesome Lists containing this project
README
[](https://github.com/hadenlabs/terraform-github-environment/releases) [](https://github.com/hadenlabs/terraform-github-environment/actions?workflow=lint-code) [](https://github.com/pre-commit/pre-commit) [](https://conventionalcommits.org) [](https://keepachangelog.com)
# terraform-github-environment
terraform-github-environment for project
```hcl
module "main" {
}
```
Full working examples can be found in [examples](./examples) folder.
## Requirements
This is a list of plugins that need to be installed previously to enjoy all the goodies of this configuration:
- [docker](https://www.docker.com)
- [python](https://www.python.org)
- [taskfile](https://github.com/go-task/task)
## Examples
### common
```hcl
module "main" {
source = "hadenlabs/environment/github"
version = "0.0.0"
providers = {
github = github
}
repository = "name_repository"
environment = "develop"
secrets = {
GH_TOKEN = "token"
}
}
```
## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.14 |
| [github](#requirement\_github) | >=4.5.0 |
## Providers
| Name | Version |
|------|---------|
| [github](#provider\_github) | >=4.5.0 |
## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [github_actions_environment_secret.this](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/actions_environment_secret) | resource |
| [github_repository_environment.this](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_environment) | resource |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [secrets](#input\_secrets) | secrets for github actions | `map(any)` | n/a | yes |
| [environment](#input\_environment) | the name environment. | `string` | n/a | yes |
| [repository](#input\_repository) | The name of the repository. | `string` | n/a | yes |
## Outputs
| Name | Description |
|------|-------------|
| [environment](#output\_environment) | output instance github repository environment |
| [secrets](#output\_secrets) | List of secrets available. |
## Help
**Got a question?**
File a GitHub [issue](https://github.com/hadenlabs/terraform-github-environment/issues).
## Contributing
### Bug Reports & Feature Requests
Please use the [issue tracker](https://github.com/hadenlabs/terraform-github-environment/issues) to report any bugs or file feature requests.
### Development
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 rebase the latest changes from "upstream" before making a pull request!
## Module Versioning
This Module follows the principles of [Semantic Versioning (SemVer)](https://semver.org/).
Using the given version number of `MAJOR.MINOR.PATCH`, we apply the following constructs:
1. Use the `MAJOR` version for incompatible changes.
1. Use the `MINOR` version when adding functionality in a backwards compatible manner.
1. Use the `PATCH` version when introducing backwards compatible bug fixes.
### Backwards compatibility in `0.0.z` and `0.y.z` version
- In the context of initial development, backwards compatibility in versions `0.0.z` is **not guaranteed** when `z` is
increased. (Initial development)
- In the context of pre-release, backwards compatibility in versions `0.y.z` is **not guaranteed** when `y` is
increased. (Pre-release)
## Copyright
Copyright © 2018-2021 [Hadenlabs](https://hadenlabs.com)
## Trademarks
All other trademarks referenced herein are the property of their respective owners.
## License
The code and styles are licensed under the LGPL-3.0 license [See project license.](LICENSE).
## Don't forget to 🌟 Star 🌟 the repo if you like terraform-github-environment
[Your feedback is appreciated](https://github.com/hadenlabs/terraform-github-environment/issues)