Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix EC2 example and set WorkingDirectory for systemd service #81

Merged
merged 2 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/hcp-ec2-demo/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ output "hashicups_url" {
}

output "next_steps" {
value = local.install_demo_app ? "HashiCups Application will be ready in ~2 minutes. Use 'terraform output consul_root_token' to retrieve the root token." : null
value = var.install_demo_app ? "HashiCups Application will be ready in ~2 minutes. Use 'terraform output consul_root_token' to retrieve the root token." : null
}

output "howto_connect" {
Expand All @@ -36,6 +36,6 @@ output "howto_connect" {

To connect to the ec2 instance deployed:
${var.ssh ? " - To access via SSH run: ssh -i ${abspath(local_file.ssh_key[0].filename)} ubuntu@${module.aws_ec2_consul_client.public_ip}" : ""}
${var.ssm ? " - To access via SSM run: aws ssm start-session --target ${module.aws_ec2_consul_client.host_id} --region ${local.vpc_region}" : ""}
${var.ssm ? " - To access via SSM run: aws ssm start-session --target ${module.aws_ec2_consul_client.host_id} --region ${var.vpc_region}" : ""}
EOF
}
1 change: 1 addition & 0 deletions modules/hcp-ec2-client/templates/service
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ KillMode=process
KillSignal=SIGTERM
Restart=on-failure
LimitNOFILE=65536
WorkingDirectory=/etc/consul.d/

[Install]
WantedBy=multi-user.target