Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/scaleway-terraform-modules/terraform-scaleway-secrets

Manage Scaleway Secrets with Terraform.
https://github.com/scaleway-terraform-modules/terraform-scaleway-secrets

scaleway scaleway-secret secret terraform-module

Last synced: 7 days ago
JSON representation

Manage Scaleway Secrets with Terraform.

Awesome Lists containing this project

README

        

# Terraform / Scaleway

## Purpose

This repository is used to manage secrets on scaleway using terraform.
~> **Important:** Beware that secret's values won't be displayed on plan/apply, netherless it will be stored in the state file. For more information, see [Sensitive Data in State](https://developer.hashicorp.com/terraform/language/state/sensitive-data).

## Usage

- Setup the [scaleway provider](https://www.terraform.io/docs/providers/scaleway/index.html) in your tf file.
- Include this module in your tf file. Refer to [documentation](https://www.terraform.io/docs/modules/sources.html#generic-git-repository).

```hcl
module "my_service" {
source = "scaleway-terraform-modules/secrets/scaleway"
version = "0.0.1"

# insert required variables here
}
```

## Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement_terraform) | >= 0.13 |
| [scaleway](#requirement_scaleway) | >= 2.16.2 |

## Resources

| Name | Type |
|------|------|
| [scaleway_secret.this](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/secret) | resource |
| [scaleway_secret_version.this](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/secret_version) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [data](#input_data) | Data payload of the secret version. Must be no larger than 64KiB. | `string` | n/a | yes |
| [name](#input_name) | (Required) Name of the secret. | `string` | n/a | yes |
| [description](#input_description) | Description of the secret. | `string` | `null` | no |
| [project_id](#input_project_id) | ID of the project containing the secret. Ressource will be created in the project set at the provider level if null. | `string` | `null` | no |
| [region](#input_region) | Region in which the resource exists. Ressource will be created in the region set at the provider level if null. | `any` | `null` | no |
| [tags](#input_tags) | Tags associated with the secret. | `list(string)` | `[]` | no |

## Outputs

| Name | Description |
|------|-------------|
| [secret_id](#output_secret_id) | ID of the Secret |
| [secret_status](#output_secret_status) | Status of the Secret. |
| [secret_version](#output_secret_version) | Number of versions for this Secret. |
| [version_creation_date](#output_version_creation_date) | Date and time of Secret version's creation (RFC 3339 format). |
| [version_data](#output_version_data) | Data payload (base64 encoded) of the Secret version. |
| [version_id](#output_version_id) | ID of the Secret version. |
| [version_revision](#output_version_revision) | Revision for this Secret Version. |
| [version_status](#output_version_status) | Status of this Secret Version. |
| [version_update_date](#output_version_update_date) | Date and time of Secret version's last update (RFC 3339 format). |

## Authors

Module is maintained with help from [the community](https://github.com/scaleway-terraform-modules/terraform-scaleway-domain/graphs/contributors).

## License

Mozilla Public License 2.0 Licensed. See [LICENSE](https://github.com/scaleway-terraform-modules/terraform-scaleway-domain/tree/master/LICENSE) for full details.