简体   繁体   English

AWS:代码部署安装失败

[英]AWS: Code deploy installation failed

I'm trying to setup deployment from github repository via AWS.我正在尝试通过 AWS 从 github 存储库设置部署。

I have an issue during these steps:我在这些步骤中遇到问题:

http://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent-operations-install.html#codedeploy-agent-operations-install-linux

This command fails:此命令失败:

wget https://bucket-name.s3.amazonaws.com/latest/install

It returns:它返回:

[ec2-user@ip-172-31-11-55 ~]$ wget https://bucket-name.s3.amazonaws.com/latest/install
--2017-06-04 10:18:18--  https://bucket-name.s3.amazonaws.com/latest/install
Resolving bucket-name.s3.amazonaws.com (bucket-name.s3.amazonaws.com)... 54.231.114.146
Connecting to bucket-name.s3.amazonaws.com (bucket-name.s3.amazonaws.com)|54.231.114.146|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2017-06-04 10:18:18 ERROR 403: Forbidden.

I've allowed all the ports for inbound/outbound traffic for my instance.我已经允许所有端口用于我的实例的入站/出站流量。

What is wrong?怎么了?

bucket-name represents one of the following: bucket-name 表示以下之一:

aws-codedeploy-us-east-2 for instances in the US East (Ohio) region aws-codedeploy-us-east-2 用于美国东部(俄亥俄)地区的实例

aws-codedeploy-us-east-1 for instances in the US East (N. Virginia) region aws-codedeploy-us-east-1 适用于美国东部(弗吉尼亚北部)区域的实例

aws-codedeploy-us-west-1 for instances in the US West (N. California) region aws-codedeploy-us-west-1 用于美国西部(加利福尼亚北部)区域的实例

aws-codedeploy-us-west-2 for instances in the US West (Oregon) region aws-codedeploy-us-west-2 用于美国西部(俄勒冈)地区的实例

aws-codedeploy-ca-central-1 for instances in the Canada (Central) region aws-codedeploy-ca-central-1 用于加拿大(中部)区域的实例

aws-codedeploy-eu-west-1 for instances in the EU (Ireland) region aws-codedeploy-eu-west-1 适用于欧盟(爱尔兰)地区的实例

aws-codedeploy-eu-west-2 for instances in the EU (London) region aws-codedeploy-eu-west-2 适用于欧盟(伦敦)地区的实例

aws-codedeploy-eu-central-1 for instances in the EU (Frankfurt) region aws-codedeploy-eu-central-1 用于欧盟(法兰克福)地区的实例

aws-codedeploy-ap-northeast-1 for instances in the Asia Pacific (Tokyo) region aws-codedeploy-ap-northeast-1 适用于亚太地区(东京)区域的实例

aws-codedeploy-ap-northeast-2 for instances in the Asia Pacific (Seoul) region aws-codedeploy-ap-northeast-2 适用于亚太地区(首尔)区域的实例

aws-codedeploy-ap-southeast-1 for instances in the Asia Pacific (Singapore) region aws-codedeploy-ap-southeast-1 适用于亚太地区(新加坡)区域的实例

aws-codedeploy-ap-southeast-2 for instances in the Asia Pacific (Sydney) region aws-codedeploy-ap-southeast-2 适用于亚太地区(悉尼)区域的实例

aws-codedeploy-ap-south-1 for instances in the Asia Pacific (Mumbai) region aws-codedeploy-ap-south-1 适用于亚太地区(孟买)区域的实例

aws-codedeploy-sa-east-1 for instances in the South America (São Paulo) region aws-codedeploy-sa-east-1 用于南美洲(圣保罗)区域的实例

是的,正如@smart 所说,“bucket-name”应该替换为不同地区的不同名称,例如美国东部(俄亥俄州)地区的 aws-codedeploy-us-east-2 等。

Please check the link: https://docs.aws.amazon.com/codedeploy/latest/userguide/resource-kit.html#resource-kit-bucket-names请检查链接: https : //docs.aws.amazon.com/codedeploy/latest/userguide/resource-kit.html#resource-kit-bucket-names

to recognize bucket-name you have to refer to Resource Kit Bucket Names by Region .要识别bucket-name,您必须参考Resource Kit Bucket Names by Region

wget bucket-name .s3. wget存储桶名称.s3。 region-identifier .amazonaws.com/latest/install区域标识符.amazonaws.com/latest/install

bucket-name is the name of the Amazon S3 bucket that contains the CodeDeploy Resource Kit files for your region. bucket-name是包含您所在区域的 CodeDeploy 资源工具包文件的 Amazon S3 存储桶的名称。 region-identifier is the identifier for your region. region-identifier是您所在地区的标识符。 List of bucket names: Resource kit bucket names by Region存储桶名称列表: 按地区划分的资源工具包存储桶名称

example:例子:

wget https://aws-codedeploy-us-east-1.s3.us-east-1.amazonaws.com/latest/install

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

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