Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iam stale - last changes for gov/com #1584

Merged
merged 3 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,11 @@ updates:
directory: "/terraform/modules/iam_user/ecr_user"
schedule:
interval: "weekly"
- package-ecosystem: "terraform"
directory: "/terraform/modules/iam_user/federalist_auditor"
schedule:
interval: "weekly"
# No longer used - McGowan - 11/6/23
#- package-ecosystem: "terraform"
# directory: "/terraform/modules/iam_user/federalist_auditor"
# schedule:
# interval: "weekly"
- package-ecosystem: "terraform"
directory: "/terraform/modules/iam_user/health_check"
schedule:
Expand Down
2 changes: 2 additions & 0 deletions terraform/modules/iam_user/federalist_auditor/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# No longer used - McGowan - 11/6/23
# remove this and the whole module folder
output "username" {
value = var.username
}
Expand Down
2 changes: 2 additions & 0 deletions terraform/modules/iam_user/federalist_auditor/policy.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# No longer used - McGowan - 11/6/23
# remove this and the whole module folder
{
"Version": "2012-10-17",
"Statement": [
Expand Down
3 changes: 2 additions & 1 deletion terraform/modules/iam_user/federalist_auditor/user.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
# USER AND MODULE (yes, even with the same permissions). Having separate users
# with the same permissions simplifies our work when we have to rotate
# credentials.

# No longer used - McGowan - 11/6/23
# remove this and the whole module folder
resource "aws_iam_user" "iam_user" {
name = var.username
}
Expand Down
2 changes: 2 additions & 0 deletions terraform/modules/iam_user/federalist_auditor/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# No longer used - McGowan - 11/6/23
# remove this and the whole module folder
variable "username" {
}

2 changes: 2 additions & 0 deletions terraform/modules/iam_user/federalist_auditor/versions.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# No longer used - McGowan - 11/6/23
# remove this and the whole module folder
terraform {
required_version = ">= 0.15"
required_providers {
Expand Down
9 changes: 5 additions & 4 deletions terraform/stacks/tooling/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ module "iam_cert_provision_user" {
# USER AND MODULE (yes, even with the same permissions). Having separate users
# with the same permissions simplifies our work when we have to rotate
# credentials.
module "federalist_auditor_user" {
source = "../../modules/iam_user/federalist_auditor"
username = "federalist-s3-bucket-auditor"
}
# No longer used - McGowan - 11/7/2023
#module "federalist_auditor_user" {
# source = "../../modules/iam_user/federalist_auditor"
# username = "federalist-s3-bucket-auditor"
#}

module "blobstore_policy" {
source = "../../modules/iam_role_policy/blobstore"
Expand Down
45 changes: 23 additions & 22 deletions terraform/stacks/tooling/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -616,28 +616,29 @@ output "staging_doomsday_lb_target_group" {
# sensitive = true
#}

/* federalist auditor user */
output "federalist_auditor_username" {
value = module.federalist_auditor_user.username
}

output "federalist_auditor_access_key_id_prev" {
value = module.federalist_auditor_user.access_key_id_prev
}

output "federalist_auditor_secret_access_key_prev" {
value = module.federalist_auditor_user.secret_access_key_prev
sensitive = true
}

output "federalist_auditor_access_key_id_curr" {
value = module.federalist_auditor_user.access_key_id_curr
}

output "federalist_auditor_secret_access_key_curr" {
value = module.federalist_auditor_user.secret_access_key_curr
sensitive = true
}
# Not in use - McGowan 11/9/2023
ChrisMcGowan marked this conversation as resolved.
Show resolved Hide resolved
#/* federalist auditor user */
#output "federalist_auditor_username" {
# value = module.federalist_auditor_user.username
#}
#
#output "federalist_auditor_access_key_id_prev" {
# value = module.federalist_auditor_user.access_key_id_prev
#}
#
#output "federalist_auditor_secret_access_key_prev" {
# value = module.federalist_auditor_user.secret_access_key_prev
# sensitive = true
#}
#
#output "federalist_auditor_access_key_id_curr" {
# value = module.federalist_auditor_user.access_key_id_curr
#}
#
#output "federalist_auditor_secret_access_key_curr" {
# value = module.federalist_auditor_user.secret_access_key_curr
# sensitive = true
#}

# No longer used - McGowan - 10-18/2023
#/* s3 logstash user */
Expand Down