Skip to content

Ada-Developers-Academy/ada-apply

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 

Repository files navigation

Ada Admissions Landing Page

Deploying

AWS Credentials

To deploy you will first need to have your AWS credentials configured.

You will need:

  1. An AWS account (this is separate from your normal Amazon account)
  • You will probably want to create one for the AWS Console.
  1. Access to the administrator account on LastPass or the help of someone that does have these credentials.
  2. To create ~/.aws/config. It should look like:
[profile dev]
aws_access_key_id = AKIA...
aws_secret_access_key = ...

[profile prod]
aws_access_key_id = AKIA...
aws_secret_access_key = ...

[default]
region = us-west-2

You can use the same key for both the dev and prod sections.

  1. You will to create ~/.aws/credentials. It should look like:
[default]
aws_access_key_id = AKIA...
aws_secret_access_key = ...

These keys should also be the same as above.

Development

Once you have your credentials deploying to dev is pretty simple:

$ ./deploy dev

Production

Deploying to production is trickier. First you will need to do the actual deploy:

$ ./deploy prod

Then you will need to use the Cloudfront Console to create an "invalidation" to clear the cache. Otherwise you will have to wait for the cache to expire. (Which is 24 hours by default.)

To create the invalidation:

  1. Log into the Cloudfront Console.
  2. Click into the "Distribution" for apply.adadev.org (E1YKMRTO9G7F1G)
  3. Click into the "Invalidations" tab.
  4. Click "Create Invalidation" and put in / as the object path.
  5. Repeat steps 2 through 4 for application.adadevelopersacademy.org (E2R1BVOWQFA8RO)