Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

AWS Setup

Nathan Totten edited this page Apr 28, 2015 · 7 revisions

In this article you will find details on how to setup your AWS environment for the SSO Dashboard app.

This app uses S3 for data storage. As such you will need to create a S3 bucket as well as a user with permissions to read/write from bucket.

  1. Create an S3 Bucket: http://docs.aws.amazon.com/AmazonS3/latest/gsg/CreatingABucket.html
  2. Create an IAM User: http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_SettingUpUser.html - Make sure to save the user's credentials as you will need them in the app config.
  3. Create the below IAM policy. This policy allows read/write access to your bucket.
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": ["s3:ListBucket"],
      "Resource": ["arn:aws:s3:::YOURBUCKETNAME"]
    },
    {
      "Effect": "Allow",
      "Action": [
        "s3:PutObject",
        "s3:GetObject",
        "s3:DeleteObject"
      ],
      "Resource": ["arn:aws:s3:::YOURBUCKETNAME/*"]
    }
  ]
}
  1. Attach the policy you just created to your IAM user. For more information on policies see: http://docs.aws.amazon.com/IAM/latest/UserGuide/ManagingPolicies.html
  2. After you have setup the AWS S3 Bucket and have the user credentials you will need to set the following values in the .env file (locally) or environment config in your hosting environement.
Name Type Description
AWS_ACCESS_KEY_ID String The AWS Access Key Id for performing management functions on S3 and Cloudfront.
AWS_SECRET_ACCESS_KEY String The secret access key for the management account.
AWS_S3_BUCKET String The name of the S3 bucket where you will host your app.
Clone this wiki locally