“NPM AWS-SDK” Réponses codées

NPM AWS-SDK

npm i aws-sdk
GutoTrosla

Node SDK AWS JavaScript

// 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

Réponses similaires à “NPM AWS-SDK”

Questions similaires à “NPM AWS-SDK”

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code