Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imjoseangel/terraform-provider-fake
https://github.com/imjoseangel/terraform-provider-fake
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/imjoseangel/terraform-provider-fake
- Owner: imjoseangel
- Created: 2022-05-22T09:13:20.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-28T17:04:02.000Z (7 months ago)
- Last Synced: 2024-06-29T18:16:22.021Z (7 months ago)
- Language: Go
- Size: 424 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Terraform "Fakes" Provider
This provider provisions "resources" to a fictitious cloud provider, "Fakes" - used in the [TFC Getting Started project](https://github.com/hashicorp/tfc-getting-started).
These resources are purely for demonstration and created in Terraform Cloud, scoped to your TFC user account.
## Installation & Usage
This provider isn't _really_ intended for any use beyond the example configuration, but you can absolutely use it outside the example if you like!
* Declare the provider in your configuration and `terraform init` will automatically fetch and install the provider for you from the [Terraform Registry](https://registry.terraform.io/).
* [Create a user or team API token in Terraform Cloud/Enterprise](https://www.terraform.io/docs/cloud/users-teams-organizations/api-tokens.html), and use the token in the provider configuration block.
* See the documentation for available resources and provision away!Example:
```hcl
terraform {
required_providers {
fake = "~> 0.1"
}
}provider "fake" {
token = var.provider_token
}resource "fake_vpc" "primary_vpc" {
name = "Primary VPC"
cidr_block = "0.0.0.0/1"
}resource "fake_server" "servers" {
count = 2name = "Server ${count.index+1}"
type = "t2.micro"
vpc = fake_vpc.primary_vpc.name
}resource "fake_load_balancer" "primary_lb" {
name = "Primary Load Balancer"
servers = fake_server.servers[*].name
}resource "fake_database" "prod_db" {
name = "Production DB"
size = 256
}
```