aws-samples / aws-samples/amazon-chime-sdk
telehealth-widget CFT fails during deploy
- Dominant language
- TypeScript
- Stars
- 116
- Forks
- 133
- PR merge metrics
- No merged PRs in 30d
Description
**Demo**
[Specify the name of the demo that you encountered the bug.]
telehealth-widget - (https://github.com/aws-samples/amazon-chime-sdk/tree/main/apps/telehealth-widget)
**Describe the bug**
A clear and concise description of what the bug is.
The CF fails at **PSTNCustomResource**6DC15E41 - CREATE_FAILED -
/aws/lambda/AmazonChimeSdkTelehealthW-PSTNCreatePstnFunction52-hBLZhQLLmw3z at Runtime.exports.handler (/var/task/index.js:70522:13) at processTicksAndRejections (internal/process/task_queues.js:95:5) (RequestId: 03f4fb37-ec8f-4032-a589-bf01ba165395)
AND
**DistributionCFDistribution**B74B3E76 CREATE_FAILED - Resource creation cancelled
CF then rollsback.
-------
0:24:04 PM | CREATE_FAILED | AWS::CloudFormation::CustomResource | PSTNCustomResource6DC15E41
Received response status [FAILED] from custom resource. Message returned: Failed to create: Failed to get the phone number because the phone number (+18553398245) order status did not change to "Successful" for more than a minute.
Logs: /aws/lambda/AmazonChimeSdkTelehealthW-PSTNCreatePstnFunction52-hBLZhQLLmw3z
at Runtime.exports.handler (/var/task/index.js:70522:13)
at processTicksAndRejections (internal/process/task_queues.js:95:5) (RequestId: 03f4fb37-ec8f-4032-a589-bf01ba165395)
❌ AmazonChimeSdkTelehealthWidgetDemo failed: Error: The stack named AmazonChimeSdkTelehealthWidgetDemo failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Received response status [FAILED] from custom resource. Message returned: Failed to create: Failed to get the phone number because the phone number (+18553398245) order status did not change to "Successful" for more than a minute.
Logs: /aws/lambda/AmazonChimeSdkTelehealthW-PSTNCreatePstnFunction52-hBLZhQLLmw3z
at Runtime.exports.handler (/var/task/index.js:70522:13)
at processTicksAndRejections (internal/process/task_queues.js:95:5) (RequestId: 03f4fb37-ec8f-4032-a589-bf01ba165395)
at prepareAndExecuteChangeSet (/home/ubuntu/environment/amazon-chime-sdk/apps/telehealth-widget/backend/node_modules/aws-cdk/lib/api/deploy-stack.ts:386:13)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at CdkToolkit.deploy (/home/ubuntu/environment/amazon-chime-sdk/apps/telehealth-widget/backend/node_modules/aws-cdk/lib/cdk-toolkit.ts:219:24)
at initCommandLine (/home/ubuntu/environment/amazon-chime-sdk/apps/telehealth-widget/backend/node_modules/aws-cdk/lib/cli.ts:347:12)
The stack named AmazonChimeSdkTelehealthWidgetDemo failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Received response status [FAILED] from custom resource. Message returned: Failed to create: Failed to get the phone number because the phone number (+18553398245) order status did not change to "Successful" for more than a minute.
Logs: /aws/lambda/AmazonChimeSdkTelehealthW-PSTNCreatePstnFunction52-hBLZhQLLmw3z
at Runtime.exports.handler (/var/task/index.js:70522:13)
at processTicksAndRejections (internal/process/task_queues.js:95:5) (RequestId: 03f4fb37-ec8f-4032-a589-bf01ba165395)
--
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...' npm run deploy
2. CREATE_FAILED
**Expected behavior**
A clear and concise description of what you expected to happen.
Demo should deploy correctly.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
**Additional context**
Add any other context about the problem here.
Contributor guide
Research direction
Start in apps/telehealth-widget and reproduce the failure with npm run deploy. Inspect the PSTNCustomResource and the /aws/lambda/AmazonChimeSdkTelehealthW-PSTNCreatePstnFunction52-hBLZhQLLmw3z logs, focusing on the one-minute phone-number order timeout. Done means the CloudFormation stack deploys without rollback and the PSTN order reaches Successful.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100