Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Latest commit

 

History

History

ec2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

AWS EC2 + SecretHub


View Docs


This example uses Terraform to launch an EC2 instance, deploy the SecretHub Demo App on it and provision it with the required secrets using the SecretHub AWS Identity Provider.

Prerequisites

  1. Terraform installed along with the SecretHub Provider
  2. Correctly configured AWS Credentials
  3. Values assigned to the variables in variables.tf

Running the example

To launch an example EC2 instance (t2.nano), that runs the demo app, run:

terraform init
terraform apply

Once the instance is running its public IP will be outputted.

To see the app running, visit http://<EC2-INSTANCE-IP>:8080.

Note that it might take a couple minutes for the instance to be accessible from the browser.