You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 24, 2021. It is now read-only.
*`path` - the path to the directory to upload, this will be excluded on s3 - i.e. if you upload `public`, then the contents of `public` will be uploaded to the root of your bucket.
36
50
*`bucketName` - Amazon S3 bucket name to upload to
37
-
*`distributionID` - ID of the CloudFront distribution to invalidate files in
38
-
*`profile` - local AWS credentials profile ID
51
+
*`additionalParams` - if passed as an option should be an object of type [additionalParams](#additionalparams-object).
52
+
53
+
#### additionalParams object
54
+
55
+
Keys as follows:
56
+
*`cli` - boolean indicating whether the program is being run in CLI mode (default: `false`)
57
+
*`verbose` - boolean indicating whether to run the program in verbose mode i.e. output a message for each upload (default: `false`)
58
+
*`reuploadAll` - boolean indicating whether to reupload all files regardless of if they have changed (default: `false`)
59
+
*`distribution` - object containing details of CloudFront distribution, absence will lead to no CloudFront distribution not being updated.
60
+
*`id` - ID of Amazon CloudFront distribution
61
+
*`authentication` - object containing authentication options, absence will lead to using system defaults.
62
+
*`profile` - identifier of profile in local AWS credentials ini file. (cannot be used in conjunction with `accessKey` or `keyId`)
63
+
*`keyId` - AWS access key ID (cannot be used in conjunction with `profile`, must be used in conjunction with `accessKey`)
64
+
*`accessKey` - AWS access key (cannot be used in conjunction with `profile`, must be used in conjunction with `keyId`)
39
65
40
66
### CLI
41
67
@@ -45,8 +71,17 @@ The module can be used from the CLI as follows
45
71
aws-cloudfront-deploy --path public --bucket mybucketname --distribution ABCDEFGHIJKLM --profile dev
46
72
```
47
73
48
-
## Note
74
+
Options as follows
75
+
```bash
76
+
-V, --version output the version number
77
+
-p, --path <required> path
78
+
-b, --bucket <required> bucket name
79
+
-d, --distribution [id] cloudfront distribution id
80
+
-p, --profile [profile name] profile to use
81
+
-i, --keyId [keyId] AWS access key ID
82
+
-k, --accessKey [accessKey] AWS access key
83
+
-r, --reupload Re-upload all items
84
+
-v, --verbose run in verbose mode
85
+
-h, --help output usage information
86
+
```
49
87
50
-
This module is a heavy work in progress. The following features are still missing:
51
-
* Specification of your own AWS keys as opposed to relying on profiles
0 commit comments