RegionNetworkEndpointGroup: Invalid value for field 'resource.creationTimestamp'
See original GitHub issueWhat 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:
- Created a year ago
- Reactions:4
- Comments:6 (1 by maintainers)

Top Related StackOverflow Question
👍
👍