I'm following @vortex's (Amy's) 40-Day Tutorial and one of the sections is on editing and uploading your landers to an AWS S3 Bucket.
One option is to use CrossFTP as described in the tutorial Day 19-25: Fixing Up Landers.
Another option which is a bit quicker, is to automatically have Sublime sync your S3 bucket with your local files.
User @robertson talks about it a bit on this post. I have a background in coding and I'm going to use this thread to elaborate his method a bit further and make it more accessible.
Note: This guide uses Mac OS X + Amazon S3 + Sublime, but you can still make it work on Windows by tweaking some parts here and there.
Requirements
Pip - Pip is a python library manager that we'll use to install AWS's Command Line Interface (CLI). Please make sure you have PIP installed on your machine before moving forward.
How to install Pip on Windows, Mac OS & Linux
Verify that PIP is installed by opening your terminal (mac) OR Git Bash / any other unix terminal (Windows) and typing
pip --version
You should see something like
pip 18.0 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)
Attachment 20970
Steps
1. In your terminal, type
pip install awscli
aws
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]To see help text, you can run:
aws help aws <command> help aws <command> <subcommand> help aws: error: the following arguments are required: command
aws configure
cd /Users/anthony/Library/Application\ Support/Sublime\ Text\ 3/Packages/User
s3up.sublime-build
{ "cmd": ["aws", "s3", "sync", "/Users/yourName/landers", "s3://your-bucket-name"] }
/Users/anthony/Desktop/Business/AFFILIATE/s3
@0192837465 Thanks very much for posting this in a new thread!
I'm very surprised the thread hasn't received thanks up to now!
I'm linking from the tutorial to this thread - your detailed instructions (which have no doubt taken you a lot of time to write) will help a lot of other newbie members.
Thanks a million times over for your post!
Amy
@0192837465 - This is really slick, thanks for taking the time to walk us through it.
However, I am using Windows and am struggling to get the text.txt file to push to S3.
My question is: When we add the below "cmd" code "inside" of s3up.sublime-build, where is this actually done? I've replaced the directory and URL and input the code into the file in Sublime text editor, but I am getting the following error when trying to push the test.txt file to S3: "No build system"
{
"cmd": ["aws", "s3", "sync", "/Users/yourName/landers", "s3://your-bucket-name"]
}
Curious if you have any insight or if there are other windows users out there who've been able to get this to work. Thanks!
Awesome @0192837465 thanks mate
In case any windows users are having issues with the build-system like I was, I added "shell: true" to the code and was able to get it working. The code looks like this:
{
"shell": true,
"cmd": ["aws", "s3", "sync", "/Users/yourName/landers", "s3://your-bucket-name"]
}
Thanks @0192837465!
Thank you guys for that valuable method. I use it on Windows 10, it works!
Just one quick question, since I'm not a coder. How can I implement this method for different buckets? How the code will look like?

NOTE: @mrhaste has shared further tips on executing the method in the first post:
https://stmforum.com/forum/showthrea...l=1#post385771
Thank you for this quick sublime guide! Uploading is super easy now. Just to add, if you are having problem on locating your build package on your terminal, you can just simply do it in sublime by clicking tools --> Build System --> New Build system and paste the code above and save it as s3up.sublime-build and it should work the same.
Full disclosure: I know close to zero coding so I apologize if I am missing something rudimentary here.
I'm having issues installing awscli. I have PIP installed and confirmed it by typing pip -- version. I got the following:
pip 20.1b1 from /Library/Python/2.7/site-packages/pip-20.1b1-py2.7.egg/pip (python 2.7)
I then tried installing awscli by typing the following: pip install awscli
Linked here a screenshot of the result (image is in Google drive because was having issues uploading here - tech problems man lol).
When I type aws, it says "Command Not Found". Any insight on where I may be going wrong? I tried updating Python from 2.7 to the latest version and still have had no luck. I hope this explanation made some sense
Thanks in advance!
What a share. Thank you
I can't seem to get step 3 to work. I accidentally added the lines of code into s3up.sublime-build without editing them first. I only realised it once I tried to see if everything was working on sublime text and retraced my steps. So then I wasn't sure what to do so I tried to redo step 3 but that didn't work either.
I used the "nano s3up.sublime-build" command to create the file in terminal.
https://imgur.com/ouGyIwb
when I tried it the second time around I was hoping it would lead me to the file I had created previously but instead there was no text.
https://imgur.com/4oLA2e2
So I tried putting in what I believe to be the "correct" lines of code.
I saved the lines and then terminated nano.
However its still not working.
https://imgur.com/bxh7hem
Am I making a mistake somewhere or is it just not working because I filled in the wrong code the first time around? If so what can I do? do I need to delete the "wrong" file I created on terminal, or should re-doing step 3 correctly solve things? I have no experience with terminal so if you can dumb your explanation down for me that would be great! apologies for the links, I tried inserting pictures but i couldn't get it to work either. I guess its just one of those days....
What a headache it was to do this on my laptop!! I was having trouble installing PIP and AWS CLI.
In my case it didn't work because I had the old version of Python (Python 2.7 > which is installed by default on the mac OS > this version stopped working as of this january 2021), and the AWS code from this guide was outdated... When it comes to technology, better to always have everything up to date.
After hours and hours of trial and error, asking Google and a lot of breathing, it finally worked!! 
Just in case someone has the same problem I had, this is how I made it work :
It was ridiculously simple
1) Download and install the latest version of Python >> https://www.python.org/downloads/
2) Download and Install Pip3 (latest one) >> Open the Terminal and use the following command to download pip directly
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
pip3 --version
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg" sudo installer -pkg AWSCLIV2.pkg -target /
aws --version
@vallem Thank you so much for taking the time to figure this out and then share all the steps!! Much appreciated!
Amy
Sent from my iPhone using STM Forums