Skip to content

Commit

Permalink
added instance_metadata_tags variable, RITM0447929
Browse files Browse the repository at this point in the history
  • Loading branch information
gholbert committed May 30, 2024
1 parent 3ef9d88 commit 95f14cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,8 @@ resource "aws_instance" "this" {
http_endpoint = "enabled"
http_put_response_hop_limit = 1
http_tokens = var.metadata_http_tokens
instance_metadata_tags = "disabled"
instance_metadata_tags = var.instance_metadata_tags
}

}


Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ variable "metadata_http_tokens" {
default = "required"
}

variable "instance_metadata_tags" {
type = string
description = "`enabled` to allow access to instance tags in instance metadata"
default = "enabled"
}

variable "ebs_optimized" {
type = bool
default = true
Expand Down

0 comments on commit 95f14cf

Please sign in to comment.