oursky / aws-site-manager Goto Github PK
View Code? Open in Web Editor NEWVery simple CLI to create S3 / Cloudfront Static Website
Very simple CLI to create S3 / Cloudfront Static Website
Instead of doing parallel upload / download in our own code and handle pagination properly
Add a new option to use Cloudfront compressing options, when enabled configure Cloudfront to enable gzip, and avoid gzip on S3.
Okay this is my first Go code :(
Points to consider:
Now it is true by default but not mentioned in help text.
Add a new option, when enabled, set up another S3 bucket to redirect www.hostname.com to host name.com
panic: EOF
goroutine 36 [running]:
panic(0x476300, 0xc420014130)
/usr/local/Cellar/go/1.7.1/libexec/src/runtime/panic.go:500 +0x1a1
main.CheckErr(0x7a1ee0, 0xc420014130)
/Users/chpapa/Workspace/go/src/github.com/oursky/aws-site-manager/main.go:33 +0x5c
main.UploadFileHandler(0xc4203b06c0, 0xc42006c180, 0xc4203e2b80, 0xc420142110, 0x10, 0xc42002a0a8, 0x171800, 0xc42006c240)
/Users/chpapa/Workspace/go/src/github.com/oursky/aws-site-manager/sync.go:190 +0xb9c
created by main.Sync
/Users/chpapa/Workspace/go/src/github.com/oursky/aws-site-manager/sync.go:81 +0x3cf
My env is go1.7.1
Installed using
go get -u github.com/oursky/aws-site-manager
go install github.com/oursky/aws-site-manager
Running aws-site-manager sync --domain xxx.oursky.com
result in following logs
Log: https://gist.github.com/rickmak/71466a9fa12d46b0f0ba186ef40c8644
Expect a proper error rather than this trace.
If Dry Run is true, should display description of what will happen if the command run, instead of calling the AWS api.
For usage of non cloudfront cases.
aws-sdk-go have been annouced officially and we should use the new SDK.
Should be two options:
Use some other's existing tools?
Want to have:
Follow up #32 after I correct the credentials.
Got this log: https://gist.github.com/rickmak/6e40921047c6206b2a5d3807039da195
AWS provide the API getting the s3 bucket location
for example in aws cli, we can query the bucket region by this: aws s3api get-bucket-location --bucket domain.oursky.com
Save the config to .aws-site-manager-sync, and if users provide no parameter, will use the same parameter as last time to sync.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.