question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RegionNetworkEndpointGroup: Invalid value for field 'resource.creationTimestamp'

See original GitHub issue

What happened?

I want to create a serverless NEG with the compute.RegionNetworkEndpointGroup resource (NodeJS SDK) and get the following error:

“Error creating RegionNetworkEndpointGroup: googleapi: Error 400: Invalid value for field ‘resource.creationTimestamp’: ‘’. Must be a match of regex ‘(?:[0-9a-z][0-9a-z-]{0,48})’., invalid”

The creation timestamp looks empty and isn’t valid.

Steps to reproduce

The following resource is being used:

const networkEndpointGroup = new gcp.compute.RegionNetworkEndpointGroup(
  'network-endpoint-group',
  {
    name: `${prefix}-neg`,
    region: gcpRegion,
    networkEndpointType: 'SERVERLESS',
    serverlessDeployment: {
      platform: 'apigateway.googleapis.com',
      resource: apiGateway.id,
    },
  }
);

Expected Behavior

I expect a valid creationTimestamp and the resource being created successfully.

Actual Behavior

After issuing pulumi up this error appears:

“Error creating RegionNetworkEndpointGroup: googleapi: Error 400: Invalid value for field ‘resource.creationTimestamp’: ‘’. Must be a match of regex ‘(?:[0-9a-z][0-9a-z-]{0,48})’., invalid”

And the resource isn’t being created.

Versions used

CLI
Version 3.30.0 Go Version go1.18.1

Plugins NAME VERSION nodejs 16.14.0

Host
OS darwin Version 12.3.1 Arch x86_64

Name @pulumi/google-native 0.18.1 @pulumi/gcp 6.21.0

Additional context

If I change resource: apiGateway.id, to urlMask: '<gateway>' the resource is being created. But I need the resource property.

With the “gcloud beta SDK” the resource can be created with the required properties (with resource instead urlmask).

The same behaviour is experienced with the google-native provider version 0.18.1.

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you’ve opened one already).

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
knowhopercommented, Apr 29, 2022

👍

3reactions
mylesdavittcarmacommented, May 9, 2022

👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

REST Resource: regionNetworkEndpointGroups - Google Cloud
The function name is case-sensitive and must be 1-63 characters long. Example value: "func1". cloudFunction.urlMask. string. A template to parse function field ......
Read more >
terraform gcp lb module throwing "invalid value for field ...
I'm trying to create a https load balancer to serve requests to cloud run services using this module: ...
Read more >
Create RegionNetworkEndpointGroup Resource - Pulumi
Deprecated : This field is only valid when the network endpoint group is used for load balancing. [Deprecated] This field is deprecated. name...
Read more >
googleapis documentation - Google Cloud
This sorts results based on the creationTimestamp field in reverse ... If you try to force attach a zonal disk to an instance,...
Read more >
google_compute_region_networ...
Recreating a region network endpoint group that's in use by another resource will give a resourceInUseByAnotherResource error.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found