Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Environment VariableDescriptionSample Value
SCALR_IMAGE_IDCloud Image Identifierami-43935d2a
SCALR_EXTERNAL_IPExternal IP Address of the Server (only provided if the IP exists)107.108.109.110
SCALR_INTERNAL_IPInternal IP Address of the Server (only provided if the IP exists)10.11.12.13
SCALR_ROLE_NAME

Name of the Scalr Role this Server belongs to.

Warning

This is not the Farm Role Alias.

app-apache-ubuntu-ebs
SCALR_ISDBMASTERWhether this Instance is a Role Master (only provided).

1

SCALR_INSTANCE_INDEXIndex of this Instance within its Farm Role2
SCALR_INSTANCE_FARM_INDEXIndex of this instance within its Farm1
SCALR_SERVER_TYPEInstance typec3.large
SCALR_SERVER_HOSTNAME

The hostname for this Server

Tip

This Global Variable is best used in conjunction with a custom Hostname Format.

app-1.example.com
SCALR_SERVER_IDThe Server ID for this Server. This is an internal Scalr record key.0abb9535-9d1a-4dc4-a38c-7b7b26db7bb0
SCALR_FARM_IDThe Farm ID of the Farm this Server belongs to. This is an internal Scalr record key. 5334
SCALR_FARM_ROLE_IDThe Farm Role ID of the Farm Role this Server belongs to. This is an internal Scalr record key. 4

SCALR_FARM_ROLE_ALIAS

The Farm Role Alias of the Farm Role this Server belongs to.myrole
SCALR_FARM_NAMEThe Name of the Farm this Server belongs to.My App Production
SCALR_FARM_HASH

The Farm Hash of the Farm this Server belongs to. This is an internal Scalr record key.

cc55739bfdf844
SCALR_FARM_OWNER_EMAIL

The email address of the owner of the Farm this Server belongs to.

user@scalr.com
SCALR_BEHAVIORSA comma-separated list of the Scalr built-in automations that are active for this Server.apache,nginx
SCALR_ENV_IDThe ID of the Environment this Server belongs to. This is an internal Scalr record key.1
SCALR_ENV_NAMEThe Name of the Environment this Server belongs to. Staging
SCALR_CLOUD_LOCATIONThe Location where this Server is. This value is provided by your Cloud Platform.us-east-1
SCALR_CLOUD_SERVER_IDThe Cloud ID for this Server. This value is provided by your Cloud Platform.i-866f40a8
SCALR_CLOUD_LOCATION_ZONEA more precise location for this Server, if available. This value is provided by your Cloud Platform.us-east-1a
SCALR_CLOUD_PLATFORMA description of the Cloud Platform.  Available in Scalr  >=7.5.2.openstack, ec2, etc
SCALR_ACCOUNT_IDThe Scalr Account ID.  This is an internal Scalr record key. Available in Scalr  >=7.5.2.1, 5, etc
SCALR_ACCOUNT_NAMEThe Scalr Account Name.  This is an internal Scalr record key. Available in Scalr  >=7.5.2.Account1, Oil and Gas, Healthcare, etc.
SCALR_INSTANCE_ID

Equivalent to SCALR_CLOUD_SERVER_ID.

Warning
This Global Variable is a legacy AWS specific variable.


i-866f40a8
SCALR_AMI_ID

Equivalent to SCALR_IMAGE_ID. 

Warning
This Global Variable is a legacy AWS specific variable.


ami-43935d2a
SCALR_REGION

Equivalent to SCALR_CLOUD_LOCATION.

Warning
This Global Variable is a legacy AWS specific variable.


us-east-1
SCALR_AVAIL_ZONE

Equivalent to SCALR_CLOUD_LOCATION_ZONE.

Warning
This Global Variable is a legacy AWS specific variable.


us-east-1a

...