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

Stablize default service account in plan #153

Conversation

thefirstofthe300
Copy link
Contributor

The default service account data resource currently uses a depends_on
flag added to prevent a race condition in
#141

Due to the way that Terraform refreshes data resources, Terraform thinks
that the data resource has changed when in actuality it hasn't:
hashicorp/terraform#11806 (comment)

By changing to use a null data resource that interpolates the default
service account email, the data resource will only change when the project
number does.

@thefirstofthe300 thefirstofthe300 force-pushed the ds/stabilize-plan branch 2 times, most recently from d899a3c to 84235ea Compare February 28, 2019 00:47
Copy link
Contributor

@adrienthebo adrienthebo left a comment

Choose a reason for hiding this comment

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

Looks sensible to me, let's see what CI thinks. If that passes I'll test locally to make sure that the plan is stable and 👍 this if it checks out.

modules/core_project_factory/main.tf Outdated Show resolved Hide resolved
The default service account data resource currently uses a depends_on
flag added to prevent a race condition in
terraform-google-modules#141

Due to the way that Terraform refreshes data resources, Terraform thinks
that the data resource has changed when in actuality it hasn't:
hashicorp/terraform#11806 (comment)

By changing to use a null data resource that interpolates the default
service account email, the data resource will only change when the project
number does.
Copy link
Contributor

@adrienthebo adrienthebo left a comment

Choose a reason for hiding this comment

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

Verified that the plan is stable, LGTM.

@adrienthebo adrienthebo merged commit 580c5dd into terraform-google-modules:master Feb 28, 2019
@thefirstofthe300 thefirstofthe300 deleted the ds/stabilize-plan branch February 28, 2019 22:05
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