AWS:代码部署安装失败
AWS: Code deploy installation failed
我正在尝试通过 AWS 从 github 存储库设置部署。
我在这些步骤中遇到问题:
http://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent-operations-install.html#codedeploy-agent-operations-install-linux
此命令失败:
wget https://bucket-name.s3.amazonaws.com/latest/install
它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.
我已经为我的实例允许 inbound/outbound 流量的所有端口。
怎么了?
是的,正如@smart 所说,"bucket-name" 应该替换为不同地区的不同名称,例如美国东部(俄亥俄州)地区等的 aws-codedeploy-us-east-2。 .
bucket-name 代表以下之一:
aws-codedeploy-us-east-2 适用于美国东部(俄亥俄)区域的实例
aws-codedeploy-us-east-1 适用于美国东部(弗吉尼亚北部)地区的实例
aws-codedeploy-us-west-1 适用于美国西部(加利福尼亚北部)区域的实例
aws-codedeploy-us-west-2 适用于美国西部(俄勒冈)区域的实例
aws-codedeploy-ca-central-1 用于加拿大(中部)区域的实例
aws-codedeploy-eu-west-1 用于欧盟(爱尔兰)地区的实例
aws-codedeploy-eu-west-2 用于欧盟(伦敦)区域的实例
aws-codedeploy-eu-central-1 用于欧盟(法兰克福)地区的实例
aws-codedeploy-ap-northeast-1 适用于亚太地区(东京)地区的实例
aws-codedeploy-ap-northeast-2 适用于亚太地区(首尔)区域的实例
aws-codedeploy-ap-southeast-1 适用于亚太地区(新加坡)区域的实例
aws-codedeploy-ap-southeast-2 适用于亚太地区(悉尼)区域的实例
aws-codedeploy-ap-south-1 适用于亚太地区(孟买)区域的实例
aws-codedeploy-sa-east-1 用于南美洲(圣保罗)区域的实例
请检查link:https://docs.aws.amazon.com/codedeploy/latest/userguide/resource-kit.html#resource-kit-bucket-names
要识别 bucket-name,您必须参考 Resource Kit Bucket Names by Region。
我正在尝试通过 AWS 从 github 存储库设置部署。
我在这些步骤中遇到问题:
http://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent-operations-install.html#codedeploy-agent-operations-install-linux
此命令失败:
wget https://bucket-name.s3.amazonaws.com/latest/install
它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.
我已经为我的实例允许 inbound/outbound 流量的所有端口。
怎么了?
是的,正如@smart 所说,"bucket-name" 应该替换为不同地区的不同名称,例如美国东部(俄亥俄州)地区等的 aws-codedeploy-us-east-2。 .
bucket-name 代表以下之一:
aws-codedeploy-us-east-2 适用于美国东部(俄亥俄)区域的实例
aws-codedeploy-us-east-1 适用于美国东部(弗吉尼亚北部)地区的实例
aws-codedeploy-us-west-1 适用于美国西部(加利福尼亚北部)区域的实例
aws-codedeploy-us-west-2 适用于美国西部(俄勒冈)区域的实例
aws-codedeploy-ca-central-1 用于加拿大(中部)区域的实例
aws-codedeploy-eu-west-1 用于欧盟(爱尔兰)地区的实例
aws-codedeploy-eu-west-2 用于欧盟(伦敦)区域的实例
aws-codedeploy-eu-central-1 用于欧盟(法兰克福)地区的实例
aws-codedeploy-ap-northeast-1 适用于亚太地区(东京)地区的实例
aws-codedeploy-ap-northeast-2 适用于亚太地区(首尔)区域的实例
aws-codedeploy-ap-southeast-1 适用于亚太地区(新加坡)区域的实例
aws-codedeploy-ap-southeast-2 适用于亚太地区(悉尼)区域的实例
aws-codedeploy-ap-south-1 适用于亚太地区(孟买)区域的实例
aws-codedeploy-sa-east-1 用于南美洲(圣保罗)区域的实例
请检查link:https://docs.aws.amazon.com/codedeploy/latest/userguide/resource-kit.html#resource-kit-bucket-names
要识别 bucket-name,您必须参考 Resource Kit Bucket Names by Region。