gulp-awspublish | gulp plugin to publish files to amazon s3 | AWS library
kandi X-RAY | gulp-awspublish Summary
kandi X-RAY | gulp-awspublish Summary
gulp plugin to publish files to amazon s3
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Creates an instance of Publisher
- Convert AWS params to an AWS object .
- determine if file should be deleted
- Build a Delete batch request
- Initializes a file .
- Extract content type from file .
- Calculate MD5 hash .
- Saves the cache to disk .
gulp-awspublish Key Features
gulp-awspublish Examples and Code Snippets
var gulp = require('gulp')
, awspublish = require('gulp-awspublish')
, cloudfront = require('gulp-cloudfront-invalidate-aws-publish');
var publisher = awspublish.create({
region: 'your-region-id',
params: {
Bucket: '...'
}
}, {
cache
Community Discussions
Trending Discussions on gulp-awspublish
QUESTION
I am trying to deploy my nuxt static website to S3 using this guide. https://nuxtjs.org/faq/deployment-aws-s3-cloudfront
The deployscript works when using which I tried an a personal AWS account: AWS_ACCESS_KEY_ID="key" AWS_SECRET_ACCESS_KEY="secret"
It does not work when unsetting these exports and using the AWS_PROFILE export on a separate AWS account. On this AWS I am not able to get an access key and secret because of company policy.
I also use these AWS profiles for other things so I am sure they are configured properly.
The error I am getting in the console is:
Error: Connect EHOSTUNREACH
The part in brackets is the IP address I am seeing. Which is weird where it tries to connect to EC2 since the script works on S2 and cloudfront.
The script I am using
#!/bin/bash
...ANSWER
Answered 2020-Nov-02 at 15:45Since awspublish uses the javascript sdk I needed to export AWS_SDK_LOAD_CONFIG=true
which solved the issue!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gulp-awspublish
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page