Skip to content
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

BUG: Assigning members to an environment errors out with Project does not have access to this environment. #107

Closed
kiranbaddi opened this issue Oct 26, 2024 · 2 comments

Comments

@kiranbaddi
Copy link

Issue:

doppler_project_member_group resource creation fails with the following error. The error occurs quite sporadically.

 Error: Doppler Error: Project does not have access to this environment.
│ 
│   with module.delete-asap-61-repository.doppler_project_member_group.doppler_developer_group_assignment,
│   on modules/repositories/main.tf line 98, in resource "doppler_project_member_group" "doppler_developer_group_assignment":
│   98: resource "doppler_project_member_group" "doppler_developer_group_assignment" {

This is the resource definition in our module

resource "doppler_project_member_group" "doppler_devops_group_assignment" {
  project      = var.name
  group_slug   = "<group_slug>"
  role         = "collaborator"
  environments = ["development", "testing", "staging", "production"]
  depends_on   = [doppler_project.project, doppler_environment.production, doppler_environment.staging, doppler_environment.testing, doppler_environment.development]
}
@watsonian
Copy link
Contributor

@kiranbaddi When you encounter this – are any changes happening to the projects and environments being referenced (i.e., are they being created/deleted/modified during the TF run)? Or does it happen in situations where just the doppler_project_member_group is being applied?

@watsonian
Copy link
Contributor

Closing this out due to lack of response. Feel free to post again if you're still having problems and we can re-open it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants