https://pulumi.com logo
#aws
Title
# aws
a

adamant-guitar-56279

11/22/2022, 9:02 PM
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

happy-parrot-60128

11/23/2022, 11:55 AM
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

adamant-guitar-56279

11/23/2022, 10:27 PM
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
2 Views