abstractfsexterno
v0.0.4
Published
Variações de filesystem nodeJS (S3,local)
Downloads
5
Readme
abstractfsexterno
Variações de filesystem nodeJS (S3,local)
Como Utilizar
Você deve ter seu Bucket no S3, e deve configurar o bucket policy como no exemplo a seguir :
Observação
as informações do policy serão as suas, você pode configurar via : http://awspolicygen.s3.amazonaws.com/policygen.html
{
"Version": "2012-10-17",
"Id": "Policy1510955",
"Statement": [
{
"Sid": "Stmt15104814",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::847:root"
},
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::testearquivos"
},
{
"Sid": "Stmt15415469",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::8905:root"
},
"Action": "s3:*",
"Resource": "arn:aws:s3:::testearquivos/*"
}
]
}
config.json exemplo
{
"servidor" :"LOCAL",
"credentials": {
"accessKeyId": "you_id_key",
"secretAccessKey": "your_secret_access_key"
},
"bucketPath": "your_bucket",
"region": "your_region",
"endpoint": "your_end_point"
}