Open Mahadeb369 opened 1 month ago
It looks like you have some configuration issue. Is the above ~/.aws/config
file content literally copy and paste or you changed the AWS account id? Because I bet your account is not 123456
:)
Try to validate the AWS config by running aws-vault exec saas -- /bin/bash
It is obvious that I will not share my actual AWS account ID here. I just edited that part.
I have checked all the credentials and everything is correct. I also validated the AWS config by running aws-vault exec saas
. Here is the output:
ubuntu@ip-172-31-41-178:~/my-space/saas-boilerplate$ aws-vault --version
v7.2.0
ubuntu@ip-172-31-41-178:~/my-space/saas-boilerplate$ aws-vault exec saas
Enter passphrase to unlock "/home/ubuntu/.awsvault/keys/":
Starting subshell /bin/bash, use `exit` to exit the subshell
ubuntu@ip-172-31-41-178:~/my-space/saas-boilerplate$
As you can see, it asks for a passphrase to execute the command. After entering the passphrase, it successfully starts a subshell. However, when I run pnpm saas infra bootstrap
, it does not prompt or provide any option for me to enter the passphrase. That is the issue.
Ok, now I know what the issue is. Looks like the NX doesn't allow for shell input... On OSX this is not an issue because there is a system prompt for a password to keychain. We need to figure it our how to fix this on linux.
Describe the bug
After completing the first step of configuration of AWS credentials and configure the hosted zone successfully, when I try to run
pnpm saas infra bootstrap
, it always throws me the error which I mentioned in the logs section. It's not only happening with this command, it also happening, when I try to runpnpm saas aws login
.Steps to reproduce
pnpm saas infra bootstrap
orpnpm saas aws login
.System Info
Logs
Click to expand!
In the error you can see, it always asking to enter the passphrase to execute the aws-vault command successfully. But after running the "pnpm saas ..." commends there is no scope to enter the passphrase explicitly or implicitly. **My aws-vault setup (~/.aws/config):** ```shell [profile my-profile] region=eu-west-1 [profile saas] source_profile = my-profile role_arn = arn:aws:iam::123456:role/ProdAdminRole region=eu-west-1 ```Validations