brandonc
Repos
53
Followers
30
Following
21

Official Terraform Cloud/Enterprise provider, maintained by HashiCorp. Provision Terraform Cloud or Terraform Enterprise - with Terraform!

121
110

Smuggle JSON from Google Sheets to the ☁

Terraform enables you to safely and predictably create, change, and improve infrastructure. It is an open source tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.

36000
7955

A simple ruby-jealous c# extension class that makes regular expressions fun again.

3
0

Events

Allow tfe_organization_membership resource to be imported by org name and user email

Add changelog entry

Handle slashes in email addresses for tfe_org_member import

Merge pull request #715 from hashicorp/jspiker/import-org-membership

Allow tfe_organization_membership import by org name and user email

Created at 7 hours ago
brandonc delete branch jspiker/import-org-membership
Created at 7 hours ago
pull request closed
Allow tfe_organization_membership import by org name and user email

Description

Allow tfe_organization_membership resource to also be imported by org-name/user-email

Presently, the resource can only be imported through its ID, which is not presented to the user in the TFE UI. This makes it very difficult to import.

Testing plan

  1. Test that import by ID still works
  2. Test that importing by org/email works
  3. Test that importing by an invalid format errors
  4. Test that importing a non existent org name or email errors

External links

Output from acceptance tests

❯ TF_ACC=1 go test ./...  -run TestAccTFEOrganizationMembership -tags=integration -v
?       github.com/hashicorp/terraform-provider-tfe     [no test files]
=== RUN   TestAccTFEOrganizationMembershipDataSource_basic
--- PASS: TestAccTFEOrganizationMembershipDataSource_basic (17.87s)
=== RUN   TestAccTFEOrganizationMembershipDataSource_findByName
    data_source_organization_membership_test.go:47: Please set TFE_USER1 to run this test
--- SKIP: TestAccTFEOrganizationMembershipDataSource_findByName (0.36s)
=== RUN   TestAccTFEOrganizationMembershipDataSource_missingParams
--- PASS: TestAccTFEOrganizationMembershipDataSource_missingParams (4.41s)
=== RUN   TestAccTFEOrganizationMembership_basic
--- PASS: TestAccTFEOrganizationMembership_basic (6.66s)
=== RUN   TestAccTFEOrganizationMembershipImport_ByID
--- PASS: TestAccTFEOrganizationMembershipImport_ByID (6.94s)
=== RUN   TestAccTFEOrganizationMembershipImport_ByEmail
--- PASS: TestAccTFEOrganizationMembershipImport_ByEmail (7.05s)
=== RUN   TestAccTFEOrganizationMembershipImport_invalidImportId
--- PASS: TestAccTFEOrganizationMembershipImport_invalidImportId (7.72s)
PASS
ok      github.com/hashicorp/terraform-provider-tfe/tfe 51.182s


...
Created at 7 hours ago
Allow tfe_organization_membership import by org name and user email

We are struggling with some upstream test infrastructure changes today. I'm going to merge this now and ensure the tests pass later on.

Created at 7 hours ago
create branch
brandonc create branch main
Created at 11 hours ago
create repository
brandonc create repository
Created at 11 hours ago
Guide script to use terraform-plugin-docs

Converted to draft until the work to complete this is prioritized

Created at 12 hours ago
Formatting the provider to use terraform-plugin-docs

Converted to draft until the work to support is prioritized

Created at 12 hours ago
pull request closed
Add keepers argument for token resources

Description

Add support to recreate tokens with an argument named keepers. Adding this functionality to recreate token if resources change/update or can be used with the terraform resource time_rotating.

Testing plan

Example: This will rotate the token after 2 minutes.

resource "time_rotating" "token" {
  rotation_minutes = 2
}

resource "tfe_team_token" "manage_workspaces" {
  team_id = "xxxxxx"

  keepers = {
    time_rotation = time_rotating.token.id
  }
}

Output from acceptance tests

Currently do not have a test organization for TFC setup.

Please let me know if any information is missing or if changes need to me made.

Created at 12 hours ago
Add keepers argument for token resources

Closing this PR because it's over 6 months old. Let us know if lifecycle replace_triggered_by didn't help your situation!

Created at 12 hours ago
issue comment
Remove beta flags from Team and Projects

I converted this to draft so it doens't show up on our review monitor. Please undraft when you remove the Projects LD flag

Created at 12 hours ago
pull request opened
Adds html_url attribute to d/tfe_workspace and r/tfe_workspace

Description

Adds html_url attribute to workspace resource & data source which is the URL to the browsable terraform cloud workspace overview as reported by the API

This PR is blocked until the next go-tfe release (1.18)

Output from acceptance tests

$ TESTARGS="-run TestAccTFEWorkspace_basic" make testacc
TF_ACC=1 TF_LOG_SDK_PROTO=OFF go test $(go list ./... |grep -v 'vendor') -v -run TestAccTFEWorkspace_basic -timeout 15m
?   	github.com/hashicorp/terraform-provider-tfe	[no test files]
=== RUN   TestAccTFEWorkspace_basic
--- PASS: TestAccTFEWorkspace_basic (38.37s)
=== RUN   TestAccTFEWorkspace_basicReadProjectId
    testing.go:186: Skipping test related to a Terraform Cloud/Enterprise beta feature. Set ENABLE_BETA=1 to run.
--- SKIP: TestAccTFEWorkspace_basicReadProjectId (0.00s)
=== RUN   TestAccTFEWorkspace_basicAssessmentsEnabled
--- PASS: TestAccTFEWorkspace_basicAssessmentsEnabled (61.81s)
PASS
ok  	github.com/hashicorp/terraform-provider-tfe/tfe	100.627s
?   	github.com/hashicorp/terraform-provider-tfe/version	[no test files]
...
Created at 13 hours ago
brandonc create branch TF-3849-add-html-url-field-to-tfe-workspace-resource-data-source
Created at 13 hours ago

Backport support for generic hostname to backend/remote

Merge pull request #32610 from hashicorp/TF-4115-backport-generic-hostname-configuration-in-cli-to-backend-remote

Backport support for generic hostname to backend/remote

Created at 14 hours ago
delete branch
brandonc delete branch TF-4115-backport-generic-hostname-configuration-in-cli-to-backend-remote
Created at 14 hours ago
pull request closed
Backport support for generic hostname to backend/remote

Duplicates generic hostname enhancement to backend/remote. We don't have a history of sharing code between the cloud and remote backends and this was a very small change so I basically duplicated #32571

My thinking is that this enhancement falls close to being a bug fix so it might not be worthwhile to insist on a migration to cloud backend to get it. I'm open to either a different implementation that shares code or not backporting it at all.

Target Release

1.4.0

Created at 14 hours ago
Test issue

Testing slack app

Created at 14 hours ago
Test issue

Testing slack app

Created at 14 hours ago
Test issue

Testing slack app

Created at 14 hours ago
Test issue

Testing slack app

Created at 14 hours ago
docs: fix readme example

@adamdecaf This action is somewhat new and so far only supports our go testing efforts on hashicorp/go-tfe and hashicorp/terraform-provider-tfe. Let me know if you run into any issues or have other feedback!

Created at 14 hours ago

docs: fix readme example

Merge pull request #3 from adamdecaf/fix-readme-parallel

docs: fix readme example

Created at 14 hours ago