You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a70e576
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -260,6 +260,15 @@ Remember to match these values to the ones in your backend state (and replace US
260
260
### **Terraform Setup and Execution Instructions**
261
261
Make the required changes and execute them to see the changes in your own AWS account
262
262
263
+
**Note:** By default this configuration manages IAM resources only (`iam_only = true`). The CloudTrail trails and log buckets in `cloudtrail.tf` belong to the Hack for LA AWS account and are skipped, so you don't need to set anything fora test runin your own account. Everything else is still created in your account, including:
264
+
* every IAM user this repo declares
265
+
* the `ops-leads` group, with `AdministratorAccess` attached
266
+
* a GitHub Actions OIDC provider. AWS allows only one per account, so `terraform apply` fails with `EntityAlreadyExists`if your account already has one.
267
+
268
+
Run `terraform destroy` when you are finished to remove them.
269
+
270
+
**Note:** Any plan or apply against the Hack for LA AWS account must pass `-var iam_only=false`. The GitHub Actions workflows already do this.
// Defaults to true so that a contributor running this against their own AWS account,
2
+
// which is how changes are tested (see CONTRIBUTING.md), gets IAM resources only. The
3
+
// resources in cloudtrail.tf are specific to the Hack for LA account and cannot be
4
+
// created anywhere else.
5
+
//
6
+
// Any plan or apply against the Hack for LA account MUST set this to false. Both CI
7
+
// workflows do. See hackforla/devops-security#196.
8
+
variable"iam_only" {
9
+
description="Manage IAM resources only, skipping the Hack for LA account's CloudTrail trails and log buckets. Set to false for the Hack for LA account."
0 commit comments