755
edits
DaveLawrence (talk | contribs) |
DaveLawrence (talk | contribs) |
||
| Line 214: | Line 214: | ||
==== Post the Files ==== | ==== Post the Files ==== | ||
Mozilla recently migrated specific files on ftp.mozilla.org to be served from Amazon S3 buckets. In order to upload the tar files and diffs to S3, you will need to have access keys assigned to your account. dkl and justdave currently have access keys so either of them can upload the files. | |||
You will need to download and install the aws-cli client from github. | |||
http://docs.aws.amazon.com/cli/latest/userguide/installing.html#install-bundle-other-os | |||
Create an .aws directory in your user's home directly. | |||
Generate an .aws/credentials file containing your access keys assigned to you. | |||
[default] | |||
aws_access_key_id=<ACCESS_KEY> | |||
aws_secret_access_key=<SECRET_ACCESS_KEY> | |||
Generate an .aws/config file that specifies the region desired. | |||
[default] | |||
region=us-east-1 | |||
output=json | |||
To copy a file to S3 available for download. Need to do for each file: | |||
$ aws s3 cp <local_file> s3://net-mozaws-prod-delivery-contrib/pub/webtools/ | |||
The file can then be accessed by the general public at the same URL as before (over https only): | |||
https://ftp.mozilla.org/pub/mozilla.org/webtools/<file> | |||
To remove a file from S3: | |||
$ aws s3 rm s3://net-mozaws-prod-delivery-contrib/pub/webtools/<remote_file> | |||
To copy a file on S3 to another name. This needs to be done to mimic the old symlinks for bugzilla-STABLE.tar.gz and bugzilla-LATEST.tar.gz: | |||
$ aws s3 cp s3://net-mozaws-prod-delivery-contrib/pub/webtools/<src_file> s3://net-mozaws-prod-delivery-contrib/pub/webtools/<dest_file> | |||
=== Check-In the Website Updates === | === Check-In the Website Updates === | ||
edits