aws-samples / amazon-q-slack-gateway

MIT No Attribution
81 stars 30 forks source link

Regexes don't work #53

Open andrewjohnsonstorable opened 3 months ago

andrewjohnsonstorable commented 3 months ago

Important: Bug reports submitted here should relate specifically to the open source sample amazon-q-slack-gateway project. Do not submit bugs related to the Amazon Q service itself.
If your issue relates to Amazon Q setup, user provisioning, document ingestion, accuracy, or other aspects of the service, then first check the Amazon Q documentation, and then reproduce the problem using the Amazon Q console web experience before engaging AWS support directly. Thank you.

Describe the bug Many of the regexes in the ./bin/environment.sh script called by init.sh don't work on mac via command line terminals

To Reproduce Steps to reproduce the behavior:

  1. Follow the README_DEVELOPERS.md document to "Deploy the solution" -> Step 2
  2. Attempt to do step 2's "Navigate into the project root directory and, in a bash shell, run: ./init.sh"
  3. Add the stack name and app id when it eventually asks
  4. Attempt to type in "us-east-1" or any other aws region as the region. It doesn't accept it as input. Several other later fields also had the same issue with their regex, but that one is the most glaring.

Expected behavior I expect it to accept us-east-1 as. a valid region input

Screenshots If applicable, add screenshots to help explain your problem.

Additional context It gave the same error for every other aws region we tried, and for junk input. We copied the regex filter into online evaluators which said us-east-1 and others should be valid input. Yet, we can't enter it when running the shell script via linux terminal or bash