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

EventBridge Unsupported element '$[events][0][detail-type]' inside an event. #3194

Open
Jedidiahip opened this issue Feb 25, 2025 · 0 comments

Comments

@Jedidiahip
Copy link

Environment information

System:
  OS: Linux 6.8 Debian GNU/Linux 10 (buster) 10 (buster)
  CPU: (4) x64 Intel(R) Core(TM) i5-4460  CPU @ 3.20GHz
  Memory: 8.69 GB / 15.49 GB
  Shell: /bin/bash
Binaries:
  Node: 20.8.1 - /usr/local/bin/node
  Yarn: 1.22.19 - /usr/local/bin/yarn
  npm: 10.1.0 - /usr/local/bin/npm
  pnpm: undefined - undefined
NPM Packages:
  @aws-amplify/auth-construct: 1.6.0
  @aws-amplify/backend: 1.14.1
  @aws-amplify/backend-ai: Not Found
  @aws-amplify/backend-auth: 1.5.0
  @aws-amplify/backend-cli: 1.4.11
  @aws-amplify/backend-data: 1.4.0
  @aws-amplify/backend-deployer: 1.1.17
  @aws-amplify/backend-function: 1.12.2
  @aws-amplify/backend-output-schemas: 1.4.0
  @aws-amplify/backend-output-storage: 1.1.4
  @aws-amplify/backend-secret: 1.1.6
  @aws-amplify/backend-storage: 1.2.4
  @aws-amplify/cli-core: 1.2.4
  @aws-amplify/client-config: 1.5.7
  @aws-amplify/data-construct: 1.14.5
  @aws-amplify/data-schema: 1.17.4
  @aws-amplify/deployed-backend-client: 1.5.0
  @aws-amplify/form-generator: 1.0.4
  @aws-amplify/model-generator: 1.0.12
  @aws-amplify/platform-core: 1.6.3
  @aws-amplify/plugin-types: 1.8.0
  @aws-amplify/sandbox: 1.2.11
  @aws-amplify/schema-generator: 1.2.7
  aws-amplify: 6.12.2
  aws-cdk: 2.176.0
  aws-cdk-lib: 2.176.0
  typescript: 5.7.3
AWS environment variables:
  AWS_DEFAULT_REGION = us-west-2
No CDK environment variables

Data packages

+-- @aws-amplify/[email protected]
| `-- @aws-amplify/[email protected]
|   `-- @aws-amplify/[email protected]
`-- @aws-amplify/[email protected]
  `-- @aws-amplify/[email protected]
    `-- @aws-amplify/[email protected]

Description

Following the Example result in the following error

{
  data: null,
  errors: [
    {
      path: [Array],
      data: null,
      errorType: 'Code',
      errorInfo: null,
      locations: [Array],
      message: "Unsupported element '$[events][0][detail-type]' inside an event."
    }
  ]
}

tried to follow in exact but some adjustments had been made in order to pass the sandbox update check:

  1. data/resource.ts dataSource: "EventBridgeDataSource", -> dataSource: "MyEventBridgeDataSource",
  2. file name amplify/data/onOrderStatusChange.js -> amplify/data/onOrderFromEventBridge.js
  3. allow.guest() was removed from publishOrderFromEventBridge

tired to call in a lambda and client side, both result with the same error above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant