-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for selection of Terraform Cloud project ID other than 'Default Project' #342
Comments
Do you see value of specifying the project as part of account request? so that admins can manage workspaces by group of projects and perhaps use it to drive other things (i.e. variable sets) |
@wellsiau-aws In my case I am primarily using AFT for its For now, I have chosen to keep terraform code related to my actual application-related infrastructure outside of the AFT workflow (i.e. I'm not using I suppose from your perspective you need to consider that So to answer your question directly: No, I don't see value in that for my use case. However, I think thats largely because of how I'm making use of AFT. If I were making more use of
One other interesting pattern I'm exploring in terms of the relationship between a TFC workspace and an AWS account is the authentication piece. I notice today that you guys use workspace variables with session credentials to allow the workspace to apply customizations ( I wonder if you may be able to create a more permanent (but still session-driven) relationship between the customizations TFC workspaces and the AWS account by making use of an IAM OIDC provider. This has recently been supported by TFC. To expand on your mention of variable sets... It would be interesting if accounts that were shipped via This would allow for an easy way to "make the connection" between a TFC workspace and an AFT-provisioned account (whether that workspace that eventually makes use of the variable set is generated/associated with AFT or not). |
Thanks for sharing your perspective, this is very useful! regarding dynamic provider crednetials / OIDC-based variable, we have open request about it (#318) |
No problem. Good to see you're looking at OIDC providers! |
@rybons thank you for reaching out. |
+1 on this idea. I would like to make use of project-scoped permissions in TFC, but manually moving new workspaces into the project is clunky. Adding this feature would be awesome |
My workaround for the time being is to rename the default project and leverage it just for AFT |
Describe the outcome you'd like
I would like to be able to manage my AFT workspaces in a Terraform Cloud project other than
Default Project
.Is your feature request related to a problem you are currently experiencing? If so, please describe.
The module does not seem to support a variable where I can specify a
project_id
to ensure the workspaces managed by AFT get created under a particular Terraform Cloud project of my choosing.This would be a nice feature because If the
Default Project
space is used for other (non-AFT) purposes, existing workspaces can get drowned out and hard to find once AFT starts creating a lot of customizations workspaces.Additional context
Based on my understanding of the AFT workflow, it may make sense to:
project_id
as an SSM parameter (sourced from an option module variable input - which could hopefully default tonull
).workspace_manager.py
.data.relationships.project.data.id
in the create workspace request body.See:
Other considerations
Assume AFT workspaces are already being created/used in
Default Project
. If this feature were to be added, will AFT simply correct the course? Or, would the AFT user need to perform any sort of migration to transition any pre-existing AFT workspaces to a different project?The text was updated successfully, but these errors were encountered: