Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
christophetd committed Mar 26, 2024
1 parent e6aecb6 commit 3a78d5a
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions website/docs/r/ec2_instance_metadata_defaults.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
subcategory: "EC2 (Elastic Compute Cloud)"
layout: "aws"
page_title: "AWS: aws_ec2_instance_metadata_defaults"
description: |-
Manages regional EC2 instance metadata default settings.
---

# Resource: aws_ec2_instance_metadata_defaults

Manages regional EC2 instance metadata default settings.
More information can be found in the [Configure instance metadata options for new instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html) user guide.

## Example Usage

```terraform
resource "aws_ec2_instance_metadata_defaults" "enforce-imdsv2" {
http_tokens = "required"
http_put_response_hop_limit = 1
}
```

## Argument Reference

This resource supports the following arguments.

* `http_endpoint` - (Optional) Whether the metadata service is available. Can be `"enabled"` or `"disabled"`.
* `http_tokens` - (Optional) Whether the metadata service requires session tokens, also referred to as _Instance Metadata Service Version 2 (IMDSv2)_. Can be `"optional"` or `"required"`.
* `http_put_response_hop_limit` - (Optional) The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel. Can be an integer from `1` to `64`.
* `instance_metadata_tags` - (Optional) Enables or disables access to instance tags from the instance metadata service. Can be `"enabled"` or `"disabled"`.

## Attribute Reference

This data source exports no additional attributes.

## Import

You cannot import this resource.

0 comments on commit 3a78d5a

Please sign in to comment.