Reputation: 2065
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?
Upvotes: 6
Views: 3548
Reputation: 1
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
Upvotes: 0
Reputation: 11
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.
Upvotes: 1
Reputation: 5627
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
Upvotes: 17
Reputation: 426
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..
Upvotes: 3