MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / get_secretmanager_json

Function get_secretmanager_json

scripts/build.py:452–458  ·  view source on GitHub ↗
(secret_id: str, secret_region: str)

Source from the content-addressed store, hash-verified

450
451
452def get_secretmanager_json(secret_id: str, secret_region: str):
453 info(f"Loading secretmanager value: {secret_id}")
454 secret_value = run_cmd_output(
455 ["aws", "--region", secret_region, "secretsmanager", "get-secret-value", "--secret-id", secret_id]
456 )
457 secret_string = json.loads(secret_value)["SecretString"]
458 return json.loads(secret_string)
459
460
461def load_gpg_signer() -> Optional[GpgSigner]:

Callers 1

load_gpg_signerFunction · 0.85

Calls 2

infoFunction · 0.90
run_cmd_outputFunction · 0.90

Tested by

no test coverage detected