mirror of
https://github.com/hashicorp/terraform-provider-fakewebservices
synced 2026-04-05 18:59:30 +00:00
No description
- Go 95.5%
- Shell 3.3%
- Makefile 0.7%
- HCL 0.5%
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> |
||
|---|---|---|
| .github | ||
| .release | ||
| client | ||
| docs | ||
| fws | ||
| scripts | ||
| templates | ||
| tools | ||
| .gitignore | ||
| .go-version | ||
| .goreleaser.yml | ||
| CHANGELOG.md | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| Makefile | ||
| README.md | ||
| terraform-registry-manifest.json | ||
Terraform "Fake Web Services" Provider
This provider provisions "resources" to a fictitious cloud provider, "Fake Web Services" - used in the TFC Getting Started project.
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 initwill automatically fetch and install the provider for you from the Terraform Registry. - Create a user or team API token in Terraform Cloud/Enterprise, and use the token in the provider configuration block.
- See the documentation for available resources and provision away!
Example:
terraform {
required_providers {
fakewebservices = "~> 0.1"
}
}
provider "fakewebservices" {
token = var.provider_token
}
resource "fakewebservices_vpc" "primary_vpc" {
name = "Primary VPC"
cidr_block = "0.0.0.0/1"
}
resource "fakewebservices_server" "servers" {
count = 2
name = "Server ${count.index+1}"
type = "t2.micro"
vpc = fakewebservices_vpc.primary_vpc.name
}
resource "fakewebservices_load_balancer" "primary_lb" {
name = "Primary Load Balancer"
servers = fakewebservices_server.servers[*].name
}
resource "fakewebservices_database" "prod_db" {
name = "Production DB"
size = 256
}