Skip to content

kzlidev/vault-demo-ec2-aws-auth

Repository files navigation

Deploy

To deploy

terraform init
terraform apply --auto-approve

Demo

Once the EC2 has been deployed, connect to them through instance connect and set the below Vault environment variables

export VAULT_ADDR=<VAULT_ADDR>
export VAULT_NAMESPACE=admin

Once done, we can login to Vault using the CLI

vault login -method=aws

Render certificates

vault agent -config=vault-agent.hcl -exit-after-auth=true

Lookup token

vault token lookup

Get secrets from KV

vault kv get -mount="kvv2" "app-a-secret"
vault kv get -mount="kvv2" "app-b-secret"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published