Skip to content

Instantly share code, notes, and snippets.

AWS_REGION=us-east-1 node test_secrets_aws.js

{
  ARN: 'arn:aws:secretsmanager:us-east-1:286165495589:secret:b7610df9-5d49-4092-a540-0641fba60a3f-3gaoPe',
  Name: 'b7610df9-5d49-4092-a540-0641fba60a3f',
  VersionId: '092701f4-443d-4195-b1c6-53c36ec428c9',
  SecretString: '{"apiKey":"blah","publicKey":"blah","privateKey":"blah","profileId":"abcd1234","expires":1567691299}',
  VersionStages: [ 'AWSCURRENT' ],
  CreatedDate: 2019-09-04T13:48:19.787Z
}
@ATLJLawrie
ATLJLawrie / 0-cleanup.sh
Last active March 20, 2018 21:32
Build local swarm cluster with viz, portainer, traefik and then setup DNS resolution
echo "Removing nodes 1-3"
docker-machine rm node-1 node-2 node-3
# use the below command with the appropriate virtualbox network if having issues
# sudo ifconfig vboxnet0 down && sudo ifconfig vboxnet0 up
@ATLJLawrie
ATLJLawrie / README.md
Created June 21, 2017 03:14 — forked from bvis/README.md
Docker Env Vars expanded with secrets content

Variables by Secrets

Sample script that allows you to define as environment variables the name of the docker secret that contains the secret value. It will be in charge of analyze all the environment variables searching for the placeholder to substitute the variable value by the secret.

Usage

You can define the next environment variables: