NAME

orepan2-s3

DESCRIPTION

This script is used to add distributions to your own DarkPAN repository housed on Amazon's S3 storage. It leverages OrePAN2 to create and maintain your own DarkPAN repository. You can read more about setting up a DarkPAN on Amazon using S3 + Cloudfront here.

USAGE

orepan2-s3 Options Command

Script for maintaining a DarkPAN mirror using S3 + CloudFront

Commmands

Options

-h, --help           Display this help message
-c, --config-file    Name of the configuration file (default: ~/.orepan2-s3.json)
-o, --output         Name of the output file
-p, --profile        Name of a profile inside the config file
-t, --template       Name of a template that will be used as the index.html page
-d, --distribution   Path to distribution tarball
-u, --upload         Upload files after processing (for create-index, create-docs)
-U, --url            Cloudfront URL

Configuration File

The configuration file for orepan2-s3 is a JSON file that can contain multiple profiles (or none). The format should look something like this:

{
    "tbc" : {
        "AWS": {
            "profile" : "prod",
            "region" : "us-east-1",
            "bucket" : "tbc-cpan-mirror",
            "prefix" : "orepan2"
        },
        "CloudFront" : {
            "DistributionId" : "E2ABCDEFGHIJK"
        }
    },
    "default" : {
        "index" : {
            "template" : "/path/to/template",
            "files": {
               "src" : "dest"
            }
        },
        "AWS": {
            "profile" : "prod",
            "region" : "us-east-1",
            "bucket" : "cpan.openbedrock.net",
            "prefix" : "orepan2"
        },
        "CloudFront" : {
            "DistributionId" : "E2JKLMNOPQRXYZ",
            "InvalidationPaths" : [],
            "url" : "https://cpan.openbedrock.net/orepan2"
        }
    }
}

Each profile can contain up to 3 sections (AWS, CloudFront, index). If you only have one profile you don't need place it in a 'default' section.

AUTHOR

Rob Lauer - rlauer6@comcast.net

SEE ALSO

OrePAN2, Amazon::S3

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.