Skip to content

google_cloud_run_v2_service doesn't add env blocks, tries to remove them from services deployed with existing versions #21742

Open
@sebastiangug

Description

@sebastiangug

Community Note

Recently updated to 6.24.0 from 4.x and my google_cloud_run_v2_service have their env {} blocks removed on apply, they are defined exactly as in the documentation, nested to the letter.

I have added the containers block to the lifecycle ignore, but now I need to deploy new services and my .env definitions do not add any environment variables at all.

Related stackoverflow issue: https://stackoverflow.com/questions/79489913/upgraded-google-provider-and-now-my-cloud-run-env-blocks-are-being-removed

Terraform Version & Provider Version(s)

1.11.1 terraform via terraform cloud
6.24.0 google cloud provider

Affected Resource(s)

google_cloud_run_v2_service

Terraform Configuration

Debug Output

No response

Expected Behavior

No response

Actual Behavior

No response

Steps to reproduce

  1. terraform apply

Important Factoids

No response

References

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions