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

aws_appintegrations: Can not create #29817

Closed
cjhelloletsgo opened this issue Apr 12, 2024 · 3 comments
Closed

aws_appintegrations: Can not create #29817

cjhelloletsgo opened this issue Apr 12, 2024 · 3 comments
Labels
@aws-cdk/aws-appintegrations bug This issue is a bug. effort/small Small work item – less than a day of effort p2

Comments

@cjhelloletsgo
Copy link

cjhelloletsgo commented Apr 12, 2024

Describe the bug

App integrations does not allow creating an event integration with source aws.cases

cfn_event_integration = appintegrations.CfnEventIntegration(
      self,
      "Connect Case Streams Event Integration",
      event_bridge_bus="default",
      event_filter=appintegrations.CfnEventIntegration.EventFilterProperty(
          source="aws.cases"
      ),
      name="amazon-connect-cases",
      description="Amazon Connect app integration for enabling case event streams",
  )

Expected Behavior

Create an event integration

Current Behavior

Event integration fails to create

Reproduction Steps

deploy with code snippet and you will get this error:

12:38:20 PM | CREATE_FAILED | AWS::AppIntegrations::EventIntegration | ConnectCaseStreamsEventIntegration
Properties validation failed for resource ConnectCaseStreamsEventIntegration with message:
[#/EventFilter/Source: string [aws.cases] does not match pattern ^aws.partner/.*$]

❌ CustomerProfilePortalStack failed: Error: The stack named CustomerProfilePortalStack failed to deploy: UPDATE_ROLLBACK_COMPLETE: Properties validation failed for resource ConnectCaseStreamsEventIntegration with message:
[#/EventFilter/Source: string [aws.cases] does not match pattern ^aws.partner/.*$]
at FullCloudFormationDeployment.monitorDeployment (/home/colton/.nvm/versions/node/v20.12.2/lib/node_modules/aws-cdk/lib/index.js:433:10615)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.deployStack2 [as deployStack] (/home/colton/.nvm/versions/node/v20.12.2/lib/node_modules/aws-cdk/lib/index.js:436:200503)
at async /home/colton/.nvm/versions/node/v20.12.2/lib/node_modules/aws-cdk/lib/index.js:436:181341

❌ Deployment failed: Error: The stack named CustomerProfilePortalStack failed to deploy: UPDATE_ROLLBACK_COMPLETE: Properties validation failed for resource ConnectCaseStreamsEventIntegration with message:
[#/EventFilter/Source: string [aws.cases] does not match pattern ^aws.partner/.*$]
at FullCloudFormationDeployment.monitorDeployment (/home/colton/.nvm/versions/node/v20.12.2/lib/node_modules/aws-cdk/lib/index.js:433:10615)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.deployStack2 [as deployStack] (/home/colton/.nvm/versions/node/v20.12.2/lib/node_modules/aws-cdk/lib/index.js:436:200503)
at async /home/colton/.nvm/versions/node/v20.12.2/lib/node_modules/aws-cdk/lib/index.js:436:181341

The stack named CustomerProfilePortalStack failed to deploy: UPDATE_ROLLBACK_COMPLETE: Properties validation failed for resource ConnectCaseStreamsEventIntegration with message:
[#/EventFilter/Source: string [aws.cases] does not match pattern ^aws.partner/.*$]

Possible Solution

From the error message it looks like the regex needs to be adjusted to match available options, I know this is a valid configuration as I have successfully deployed this through a custom resource.

Additional Information/Context

No response

CDK CLI Version

2.137.0 (build bb90b4c)

Framework Version

No response

Node.js Version

v18.13.0

OS

Ubuntu 23.10

Language

Python

Language Version

Python 3.11

Other information

No response

@cjhelloletsgo cjhelloletsgo added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Apr 12, 2024
@pahud pahud changed the title aws_cdk import aws_appintegrations: Can not create aws_appintegrations: Can not create Apr 15, 2024
@pahud pahud added p2 and removed needs-triage This issue or PR still needs to be triaged. labels Apr 15, 2024
@pahud
Copy link
Contributor

pahud commented Apr 15, 2024

Based on the error messages and the document, I believe the source "aws.cases" is not allowed. It should be like "aws.partner/xxxx" or anything in this pattern. Please not this is not relevant to CDK bug and the error is from cloudformation. I am resolving this issue as it's not related to a CDK bug.

@pahud pahud closed this as completed Apr 15, 2024
@pahud pahud added the effort/small Small work item – less than a day of effort label Apr 15, 2024
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@aws-cdk-automation
Copy link
Collaborator

Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.

@aws aws locked as resolved and limited conversation to collaborators Jul 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
@aws-cdk/aws-appintegrations bug This issue is a bug. effort/small Small work item – less than a day of effort p2
Projects
None yet
Development

No branches or pull requests

3 participants