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.
After you execute the command in the output (
aws configure sso --profile cicd && aws sso login --profile cicd) you should be able to simply executenpm run cdk deploy LandingPagePipelineStack -- --profile cicdMake sure that any time you want to execute cdk with sso context, that you have active temp credentials, by executing
sso login