pulumi-aws icon indicating copy to clipboard operation
pulumi-aws copied to clipboard

AWS Certificate Validation: On-page example is not valid.

Open MitchellGerdisch opened this issue 2 years ago • 2 comments

Problem description

  • I saw a product documentation issue on the following URL: https://www.pulumi.com/registry/packages/aws/api-docs/acm/certificatevalidation/ The example has several errors that make it unusable:
  • references domainValidationOptions property of a certificate which does not exist. The property is validationOptions or validation_options etc.
  • Even with the correct property name, the way the example is written throws this error: TypeError: 'Output' object is not iterable, consider iterating the underlying value inside an 'apply'
  • The loop (at least in Python) in the example doesn't work and throws unknown value errors.

This is likely part of a larger effort to handle translating TF examples automatically.

Affected product version(s)

Suggestions for a fix

MitchellGerdisch avatar Jul 25 '22 18:07 MitchellGerdisch

I am having the same problem with the TypeScript example. The block of code in that example is complex, and non-functional when used. Trying to debug it is driving me crazy.

duro avatar Aug 04 '22 23:08 duro

@duro The docs are definitely hit or miss.

Try looking at this example: https://github.com/pulumi/examples/blob/master/aws-apigateway-ts-routes/dns.ts

ericpardee avatar Aug 05 '22 00:08 ericpardee