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

'pnpm run galileo-cli deploy --dryRun' issue with SSO #122

Closed
alexeyshishkin01 opened this issue Apr 23, 2024 · 0 comments
Closed

'pnpm run galileo-cli deploy --dryRun' issue with SSO #122

alexeyshishkin01 opened this issue Apr 23, 2024 · 0 comments
Labels
bug Something isn't working needs triage Need to triage and verify

Comments

@alexeyshishkin01
Copy link

Describe the bug

this is the output of the command 'pnpm run galileo-cli deploy --dryRun':

[DRYRUN] docker info
✔ Config file name? … config.json
✔ Application Name (stack/resource naming) … Galileo
✔ AWS Profile … default
✔ AWS Region (app) … us-east-1
CredentialsProviderError: Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got sso_session,
sso_account_id, sso_role_name, region, output
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html
 ELIFECYCLE  Command failed with exit code 1.

this is the content of my ~/.aws/config file:

[default]
sso_session = cloud9-sso
sso_account_id = XXX
sso_role_name = YYY
region = us-east-1
output = json
[sso-session cloud9-sso]
sso_start_url = https://ZZZ/start
sso_region = eu-central-1
sso_registration_scopes = sso:account:access

My SSO config works well for other application, so I do believe something is wrong with Galileo, could you pls. have a look ?

Expected Behavior

'pnpm run galileo-cli deploy --dryRun' should work without any issue with SSO

Current Behavior

this is the output of the command 'pnpm run galileo-cli deploy --dryRun':

[DRYRUN] docker info
✔ Config file name? … config.json
✔ Application Name (stack/resource naming) … Galileo
✔ AWS Profile … default
✔ AWS Region (app) … us-east-1
CredentialsProviderError: Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got sso_session,
sso_account_id, sso_role_name, region, output
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html
 ELIFECYCLE  Command failed with exit code 1.

this is the content of my ~/.aws/config file:

[default]
sso_session = cloud9-sso
sso_account_id = XXX
sso_role_name = YYY
region = us-east-1
output = json
[sso-session cloud9-sso]
sso_start_url = https://ZZZ/start
sso_region = eu-central-1
sso_registration_scopes = sso:account:access

My SSO config works well for other application, so I do believe something is wrong with Galileo, could you pls. have a look ?

Reproduction Steps

configure SSO and try to run 'pnpm run galileo-cli deploy --dryRun'

Possible Solution

No response

Additional Information/Context

No response

Environment details (OS name and version, etc.)

pnpm run prerequisite-check > monorepo@0.0.0 prerequisite-check /home/ubuntu/environment/aws-genai-conversational-rag-reference > ./prerequisite-check.sh Galileo Prerequisite Check... system: Linux 6.5.0-1017-aws #17~22.04.2-Ubuntu SMP Mon Mar 25 20:28:54 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux pnpm: 9.0.5 node: v20.12.2 python: Python 3.11.0rc1 poetry: Poetry (version 1.8.2) docker: Docker version 26.0.1, build d260a54 java: openjdk 18.0.2 2022-07-19 OpenJDK Runtime Environment Corretto-18.0.2.9.1 (build 18.0.2+9-FR) OpenJDK 64-Bit Server VM Corretto-18.0.2.9.1 (build 18.0.2+9-FR, mixed mode, sharing) aws: aws-cli/2.15.38 Python/3.11.8 Linux/6.5.0-1017-aws exe/x86_64.ubuntu.22 prompt/off

@alexeyshishkin01 alexeyshishkin01 added the bug Something isn't working label Apr 23, 2024
@sperka sperka added the needs triage Need to triage and verify label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage Need to triage and verify
Projects
None yet
Development

No branches or pull requests

2 participants