Skip to content

Commit

Permalink
python script to sync source control oncall members to configerator f…
Browse files Browse the repository at this point in the history
…or Mononoke AWS

Summary:
Mononoke AWS is currently relying on a list of source control oncall members that needs to be manually updated. This diff creates a python script that queries the authorization service for source control oncall members and writes the list to a `.cinc` file in configerator to allow referencing it from the AWS config files.

This is pattern matched off of https://www.internalfb.com/code/fbsource/[d3943c5e379a]/fbcode/eden/fs/facebook/prefetch_profiles/profile_name_configerator_sync.py

Reviewed By: lmvasquezg

Differential Revision: D66543341

fbshipit-source-id: 7a544cc0cddda0f230590bca0bda65fb49087bb6
  • Loading branch information
YousefSalama authored and facebook-github-bot committed Nov 27, 2024
1 parent 7563ad2 commit 647606d
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary")

oncall("mononoke")

python_binary(
name = "source_control_members_configerator_sync",
srcs = ["source_control_members_configerator_sync.py"],
labels = ["autodeps2_generated"],
main_module = "eden.mononoke.facebook.source_control_members_configerator_sync.source_control_members_configerator_sync",
deps = [
"//configerator/configo/client/thrift_py3:client",
"//infrasec/authorization/if:if-service-python-clients",
"//servicerouter/client/python:sync_client",
],
)

0 comments on commit 647606d

Please sign in to comment.