-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6aecb6
commit 3a78d5a
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
website/docs/r/ec2_instance_metadata_defaults.html.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |