Created
August 10, 2021 10:04
-
-
Save andgineer/caa5469c4a6a3d2a54ec90a1f6192ccc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sh """ | |
aws secretsmanager get-secret-value --secret-id accounts --query 'SecretString' --output text > secrets.json | |
""".stripIndent() | |
jsonfile = readJSON file: 'secrets.json' | |
env.MY_SECRET = jsonfile.MY_SECRET |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment