Forum Discussion

waribeiro's avatar
waribeiro
Equinix Employee
2 years ago

Did you know about the Metal CLI command 'eval $(metal env)' ?

Hide that $METAL_AUTH_TOKEN environment variable!

Using the Metal CLI, if you shell metal env then it returns the environment variables back to you in plain text. Normally that's fine, but what if you're recording a video or giving an expo presentation? How would you submit your auth tokens in the background so that Terraform could see it, but your viewers couldn't?

eval $(metal env)

With this command, your API token can stay hidden. Normally, you would put the API Key in the terraform.tfvars. But always remember - don't check your API Key into your Github repo!

This is such useful command. Here's a video @ 41:09 that shows it in action, hosted by cprivitere and ocobles and stevemar 

No RepliesBe the first to reply

Featured Places

  • Node avatar for Discussions

    Discussions

    Engage with industry experts, share insights, ask questions, and grow your network.
  • Node avatar for Ideas

    Ideas

    We're listening! Submit your ideas to shape the future of Equinix!
  • Node avatar for Groups

    Groups

    Ready to collaborate? Join a Group or upcoming beta program.
  • Node avatar for What's New

    What's New

    Stay ahead with the latest from Equinix. Discover new product announcements, insightful tutorials, and practical use cases.
  • Node avatar for Events

    Events

    Your Guide to Upcoming Events - Online, Hybrid, and In-Person!