From 31c75609a3eedb09ea91e6478daa356e4927f1e4 Mon Sep 17 00:00:00 2001 From: Harsh Mishra Date: Mon, 17 Mar 2025 18:29:42 +0530 Subject: [PATCH 1/2] document the available metadata categories --- content/en/user-guide/aws/ec2/index.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/content/en/user-guide/aws/ec2/index.md b/content/en/user-guide/aws/ec2/index.md index d07992f496..92df7b4976 100644 --- a/content/en/user-guide/aws/ec2/index.md +++ b/content/en/user-guide/aws/ec2/index.md @@ -408,13 +408,26 @@ The token can be used in subsequent requests like so: $ curl -H "x-aws-ec2-metadata-token: " -v http://169.254.169.254/latest/meta-data/ {{< /command >}} -Currently a limited set of [metadata categories](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-categories.html) are implemented. -If you would like support for more metadata categories, please make a feature request on [GitHub](https://github.com/localstack/localstack/issues/new/choose). - {{< callout "note" >}} IMDS IPv6 endpoint is currently not supported. {{< /callout >}} +#### Metadata Categories + +Currently a limited set of [metadata categories](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-categories.html) are implemented. +They are: + +- `ami-id` +- `ami-launch-index` +- `instance-id` +- `instance-type` +- `local-hostname` +- `local-ipv4` +- `public-hostname` +- `public-ipv4` + +If you would like support for more metadata categories, please make a feature request on [GitHub](https://github.com/localstack/localstack/issues/new/choose). + ### Configuration You can use the [`EC2_DOCKER_FLAGS`]({{< ref "configuration#ec2" >}}) LocalStack configuration variable to pass supplementary flags to Docker during the initiation of containerized instances. From 3d7c560281299d9c0bbef1bdee4e99948a4bc92b Mon Sep 17 00:00:00 2001 From: Harsh Mishra Date: Mon, 17 Mar 2025 22:29:47 +0530 Subject: [PATCH 2/2] Update content/en/user-guide/aws/ec2/index.md Co-authored-by: Viren Nadkarni --- content/en/user-guide/aws/ec2/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/user-guide/aws/ec2/index.md b/content/en/user-guide/aws/ec2/index.md index 92df7b4976..491fcd5a7b 100644 --- a/content/en/user-guide/aws/ec2/index.md +++ b/content/en/user-guide/aws/ec2/index.md @@ -414,7 +414,7 @@ IMDS IPv6 endpoint is currently not supported. #### Metadata Categories -Currently a limited set of [metadata categories](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-categories.html) are implemented. +Currently a limited set of [metadata categories](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories) are implemented. They are: - `ami-id`