Skip to content

Conversation

@clayrosenthal
Copy link
Contributor

Changing the metadata check to read the AWS_EC2_METADATA_ENDPOINT env var, so users can change the exact endpoint they use to check for if they can use a role.

Tested (run the relevant ones):

  • Code formatting: install pre-commit (auto-check on commit) or bash format.sh
  • Any manual or new tests for this PR (please specify below)
  • All smoke tests: /smoke-test (CI) or pytest tests/test_smoke.py (local)
  • Relevant individual tests: /smoke-test -k test_name (CI) or pytest tests/test_smoke.py::test_name (local)
  • Backward compatibility: /quicktest-core (CI) or pytest tests/smoke_tests/test_backward_compat.py (local)

Tested this on a setup with a non-default endpoint

Signed-off-by: Clay Rosenthal <clayros@amazon.com>
Copy link
Collaborator

@aylei aylei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! @clayrosenthal

@Michaelvll Michaelvll merged commit df587ea into skypilot-org:master Jul 29, 2025
15 checks passed
@clayrosenthal clayrosenthal deleted the add-ec2-env-var branch July 29, 2025 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants