Unable to deploy pipeline to AWS CI/CD account

155 Views Asked by At

I am trying to deploy pipeline to CI/CD account. However I'm getting below error.

npm run cdk deploy LandingPagePipelineStack -- --profile cicd


> [email protected] cdk
> cdk deploy LandingPagePipelineStack --profile cicd

 Failed to get credentials for "cicd" profile. Make sure to run "aws configure sso --profile cicd && aws sso login --profile cicd"

I have also tried to logged in using below command and it was successful.

aws configure sso --profile cicd && aws sso login --profile cicd

I'm following step number 5 at AWS tutorial.

Please help me to deploy pipeline to CI/CD account.

1

There are 1 best solutions below

0
aphexlog On

After you execute the command in the output (aws configure sso --profile cicd && aws sso login --profile cicd) you should be able to simply execute npm run cdk deploy LandingPagePipelineStack -- --profile cicd

Make sure that any time you want to execute cdk with sso context, that you have active temp credentials, by executing sso login