Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
Improved documentation for individual SSH access
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedetto Lo Giudice committed Jun 2, 2015
1 parent e5d5549 commit 82fd44d
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,13 @@ The cloudformation yaml will be automatically uploaded to your pillar as cloudfo

Github based SSH key generation
+++++++++++++++++++++++++++++++
Add this to your template yaml::
To add individual users to the AWS stack.

1. to customize the list of users, teams and keys, add the following to the project
YAML template; it offers more flexibility: for example multiple keys per user, or limiting
to specific keys for users with multiple keys:

::


myenv:
Expand All @@ -130,9 +136,35 @@ Add this to your template yaml::
fingerprints: 00:11:22:33:44:55:66
- anotherteam

Running this requires a github token with permissions to read the github organisation stored in an environment variable called GH_TOKEN.
Once you set the variable just run::
2. in the simplest version, just add the list of teams (all users' keys will be used)
to the projec YAML template

::


github_users:
ministryofjustice: # or any org
teams:
- webops
- crime-billing-online


3. if a team doesn't exist, create it on GitHub. Example of a team:
https://github.com/orgs/ministryofjustice/teams/webops


4. obtain a GitHub token and set the GH_TOKEN variable in your environment:
https://help.github.com/articles/creating-an-access-token-for-command-line-use/

5. run the following command:

::


fab application:<yourapp> aws:<your_aws_profile> environment:myenv config:<your template yaml file> ssh_keys

6. highstate the stack:

::

fab application:<yourapp> aws:<your_aws_profile> environment:myenv config:<your template yaml file> update

0 comments on commit 82fd44d

Please sign in to comment.