public version completion

This commit is contained in:
J Cole Morrison 2020-04-13 20:26:06 -07:00
parent 94f374dce2
commit 43d49191d9
3 changed files with 7 additions and 1 deletions

3
.gitignore vendored
View File

@ -4,4 +4,5 @@ terraform.tfstate.backup
terraform.tfvars
todos.md
.DS_Store
files/user_data_compiled.sh
files/user_data_compiled.sh
tmp/

View File

@ -8,6 +8,8 @@ resource "aws_autoscaling_group" "vault-asg" {
version = aws_launch_template.vault_instance.latest_version
}
target_group_arns = [aws_lb_target_group.alb_targets.arn]
# All the same to keep at a fixed size
desired_capacity = var.vault_instance_count
min_size = var.vault_instance_count

View File

@ -178,6 +178,9 @@ Content-Type: text/x-shellscript; charset="us-ascii"
# - Delete the local file
# - Erase bash history
# Workaround to make sure the vault service is fully initialized.
sleep 10
export VAULT_ADDR="http://127.0.0.1:8200"
export AWS_DEFAULT_REGION="${VAULT_CLUSTER_REGION}"