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

Invalid or unknown key. Examine values at 'ServiceVcl.LoggingKineses' #159

Open
Ira-Varganovska opened this issue Mar 9, 2022 · 5 comments
Labels
area/docs Improvements or additions to documentation kind/bug Some behavior is incorrect or out of spec

Comments

@Ira-Varganovska
Copy link

Hello!

  • 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 details

I'm getting error Invalid or unknown key. Examine values at 'ServiceVcl.LoggingKineses' when trying to add logging to Kineses.
The issue is reproduced on all versions 2.15.0, 3.X, 4.0.0.
The issue appears if loggingKineses is added to ServiceVclArgs (Servicev1Args)
Similar behavior is observed for loggingHerokus. All other types of logging args have no such issue.

Steps to reproduce

  1. Create the service with argument loggingKineses: []
  2. Run pulumi preview

Example

import * as fastly from "@pulumi/fastly";

const service = new fastly.ServiceVcl("my-service", {
  loggingKineses: [],
  backends: [{
       address: "127.0.0.1",
       name: "localhost",
       port: 80
   }],
  domains: [{
       comment: "demo",
       name: "demo.pulumi.com",
  }],
  forceDestroy: true,
});

Expected: No error is returned
Actual: has a problem: Invalid or unknown key. Examine values at 'ServiceVcl.LoggingKineses'.

@Ira-Varganovska Ira-Varganovska added the kind/bug Some behavior is incorrect or out of spec label Mar 9, 2022
@jkodroff jkodroff added the area/docs Improvements or additions to documentation label Mar 15, 2022
@jkodroff
Copy link
Member

@Ira-Varganovska Thanks for submitting this issue. It looks like name and topic are required attributes for loggingKinesis: https://www.pulumi.com/registry/packages/fastly/api-docs/servicevcl/#servicevclloggingkinese

Closing this issue, but please comment again if adding the required attributes does not resolve the issue for you.

@Ira-Varganovska
Copy link
Author

Hi @jkodroff, thank you for your reply. As you could see from the example above, loggingKineses is an empty array, so no required fields should be impacting. Maybe my example was not a good one, this is also not working example:

           const service = new fastly.Servicev1("my-service", {
                loggingKineses: [{
                    name: 'kineses-logging',
                    topic: 'arn:aws:kinesis:us-east-1:####:stream/logs-cdn-test',
                    region: 'us-east-1',
                    iamRole: 'arn:aws:iam::####:role/cdn-kinesis'
                }],
                backends: [{
                    address: "127.0.0.1",
                    name: "localhost",
                    port: 80
                }],
                domains: [{
                    comment: "demo",
                    name: "demo.pulumi.com",
                }],
                forceDestroy: true,
            });
            

Error message:
fastly:index/servicev1:Servicev1 resource 'my-service' has a problem: Invalid or unknown key. Examine values at 'Servicev1.LoggingKineses'.

@jkodroff jkodroff reopened this Mar 15, 2022
@rexoafastly
Copy link

Hi All. I am by no means a Pulumi expert but could this perhaps be a typo? The reference to Amazon Kinesis key in the example seems to be mis-spelled as loggingKineses, with an e instead of i. Thoughts?

@jkodroff
Copy link
Member

jkodroff commented May 16, 2022

@rexoafastly I would agree that it's a pluralization mistake (but the name actually is loggingKineses in the generated code). I think this weirdness is an issue with our pluralization where it thinks it's a Latin term, e.g. "thesis" -> "theses". Could you file a separate issue for the awkward spelling?

@Harry-027
Copy link

I'm also facing same issue ! Is it going to be resolved anytime soon ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docs Improvements or additions to documentation kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

4 participants