Please vote on this issue by adding a š reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
If an issue is assigned to a user, that user is claiming responsibility for the issue.
Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.
Terraform Version & Provider Version(s)
Terraform v1.9.8
on linux_amd64
+ provider registry.terraform.io/hashicorp/google v6.7.0
Affected Resource(s)
google_workflows_workflow
Terraform Configuration
provider "google" {
project = "project-test"
}
# Create a dedicated service account
resource "google_service_account" "default" {
account_id = "sample-workflows-sa"
display_name = "Sample Workflows Service Account"
}
# Create a workflow
resource "google_workflows_workflow" "default" {
name = "sample-workflow"
region = "us-central1"
description = "A sample workflow"
service_account = google_service_account.default.id
call_log_level = "CALL_LOG_LEVEL_UNSPECIFIED"
labels = {
env = "test"
}
user_env_vars = {
url = "https://timeapi.io/api/Time/current/zone?timeZone=Europe/Amsterdam"
}
source_contents = <<-EOF
# This is a sample workflow that you can replace with your source code
#
# The workflow does the following:
# - Retrieves the current date from a public API and stores the
# response in `currentDate`
# - Retrieves a list of Wikipedia articles from a public API related
# to the day of the week stored in `currentDate`
# - Returns the list of articles in the workflow output
#
# Note that when you define workflows in Terraform, variables must be
# escaped with two dollar signs ($$) and not a single sign ($)
- getCurrentDate:
call: http.get
args:
url: $${sys.get_env("url")}
result: currentDate
- readWikipedia:
call: http.get
args:
url: https://en.wikipedia.org/w/api.php
query:
action: opensearch
search: $${currentDate.body.dayOfWeek}
result: wikiResult
- returnOutput:
return: $${wikiResult.body[1]}
EOF
}
Debug Output
No response
Expected Behavior
no plan changes
Actual Behavior
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# google_workflows_workflow.default will be updated in-place
~ resource "google_workflows_workflow" "default" {
+ call_log_level = "CALL_LOG_LEVEL_UNSPECIFIED"
id = "projects/project-test/locations/us-central1/workflows/sample-workflow"
name = "sample-workflow"
# (13 unchanged attributes hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
Steps to reproduce
terraform apply
Important Factoids
What is interesting is that
w/o the call_log_level attribute set , no false plan change
with call_log_level attribute set to LOG_ALL_CALLS , no false plan change
Community Note
Terraform Version & Provider Version(s)
Affected Resource(s)
Terraform Configuration
Debug Output
No response
Expected Behavior
no plan changes
Actual Behavior
Steps to reproduce
terraform apply
Important Factoids
What is interesting is that
call_log_level
attribute set , no false plan changecall_log_level
attribute set toLOG_ALL_CALLS
, no false plan changeReferences
No response
b/376080369