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

Fix Hardcoded Project ID in Terraform File #1579

Merged
merged 2 commits into from
Apr 19, 2024

Conversation

tristanvuong2021
Copy link
Contributor

No description provided.

@tristanvuong2021 tristanvuong2021 marked this pull request as ready for review April 18, 2024 19:43
@wfa-reviewable
Copy link

This change is Reviewable

Copy link
Member

@SanjayVas SanjayVas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @tristanvuong2021)


src/main/terraform/gcloud/cmms/main.tf line 97 at r1 (raw file):

resource "google_project_iam_member" "cloud_traces_agent" {
  project = data.google_project.project.project_id

Sorry, I realized we have the google_client_config data resource already that can get this, so no need to add a google_project data resource.

data.google_client_config.default.project

Copy link
Contributor Author

@tristanvuong2021 tristanvuong2021 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @SanjayVas)


src/main/terraform/gcloud/cmms/main.tf line 97 at r1 (raw file):

Previously, SanjayVas (Sanjay Vasandani) wrote…

Sorry, I realized we have the google_client_config data resource already that can get this, so no need to add a google_project data resource.

data.google_client_config.default.project

Done.

Copy link
Contributor Author

@tristanvuong2021 tristanvuong2021 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested using tf plan in workflow.

Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @SanjayVas)

Copy link
Member

@SanjayVas SanjayVas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @tristanvuong2021)

Copy link
Collaborator

@stevenwarejones stevenwarejones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @tristanvuong2021)

@tristanvuong2021 tristanvuong2021 merged commit f6caef9 into main Apr 19, 2024
4 checks passed
@tristanvuong2021 tristanvuong2021 deleted the tristanvuong-fix-hardcoded-project-name branch April 19, 2024 16:57
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.

GCloud Terraform configuration for test environments hard-codes halo-cmm-dev project name
4 participants