Skip to content
This repository was archived by the owner on Nov 19, 2023. It is now read-only.
This repository was archived by the owner on Nov 19, 2023. It is now read-only.

Errors while deploying Cloud Functions #213

Description

@sripto

Environment: GCE VM running Debian 5.10.136 (amd64)
Go: v1.16 (runtime chosen in GCP cloud functions)

After having installed all the required components and going past the error and fix identified in this issue, I'm encountering the following error:

Error: Error waiting for Creating CloudFunctions Function: Error code 3, message: Build failed: # cloud.google.com/go/storage
/layers/google.go.functions-framework/gopath/pkg/mod/cloud.google.com/go/storage@v1.22.1/bucket.go:1504:5: cannot use r.Condition.AgeInDays (type int64) as type *int64 in field value
/layers/google.go.functions-framework/gopath/pkg/mod/cloud.google.com/go/storage@v1.22.1/bucket.go:1592:5: cannot use rr.Condition.Age (type *int64) as type int64 in field value; Error ID: 975560ac

 with module.revoke_iam_grants.google_cloudfunctions_function.revoke_member_function,
 on cloudfunctions/iam/revoke/main.tf line 16, in resource "google_cloudfunctions_function" "revoke_member_function":
 16: resource "google_cloudfunctions_function" "revoke_member_function" {

The same error shows up for the following files:

cloudfunctions/bigquery/closepublicdataset/main.tf
cloudfunctions/cloud-sql/removepublic/main.tf
cloudfunctions/cloud-sql/requiressl/main.tf
cloudfunctions/cloud-sql/updatepassword/main.tf
cloudfunctions/filter/main.tf
cloudfunctions/gce/createsnapshot/main.tf
cloudfunctions/gce/openfirewall/main.tf
cloudfunctions/gce/removepublicip/main.tf
cloudfunctions/gcs/closebucket/main.tf
cloudfunctions/gcs/enablebucketonlypolicy/main.tf
cloudfunctions/gke/disabledashboard/main.tf
cloudfunctions/iam/enableauditlogs/main.tf
cloudfunctions/iam/revoke/main.tf
cloudfunctions/router/main.tf

Could someone point me in the right direction to get past this error? Is there any updated code base that fixes all outstanding bugs/issues?

Thank you for any help on this.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions