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.
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. - 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
}