如何在 Bitbucket Pipeline 中将 OIDC 与 AWS Amplify 结合使用?

问题描述 投票:0回答:1

我想首先在我的 React 应用程序上运行测试,成功后,我想创建一个在管道中手动部署的 Amplify 应用程序。

我当前的管道出现故障,如下所示:

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

我收到的错误: 🛑 awscloudformation 配置的命令行参数错误。 项目级别配置将 useProfile 设置为 false,但缺少访问密钥或区域。

continuous-integration openid-connect continuous-deployment bitbucket-pipelines aws-amplify-cli
1个回答
0
投票

OIDC 不可用,因此您必须传递访问密钥。

© www.soinside.com 2019 - 2024. All rights reserved.