23 lines
751 B
Bash
Executable file
23 lines
751 B
Bash
Executable file
#!/bin/bash
|
|
# Example: Using environment variables for token authentication
|
|
#
|
|
# This script demonstrates how to set environment variables for
|
|
# token-based authentication with the Edge Connect provider.
|
|
|
|
# Set the API endpoint
|
|
export EDGE_CONNECT_ENDPOINT="https://api.edge-connect.example.com"
|
|
|
|
# Set the API token
|
|
export EDGE_CONNECT_TOKEN="your-api-token-here"
|
|
|
|
# Now you can run Terraform commands without passing credentials
|
|
echo "Environment variables set. You can now run:"
|
|
echo " terraform init"
|
|
echo " terraform plan"
|
|
echo " terraform apply"
|
|
|
|
# Example: Run terraform plan
|
|
# terraform plan
|
|
|
|
# Note: You can also set these in your shell profile (~/.bashrc, ~/.zshrc)
|
|
# or use a tool like direnv for directory-specific environment variables
|