Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 975
smart Avatar asked Dec 11 '22 11:12

smart


2 Answers

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

like image 118
Praveen Govind Avatar answered Dec 28 '22 08:12

Praveen Govind


Yeah, as @smart said, the "bucket-name" should be replace for different name in different region, like aws-codedeploy-us-east-2 for instances in the US East (Ohio) region etc..

like image 39
binbinlu Avatar answered Dec 28 '22 06:12

binbinlu