Skip to content

Commit

Permalink
Merge pull request #144 from ausmartway:stacks-test
Browse files Browse the repository at this point in the history
initial test of stacks
  • Loading branch information
ausmartway authored Jan 10, 2025
2 parents 28e9c78 + e1d80e5 commit eaaa89d
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 65 deletions.
122 changes: 61 additions & 61 deletions .terraform.lock.hcl

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

2 changes: 1 addition & 1 deletion non-vcs-workspaces.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ locals {

module "non-vcs-connected-workspace" {
source = "ausmartway/non-vcs-connected-workspace/tfe"
version = "0.1.0"
version = "0.1.1"
for_each = local.inputworkspacemap
# insert the 4 required variables here
organization = var.organization
Expand Down
1 change: 1 addition & 0 deletions projects/project-playground.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name: Playground
19 changes: 19 additions & 0 deletions stacks.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# terraform stacks is a new feature introduced

resource "tfe_stack" "test-stack" {
name = "my-stack"
description = "A Terraform Stack using two components with two environments"
project_id = tfe_project.projects["Playground"].id

vcs_repo {
branch = "main"
identifier = "ausmartway/stack-repo"
oauth_token_id = local.tfc_oauth_token
}
}

resource github_repository "stack-repo" {
name = "stack-repo"
description = "A repository for the stack"
visibility = "private"
}
2 changes: 1 addition & 1 deletion vcs-connected-workspaces.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ locals {

module "vcs-connected-workspace" {
source = "ausmartway/vcs-connected-workspace/tfe"
version = "0.1.0"
version = "0.1.1"
# insert the 5 required variables here
for_each = local.inputvcsworkspacemap
organization = var.organization
Expand Down
4 changes: 2 additions & 2 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {
required_version = ">= 1.0"
required_providers {
tfe = {
source = "ausmartway/tfe"
version = "0.59.2"
# source = "ausmartway/tfe"
version = ">=0.61"
}
vault = ">= 4.4.0"
github = {
Expand Down

0 comments on commit eaaa89d

Please sign in to comment.