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

TypeScript: Resource handler returned message: "Another resource with the same parent already has this name:... #16

Open
paulatwilson opened this issue Aug 23, 2022 · 0 comments

Comments

@paulatwilson
Copy link

Hello,

We are trying to use the openapi-integration-helper with the TypeScript template of server less 3.x. We have spent nearly two days on this and continue to have the same issue:

Error:
CREATE_FAILED: ApiGatewayResourceExt (AWS::ApiGateway::Resource)
Resource handler returned message: "Another resource with the same parent already has this name: ext (Service: ApiGateway, Status Code: 409, Request ID:<snip>)" (RequestToken:<snip>, HandlerErrorCode: AlreadyExists)

There is nothing else using "ext" and it doesn't matter what we change the the URL to, it always says that is AlreadyExists. Even if I were to created a UUID v4.

The config in our serverless.ts file is:

  openApiIntegration: {
    package: true,
    inputFile: 'schema.yml',
    mapping: [
      {
        stage: ['sb','dev', 'test', 'prod'],
      },
    ],
  },
  resources: {
    Resources: {
      ApiGatewayRestApi: {
        Type: 'AWS::ApiGateway::RestApi',
        Properties: {
          DisableExecuteApiEndpoint: true,
          ApiKeySourceType: 'HEADER',
          Body: '~',
          Description: 'Some Description',
          FailOnWarnings: false,
          Name: 'ips-external-client-apis-${opt:stage, self:provider.stage}',
          EndpointConfiguration: {
            Types: ['REGIONAL'],
          },
        },
      },     
    },
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant