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

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Ilchenko committed Oct 28, 2022
1 parent b118ccb commit cc620bf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
5 changes: 3 additions & 2 deletions auth_asg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ resource "aws_launch_configuration" "auth" {
name_prefix = "${substr(var.cluster_name, 0, 16)}-auth-"
image_id = var.ami_id
instance_type = var.auth_instance_type
user_data = templatefile(
user_data = templatefile(
"${path.module}/auth-user-data.tpl",
{
region = data.aws_region.current.name
Expand All @@ -67,7 +67,8 @@ resource "aws_launch_configuration" "auth" {
}
)
metadata_options {
http_tokens = "required"
http_endpoint = "enabled"
http_tokens = "required"
}
root_block_device {
encrypted = true
Expand Down
7 changes: 4 additions & 3 deletions monitor_asg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ resource "aws_launch_configuration" "monitor" {
name_prefix = "${var.cluster_name}-monitor-"
image_id = var.ami_id
instance_type = var.monitor_instance_type
user_data = templatefile(
user_data = templatefile(
"${path.module}/monitor-user-data.tpl",
{
region = data.aws_region.current.name
Expand All @@ -99,7 +99,8 @@ resource "aws_launch_configuration" "monitor" {
}
)
metadata_options {
http_tokens = "required"
http_endpoint = "enabled"
http_tokens = "required"
}
root_block_device {
encrypted = true
Expand All @@ -116,7 +117,7 @@ resource "aws_security_group" "monitor" {
name = "${var.cluster_name}-monitor"
description = "SG for ${var.cluster_name}-monitor"
vpc_id = local.vpc_id
tags = {
tags = {
TeleportCluster = var.cluster_name
}
}
Expand Down
5 changes: 3 additions & 2 deletions node_asg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ resource "aws_launch_configuration" "node" {
name_prefix = "${var.cluster_name}-node-"
image_id = var.ami_id
instance_type = var.node_instance_type
user_data = templatefile(
user_data = templatefile(
"${path.module}/node-user-data.tpl",
{
region = data.aws_region.current.name
Expand All @@ -53,7 +53,8 @@ resource "aws_launch_configuration" "node" {
}
)
metadata_options {
http_tokens = "required"
http_endpoint = "enabled"
http_tokens = "required"
}
root_block_device {
encrypted = true
Expand Down
5 changes: 3 additions & 2 deletions proxy_asg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ resource "aws_launch_configuration" "proxy" {
name_prefix = "${substr(var.cluster_name, 0, 16)}-proxy-"
image_id = var.ami_id
instance_type = var.proxy_instance_type
user_data = templatefile(
user_data = templatefile(
"${path.module}/proxy-user-data.tpl",
{
region = data.aws_region.current.name
Expand All @@ -117,7 +117,8 @@ resource "aws_launch_configuration" "proxy" {
}
)
metadata_options {
http_tokens = "required"
http_endpoint = "enabled"
http_tokens = "required"
}
root_block_device {
encrypted = true
Expand Down

0 comments on commit cc620bf

Please sign in to comment.