my $bucket = 'gallery.kapiti.geek.nz'; my $queue_url = 'https://queue.amazonaws.com/images'; my $s3 = Amazon::AwsSum::S3->new(); my $sqs = Amazon::AwsSum::SQS->new(); foreach ( $s3, $sqs ) { $_->access_key_id( $cfg->{AwsAccessKeyId} ); $_->secret_access_key( $cfg->{AwsSecretAccessKey} ); }