apachejspωiki
  • G’day (anonymous guest)
  • User Preferences Log in
  • Recent Searches
2015-06-17-Deploying-to-S3
Your trail: 
  • ☰
  • 2015-06-17-Deploying-to-S3
  • Attach
  • Edit
  • More...
    • View Page Source
    • Show Reader View
    • Recent Changes
      Page Index
      SystemInfo

      UnusedPages
      UndefinedPages

This page (revision-1) was last changed on 22-Jan-2017 03:48 by UnknownAuthor  

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

History

Version Date Modified Size Author Changes ... Change note

Page References

Incoming links Outgoing links
2015-06-17-Deploying-to-S3
  • GithubPagesBlogEntries
2015-06-17-Deploying-to-S3

Difference

Difference between version and

At line 1 added 41 lines
!!!Deploying to an Amazon S3 bucket
So, I currently have a public folder, reachable at http://s3.amazonaws.com/''PublicFolderName''. (I wonder if I should
change the name of that folder to something that's not my name?)
The folder isn't browsable, but stuff in it is publicly viewable, so it's just a matter of uploading to the folder and
linking to the right URL.
!!Uploading
The AWS console has an "Upload" function, but is there a command-line tool I can use?
Why, ''yes'', there does indeed appear to be!
[http://docs.aws.amazon.com/powershell/latest/userguide/pstools-welcome.html|http://docs.aws.amazon.com/powershell/latest/userguide/pstools-welcome.html]
(More later, I hope.)
...
Ok, now it's later, but I can't figure this out using the PowerShell tools. I'll have to try again later, from my Linux
machine. Tools are available here: [https://aws.amazon.com/cli/|https://aws.amazon.com/cli/].
-----
Ok, now it's a whole day later, but I've figured it out.
Install the AWS Linux tools.
{{aws config}}
Enter your data. You can use an Amazon IAM user. I'd select output format of "text" (default is "json").
(IAM is Identity and Access Management).
After that, {{cd}} to your source directory and knock yourself out:
{{{
for f in gradient-data.js gradient-editor.html gradient-editor.css; do
aws s3 cp $f s3://JohnLuskPublic/GradientEditorWeb/$f
done
}}}
This page (revision-1) was last changed on 22-Jan-2017 03:48 by UnknownAuthor   Top

About
Help
SysInfo

(page = LeftMenu)

Admin

(page = LeftMenuFooter)

JSPWiki v2.10.2  
JSPWiki v2.10.2