|
3 anos atrás | |
---|---|---|
.. | ||
README.md | 3 anos atrás | |
constants.tf | 3 anos atrás | |
globals.tf | 3 anos atrás | |
locals.tf | 3 anos atrás | |
main.tf | 3 anos atrás | |
outputs.tf | 3 anos atrás | |
secrets.tf | 3 anos atrás | |
vars.tf | 3 anos atrás |
Keep the costs low! Uses spot instances. Based off https://github.com/philips-labs/terraform-aws-github-runner
Most of this code is from the 'examples' directory.
See also the XDR readme in xdr-terraform-modules/thirdparty/terraform-aws-github-runner/README.XDR.md
ghe_orgs_with_runners
variable in ~/xdr-terraform-modules/base/account_standards_c2/secrets.tf
.Convert the private key to base64
cat app.private-key.pem | base64
Log into the AWS Console, go to the C2 account->Secrets Manager, and record the base64 string under GHE/runners/<GHE ORG>/webhook_key
Copy the module for a new organization
cp -a ~/xdr-terraform-live/test/aws-us-gov/mdr-test-c2/093-github-runners-mdr-engineering ~/xdr-terraform-live/test/aws-us-gov/mdr-test-c2/093-github-runners-NEWORG`
Edit the terragrunt.hcl in the new module and set the org and github_app_id
appropriately
Follow normal PR procedures and apply.
Run terragrunt output webhook_secret
and record the output
There is a sample repo at https://github.xdrtest.accenturefederalcyber.com/MDR-Engineering/xdr-test-runners that has an extremely simple workflow job. Clone the repo,
update NUM
, commit, and push back to main.
Then check two things: a) In the AWS EC2 console, go to instances, and search for 'runners'. An instance should be created. b) On https://github.xdrtest.accenturefederalcyber.com/MDR-Engineering/xdr-test-runners/actions