1. Arpio Documentation
  2. Reference Guides
  3. Arpio Configuration Tag Reference

arpio-config:environment:

Set or override environment variables inside recovered resources

arpio-config:environment:<env-var> = <value>

<env-var>

The name of an environment variable to set in the resource's configuration when the resource is recovered. This part can contain any characters that are valid in tag keys for the tagged resource, including the colon character.

<value>

The value to use for <env-var> when the resource is recovered.

Supported Resources

  • Lambda Functions
  • ECS Task Definitions

Description

You can use the arpio-config:environment: configuration tag to set or override environment variables inside recovered resources that contain environment variables. If <env-var> is the name of an environment variable that is present in the environment in the primary environment, <value> will be used in the recovery environment instead of its original value. If <env-var> is not set in the primary environment, it will be added to the environment variables in the recovery environment.

This tag can be used to replace environment-specific values such as S3 bucket names or paths to configuration files with values appropriate for the recovery region.

Examples

Tag Value
arpio-config:environment:DEPARTMENT
marketing
arpio-config:environment:ansible:role
db
arpio-config:environment:app-config-bucket
mycompany-app-config-dr
arpio-config:environment:protected
none