Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

How to use OIDC with AWS Amplify in Bitbucket Pipeline?

Writer Andrew Henderson

I'd like to run tests on my React app first and after they were successful, I'd like to create an Amplify app that gets manually deployed within the pipe.

My current pipeline is failing and looks like this:

pipelines: default: - step: name: Build and Deploy image: node:18 oidc: true caches: - node script: - export AWS_ROLE_ARN=arn:aws:iam::816202482289:role/BitbucketPipelines - export AWS_WEB_IDENTITY_TOKEN_FILE=$(pwd)/web-identity-token - echo $BITBUCKET_STEP_OIDC_TOKEN > $(pwd)/web-identity-token - npm install - npm install -g @aws-amplify/cli - npm run build - node setup_amplify_script.js

The error I receive: 🛑 Error in the command line parameter for awscloudformation configuration. project level config set useProfile to false, but access key or region is missing.

1 Answer

OIDC is not available, so you have to pass the access keys.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.