|
7 | 7 | An Ansible role for installing
|
8 | 8 | [cisagov/ncats-webd](https://github.com/cisagov/ncats-webd).
|
9 | 9 |
|
| 10 | +## Pre-requisites (Ignore Until the COOL Migration) ## |
| 11 | + |
| 12 | +In order to execute the Molecule tests for this Ansible role in GitHub |
| 13 | +Actions, a build user must exist in AWS. The accompanying Terraform |
| 14 | +code will create the user with the appropriate name and |
| 15 | +permissions. This only needs to be run once per project, per AWS |
| 16 | +account. This user can also be used to run the Molecule tests on your |
| 17 | +local machine. |
| 18 | + |
| 19 | +Before the build user can be created, the following profile must exist in |
| 20 | +your AWS credentials file: |
| 21 | + |
| 22 | +* `cool-terraform-backend` |
| 23 | + |
| 24 | +The easiest way to set up that profile is to use our |
| 25 | +[`aws-profile-sync`](https://github.com/cisagov/aws-profile-sync) |
| 26 | +utility. Follow the usage instructions in that repository before |
| 27 | +continuing with the next steps. Note that you will need to know where |
| 28 | +your team stores their remote profile data in order to use |
| 29 | +[`aws-profile-sync`](https://github.com/cisagov/aws-profile-sync). |
| 30 | + |
| 31 | +To create the build user, follow these instructions: |
| 32 | + |
| 33 | +```console |
| 34 | +cd terraform |
| 35 | +terraform init --upgrade=true |
| 36 | +terraform apply |
| 37 | +``` |
| 38 | + |
| 39 | +Once the user is created you will need to update the [repository's |
| 40 | +secrets](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets) |
| 41 | +with the new encrypted environment variables. This should be done |
| 42 | +using the |
| 43 | +[`terraform-to-secrets`](https://github.com/cisagov/development-guide/tree/develop/project_setup#terraform-iam-credentials-to-github-secrets-) |
| 44 | +tool available in the [development |
| 45 | +guide](https://github.com/cisagov/development-guide). Instructions for |
| 46 | +how to use this tool can be found in the ["Terraform IAM Credentials |
| 47 | +to GitHub Secrets" |
| 48 | +section](https://github.com/cisagov/development-guide/tree/develop/project_setup#terraform-iam-credentials-to-github-secrets-). |
| 49 | +of the Project Setup README. |
| 50 | + |
| 51 | +If you have appropriate permissions for the repository you can view |
| 52 | +existing secrets on the [appropriate |
| 53 | +page](https://github.com/cisagov/ansible-role-ncats-webd/settings/secrets) in |
| 54 | +the repository's settings. |
| 55 | + |
10 | 56 | ## Requirements ##
|
11 | 57 |
|
12 | 58 | None.
|
|
0 commit comments