bitbucket pipeline にてaws s3へファイルをアップロードしたいのですが、
うまくいきません。
出来ていること
-
s3の設置 http:test.hogehoge.com/ にてアクセスできています。
-
アクセスキーを、リポジトリの設定→Repository variablesに設定する
AWS_ACCESS_KEY_ID アクセスキーID
AWS_DEFAULT_REGION デフォルトリージョン
AWS_SECRET_ACCESS_KEY 対応するキー
- リポジトリの設定からEnable Pipelinesをonにして、bitbucket-pipelines.ymlを設置
(おそらく、ここでミスっています。)
#エラー
pipeline画面にて
+ aws s3 sync --delete . s3://bitbucket fatal error: An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied
s3://bitbucket
ここがちょっとなにをいれていいのかわからず、
awsにて作成したユーザー名を入れたのですがあってますでしょうか?
その他おかしい部分などあればご教授いただければ幸いです。
アップしたbitbucket-pipelines.yml
# This is a sample build configuration for JavaScript. # Check our guides at https://confluence.atlassian.com/x/14UWN for more examples. # Only use spaces to indent your .yml configuration. # ----- # You can specify a custom docker image from Docker Hub as your build environment. image: node:6.9.4 pipelines: default: - step: # set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY as environment variables name: Deploy to S3 deployment: test # set to test, staging or production # trigger: manual # uncomment to have a manual step image: atlassian/pipelines-awscli script: - aws s3 sync --delete . s3://bitbucket
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/02/07 02:08