Skip to content

Rewrite TFC module for service workspaces under tfe_project#85

Merged
daniele-20tab merged 1 commit into
mainfrom
feature/1175-tfc-cloud-followup
Apr 28, 2026
Merged

Rewrite TFC module for service workspaces under tfe_project#85
daniele-20tab merged 1 commit into
mainfrom
feature/1175-tfc-cloud-followup

Conversation

@filippo-20tab

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #84. Aligns the generated TFC module with the canonical Minos workspace layout (piano TG-1175 §6, §7).

Changes

  • TFC project: introduce tfe_project.main with default_execution_mode = "local". All service workspaces live under it via project_id.
  • Workspace naming: ${project_slug}_${service_slug}_${env_name} (e.g. gs1-one_frontend_development). Drop the legacy base/cluster workspaces per stack.
  • Drop tfe_workspace_settings: execution mode is now inherited from the project, no per-workspace override needed.
  • create_project flag (default true): when Talos has already created the project, the module reads it as a data source instead.
  • TFE provider: bump ~> 0.53~> 0.70.
  • Runner: new field terraform_cloud_project_create: bool = True; passes TF_VAR_create_project; switches TF_VAR_environments payload from env slugs to env names (matches workspace naming).
  • stacks variable removed from terraform-cloud/variables.tf.

Notes

  • Existing TFC organizations created by Feature/1175 add minos support #84 will need their pre-existing per-stack workspaces removed by hand — this PR no longer manages them.
  • Pairs with the same convention being adopted in talos and django-continuous-delivery.

@daniele-20tab daniele-20tab merged commit ab3c923 into main Apr 28, 2026
1 check passed
@daniele-20tab daniele-20tab deleted the feature/1175-tfc-cloud-followup branch April 28, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants