CPAN-Testers-Metabase-AWS

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

       ---
       Model::Metabase:
         class: CPAN::Testers::Metabase::AWS
           args:
             bucket: myS3bucket
             namespace: prod

DESCRIPTION
    This class instantiates a Metabase backend on the S3 and SimpleDB Amazon
    Web Services (AWS). It uses Net::Amazon::Config to provide user
    credentials and the Metabase::Gateway Role to provide actual
    functionality. As such, it is mostly glue to get the right credentials
    to setup AWS clients and provide them with standard resource names.

    For example, given the "bucket" "example" and the "namespace" "alpha",
    the following resource names would be used:

       Public S3: http://example.s3.amazonaws.com/metabase/alpha/public/*
       Public SDB domain: example.metabase.alpha.public
 
       Private S3: http://example.s3.amazonaws.com/metabase/alpha/private/*
       Private SDB domain: example.metabase.alpha.private

README  view on Meta::CPAN

        public and private fact content. Bucket names must be unique across
        all of AWS. The bucket name is also used as part of the SimpleDB
        namespace for consistency.

    *   "namespace" -- required -- a short phrase that uniquely identifies
        this metabase. E.g. "dev", "test" or "prod". It is used to specify
        specific locations within the S3 bucket and to uniquely identify a
        SimpleDB domain for indexing.

    *   "amazon_config" -- optional -- a Net::Amazon::Config object
        containing Amazon Web Service credentials. If not provided, one will
        be created using the default location for the config file.

    *   "profile_name" -- optional -- the name of a profile for use with
        Net::Amazon::Config. If not provided, it defaults to 'cpantesters'.

  access_key_id
    Returns the AWS Access Key ID.

  secret_access_key
    Returns the AWS Secret Access Key

lib/CPAN/Testers/Metabase/AWS.pm  view on Meta::CPAN

   ---
   Model::Metabase:
     class: CPAN::Testers::Metabase::AWS
       args:
         bucket: myS3bucket
         namespace: prod

=head1 DESCRIPTION

This class instantiates a Metabase backend on the S3 and SimpleDB Amazon 
Web Services (AWS).  It uses L<Net::Amazon::Config> to provide user credentials
and the L<Metabase::Gateway> Role to provide actual functionality.  As such,
it is mostly glue to get the right credentials to setup AWS clients and provide
them with standard resource names.

For example, given the C<<< bucket >>> "example" and the C<<< namespace >>> "alpha",
the following resource names would be used:

   Public S3: http://example.s3.amazonaws.com/metabase/alpha/public/*
   Public SDB domain: example.metabase.alpha.public
 
   Private S3: http://example.s3.amazonaws.com/metabase/alpha/private/*
   Private SDB domain: example.metabase.alpha.private

lib/CPAN/Testers/Metabase/AWS.pm  view on Meta::CPAN

=item *

C<<< namespace >>> -- required -- a short phrase that uniquely identifies this
metabase.  E.g. "dev", "test" or "prod".  It is used to specify
specific locations within the S3 bucket and to uniquely identify a SimpleDB 
domain for indexing.

=item *

C<<< amazon_config >>> -- optional -- a L<Net::Amazon::Config> object containing
Amazon Web Service credentials.  If not provided, one will be created using
the default location for the config file.

=item *

C<<< profile_name >>> -- optional -- the name of a profile for use with 
Net::Amazon::Config.  If not provided, it defaults to 'cpantesters'.

=back

=head2 access_key_id



( run in 0.237 second using v1.01-cache-2.11-cpan-a5abf4f5562 )