简体   繁体   English

AWS code deploy 部署失败,显示 github

[英]AWS code deploy deployment failed with github

I have created a pipeline for code deployment with github, but it is failing at DownloadBundle with Access Denied error.我已经使用 github 创建了代码部署管道,但它在DownloadBundle失败并出现访问被拒绝错误。

I have created a role with AmazonEC2FullAccess and AWSCodeDeployRole to the deployment iam and also crated role for ec2 AmazonEC2FullAccess I have attached couple of screenshot for setting of code deployment group also I have placed appspec.yml in the root directory of my repo.我已经使用AmazonEC2FullAccessAWSCodeDeployRole为部署 iam 创建了一个角色,还为 ec2 AmazonEC2FullAccess创建了一个角色 我附上了几个用于设置代码部署组的屏幕截图,我还将 appspec.yml 放在了我的 repo 的根目录中。

version: 0.0
os: linux
files:
  - source: /
    destination: /var/www/html/
    overwrite: true
file_exists_behavior: OVERWRITE
hooks:
  BeforeInstall:
    - location: scripts/install_dependencies.sh
      timeout: 300
      runas: root
  ApplicationStart:
    - location: scripts/start_server.sh
      timeout: 300
      runas: root

在此处输入图像描述 在此处输入图像描述

Note: I am using Auto scaling注意:我正在使用自动缩放

For this purpose your EC2 instance has to access S3 as well, check if your EC2 instance has permission to access the related S3 Bucket.为此,您的 EC2 实例也必须访问 S3,请检查您的 EC2 实例是否有权访问相关的 S3 Bucket。 Also if you are using KMS for encryption of your bucket, your EC2 instance has to have KMS permissions as well.此外,如果您使用 KMS 对存储桶进行加密,则您的 EC2 实例也必须具有 KMS 权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM