Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andgineer/caa5469c4a6a3d2a54ec90a1f6192ccc to your computer and use it in GitHub Desktop.
Save andgineer/caa5469c4a6a3d2a54ec90a1f6192ccc to your computer and use it in GitHub Desktop.
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