Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RegionNetworkEndpointGroup: Invalid value for field 'resource.creationTimestamp' #804

Closed
Narrayahodeir opened this issue Apr 29, 2022 · 9 comments
Assignees
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed

Comments

@Narrayahodeir
Copy link

Narrayahodeir commented Apr 29, 2022

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).

@knowhoper
Copy link

👍

@guineveresaenger
Copy link
Contributor

guineveresaenger commented May 5, 2022

Thank you for filing this issue!

@mylesdavittcarma
Copy link

👍

1 similar comment
@shaariqch
Copy link

👍

@knowhoper
Copy link

Is there any update on this issue? @Narrayahodeir

@Narrayahodeir
Copy link
Author

Narrayahodeir commented May 19, 2022

Is there any update on this issue? @Narrayahodeir

Not from my site. It seems to be an upstream issue and needs to be addressed there.

@Mankee
Copy link

Mankee commented Oct 21, 2023

👍

@rshade
Copy link
Contributor

rshade commented Nov 20, 2024

I have ran your code, and it seems to work now. Can you check and see if its still broken on your side?

@rshade rshade self-assigned this Nov 20, 2024
@Narrayahodeir
Copy link
Author

I have ran your code, and it seems to work now. Can you check and see if its still broken on your side?

Thanks Richard for verifying. Unfortunately I don't have access to the code anymore. I think we can close the issue since you tested it successfully.

@VenelinMartinov VenelinMartinov added the resolution/fixed This issue was fixed label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Projects
None yet
Development

No branches or pull requests

8 participants