Skip to content

Commit

Permalink
Enable protection of licence server instance
Browse files Browse the repository at this point in the history
  • Loading branch information
lukabudak committed Jul 9, 2024
1 parent 0c03f8d commit c888898
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions license-server.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
resource "aws_instance" "license_server" {
count = var.licenseServer ? 1 : 0
ami = data.aws_ami.amazon_linux_kernel5.id
instance_type = "t3a.large"
iam_instance_profile = aws_iam_instance_profile.license_server_profile[0].name
subnet_id = local.private_subnets[0]
vpc_security_group_ids = [module.security_group_license_server[0].security_group_id]
count = var.licenseServer ? 1 : 0
ami = data.aws_ami.amazon_linux_kernel5.id
instance_type = "t3a.large"
iam_instance_profile = aws_iam_instance_profile.license_server_profile[0].name
subnet_id = local.private_subnets[0]
disable_api_termination = true
vpc_security_group_ids = [module.security_group_license_server[0].security_group_id]

metadata_options {
# [EC2.8] EC2 instances should use IMDSv2
Expand Down

0 comments on commit c888898

Please sign in to comment.