Ec2-metadata

Latest version: v2.14.0

Safety actively analyzes 706259 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

2.9.0

------------------

* Add ``autoscaling_target_lifecycle_state`` attribute, as per `AWS announcement <https://aws.amazon.com/about-aws/whats-new/2022/03/amazon-ec2-auto-scaling-lifecycle-instance-metadata/>`__.

2.8.0

------------------

* Add ``tags`` attribute, a mapping of the instance tags.
This requires the corresponding EC2 feature to be enabled on the instance.

Thanks to Renan Rodrigues in `PR 344 <https://github.com/adamchainz/ec2-metadata/pull/344>`__.

* Add ``spot_instance_action`` attribute.

Thanks to Quimey Vivas in `PR 346 <https://github.com/adamchainz/ec2-metadata/pull/346>`__.

* Add ``domain`` and ``partition`` attributes.

Thanks to Terry Griffin in `PR 339 <https://github.com/adamchainz/ec2-metadata/pull/339>`__.

* Add ``instance_profile_name`` and ``iam_security_credentials`` attributes.

Thanks to Jean-Sebastien Jeannotte in `PR 313 <https://github.com/adamchainz/ec2-metadata/pull/313>`__.

2.7.0

------------------

* Drop Python 3.6 support.

2.6.0

------------------

* Support Python 3.10.

2.5.0

------------------

* Add ``availability_zone_id`` attribute.
* Add type hints.

2.4.0

------------------

* Use ``functools.cached_property`` on Python 3.8+, removing the dependency on
the ``cached-property`` package.

* Stop distributing tests to reduce package size. Tests are not intended to be
run outside of the tox setup in the repository. Repackagers can use GitHub's
tarballs per tag.

Page 2 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.