Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelkrief committed Jun 18, 2023
1 parent 8606ba3 commit b473d64
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 0 deletions.
22 changes: 22 additions & 0 deletions CHAP14/costestimation/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions CHAP14/tfe-sample/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions CHAP14/tfe-sample/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
terraform {
required_version = ">= 1.1.0"
required_providers {
tfe = {
source = "hashicorp/tfe"
version = "0.45.0"
}
}
cloud {
hostname = "app.terraform.io"
organization = "demo-tfe"

workspaces {
name = "manage-tfe"
}
}
}

provider "tfe" {
}

resource "tfe_organization" "test-organization" {
name = "demo-tfe-book"
email = "admin@company.com"
}

resource "tfe_project" "test" {
organization = tfe_organization.test-organization.name
name = "appproject"
}

resource "tfe_workspace" "wsnetwork" {
name = "network"
organization = tfe_organization.test-organization.name
}

resource "tfe_workspace" "wsvm" {
name = "vm"
organization = tfe_organization.test-organization.name
}

0 comments on commit b473d64

Please sign in to comment.