简体   繁体   中英

AWS: Code deploy installation failed

I'm trying to setup deployment from github repository via AWS.

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:

aws-codedeploy-us-east-2 for instances in the US East (Ohio) region

aws-codedeploy-us-east-1 for instances in the US East (N. Virginia) region

aws-codedeploy-us-west-1 for instances in the US West (N. California) region

aws-codedeploy-us-west-2 for instances in the US West (Oregon) region

aws-codedeploy-ca-central-1 for instances in the Canada (Central) region

aws-codedeploy-eu-west-1 for instances in the EU (Ireland) region

aws-codedeploy-eu-west-2 for instances in the EU (London) region

aws-codedeploy-eu-central-1 for instances in the EU (Frankfurt) region

aws-codedeploy-ap-northeast-1 for instances in the Asia Pacific (Tokyo) region

aws-codedeploy-ap-northeast-2 for instances in the Asia Pacific (Seoul) region

aws-codedeploy-ap-southeast-1 for instances in the Asia Pacific (Singapore) region

aws-codedeploy-ap-southeast-2 for instances in the Asia Pacific (Sydney) region

aws-codedeploy-ap-south-1 for instances in the Asia Pacific (Mumbai) region

aws-codedeploy-sa-east-1 for instances in the South America (São Paulo) region

是的,正如@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

to recognize bucket-name you have to refer to Resource Kit Bucket Names by Region .

wget bucket-name .s3. region-identifier .amazonaws.com/latest/install

bucket-name is the name of the Amazon S3 bucket that contains the CodeDeploy Resource Kit files for your region. region-identifier is the identifier for your region. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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