Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

target_s3bucket

Marcel Kloubert edited this page Dec 9, 2018 · 8 revisions

Home >> Targets >> s3bucket

Amazon AWS S3 buckets

Deploys to an Amazon AWS S3 bucket.

HINT: By default, before you can use it, you have to create a credentials file in your user folder of your operating system with the access keys. Read Configuring the Access Keys to learn more.

But you also have the chance to define a custom credential provider.

{
    "deploy.reloaded": {
        "targets": [
            {
                "type": "s3bucket",
                "name": "My S3 bucket",

                "bucket": "my-bucket"
            }
        ]
    }
}
Name Description
acl* The ACL for the files in bucket, s. Access Control List (ACL) Overview. Default: public-read.
bucket* The name of the bucket to deploy to. Default: vscode-deploy-reloaded
credentials The credentials to use.
customOpts An object with custom options.
dir* The directory inside the bucket where to deploy to. Default: /

* supports placeholders

acl

You have the following options to define the ACL for files of a bucket:

All files

  "acl": "private"

For specific files

  "acl": {
    "public-read": [ "public/**/*" ],

    "private": {
      "files": "private/**/*",
      "exclude": "private/public/**/*"
    }
  }

credentials

Name Description
config The configuration data for the credential provider (class constructor).
type The credential provider to use. Default: shared

type

The following providers are supported:

Name Description Class in AWS SDK
cognito Represents credentials retrieved from STS Web Identity Federation using the Amazon Cognito Identity service. CognitoIdentityCredentials
ec2 Represents credentials received from relative URI specified in the ECS container. ECSCredentials
ec2meta Represents credentials received from the metadata service on an EC2 instance. EC2MetadataCredentials
environment* Represents credentials from the environment. EnvironmentCredentials
file* Represents credentials from a JSON file on disk. Relative paths will be mapped to your home directory (.vscode-deploy-reloaded or .aws sub folder) or the .vscode folder. FileSystemCredentials
saml Represents credentials retrieved from STS SAML support. SAMLCredentials
shared* Represents credentials loaded from shared credentials file. Relative paths will be mapped to your home directory (.vscode-deploy-reloaded or .aws sub folder) or the .vscode folder. SharedIniFileCredentials
temp Represents temporary credentials retrieved from 'AWS.STS'. TemporaryCredentials
web Represents credentials retrieved from STS Web Identity Federation support. WebIdentityCredentials

* supports placeholders

Clone this wiki locally