Anyone know why I would be getting ``` Error: f...
# aws
a
Anyone know why I would be getting
Copy code
Error: failed to register new resource ***** [aws-apigateway:index:RestAPI]: 2 UNKNOWN: plugins that can construct components must support secrets
When doing as per example in https://www.pulumi.com/docs/guides/crosswalk/aws/api-gateway/#lambda-request-handling but with a provider eg:
Copy code
export const openapiAPI = new apigateway.RestAPI(
  `api`,
  routes: [
    {
      path: "/",
      method: "GET",
      eventHandler: helloHandler,
    },
  ],
  { provider }
);
h
What are you setting in your explicit provider?
Also, what version are you using of aws-apigateway?
Try bumping up to 1.0 - this might be a bug in an older version possibly
a
Hey thanks for getting back to me, Just updated
@pulumi/aws-apigateway
to v1.0.0 and still getting error. For the provider I'm setting
region
,
assumeRole
and
defaultTags
. I switched over to using
new awsx.apigateway.API
and not having issues so not blocked now