Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of contents

...

Child pages (Children Display)

Related Services

  • Convox - They abstract away all of Amazon's services.
    • This was a tip from Nathan at the Indie Hackers meetup.

AWS Services

Cloud9

Lightsail

  • To get Filezilla working with Lightsail I followed the instructions I found here:
    1. When you "Open Connection", Choose SFTP
    2. Server is the Public IP for your instance (port will be 22)
    3. Username is indicated on the "Connect" tab of manage instance
    4. Choose the SSH Private Key for the instance (you can download the Default Key from the accounts page if you didn't create/upload your own)
  • To install Apache I followed the instructions I found here: 2018.02.14 - Saowen - Deploying python Flask web app on Amazon Lightsail
  • To create a virtualenv I followed the instructions I found here:
    1. sudo pip3 (or pip2) install virtualenv
    2. virtualenv venv
    3. source venv/bin/activate
    4. deactivate
  • I created symlinks to the following things:
    • ln -s /var/log/apache2/error.log error.log
    • ln -s /var/www/<project_name> <project_name>
    • ln -s /var/www/<project_name>/venv/bin/activate activate_venv
  • To get the server to run in a virtualenv I followed some instructions I found here:
    • Open up /etc/apache2/sites-available/<your_website>.conf
    • Look for a line that says "WSGIDaemonProcess <name_of_the_app>"
    • Change it to read "WSGIDaemonProcess <name_of_the_app> python-home=/path/to/the/venv"

...

44. Understanding JSON Schemas

...

  • What kind of database is DynamoDB?
  • You don't need to manage DynamoDB servers. How do you then scale the database?
    • NW: One thing I don't remember being mentioned (that came up in the answer). This method of storage isn't completely hands-off; you do need to "decide how much read/write capacity (per second) you need".
  • What's "Provisioned Throughput" or "Read and Write Capacity" all about?
    • Answer: "It defines how many read or write actions you may perform per action." More info here.
  • How do you access DynamoDB actions via Lambda?
    • NW: He hadn't actually covered this before asking this question.
  • What's a "Primary Key" and how is it connected to "Partition Key" and "Sort Key"
  • What's the difference between scan() and getItem() ?
    • NW: Pretty sure he hasn't covered this yet.
    • "getItem() only returns one item, scan() returns multiple items."
58. Creating a Table in DynamoDB

...