2.0.4 • Published 11 months ago

@prairielearn/aws-imds v2.0.4

Weekly downloads
-
License
-
Repository
github
Last release
11 months ago

@prairielearn/aws-imds

Utilities for fetching data from the AWS EC2 Instance Metadata Service (IMDS).

Usage

import { fetchImdsText, fetchImdsJson } from '@prairielearn/aws-imds';

const hostname = await fetchImdsText('/latest/meta-data/hostname');
const identity = await fetchImdsJson('/latest/dynamic/instance-identity/document');

You can also use convenience functions to fetch data from common endpoints. The data is internally validated with Zod before being returned.

import { fetchInstanceHostname, fetchInstanceIdentity } from '@prairielearn/aws-imds';

const hostname = await fetchInstanceHostname();
const identity = await fetchInstanceIdentity();
2.0.3

12 months ago

2.0.2

1 year ago

2.0.4

11 months ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.10

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago