“AWS-SDK NPM” Kode Jawaban

AWS-SDK NPM

npm i aws-sdk
GutoTrosla

AWS JavaScript SDK Node

// install aws js sdk
npm install aws-sdk
abessrour

AWS SDK NPM

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "s3:Put*",
                "s3:Get*",
                "s3:List*",
                "s3:Delete*"
            ],
            "Resource": [
                "arn:aws:s3:::bucket/*",
                "arn:aws:s3:::bucket"
            ]
        },
        {
            "Sid": "VisualEditor1",
            "Effect": "Allow",
            "Action": "s3:ListAllMyBuckets",
            "Resource": "*"
        }
    ]
}
Restu Wahyu Saputra

AWS SDK NPM

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::<IAM-user-ID>:user/testuser"
            },
            "Action": [
                "s3:ListBucket",
                "s3:ListBucketVersions",
                "s3:GetBucketLocation",
                "s3:Get*",
                "s3:Put*"
            ],
            "Resource": "arn:aws:s3:::srcbucket"
        }
    ]
}
Restu Wahyu Saputra

Jawaban yang mirip dengan “AWS-SDK NPM”

Pertanyaan yang mirip dengan “AWS-SDK NPM”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya