Skip to content

Commit

Permalink
feat: Create simple environment variable example
Browse files Browse the repository at this point in the history
This example shows a simple way to set static environment variables in
your environment.

Signed-off-by: Alex Hughes <[email protected]>
  • Loading branch information
Ahuge authored and ddneilson committed Jun 17, 2024
1 parent 70974cc commit f19bdb2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Please see the [CONTRIBUTING guide](../CONTRIBUTING.md) for additional informati
| ------ | --------------------- |
| [powershell-script](./v2023-09/environment_templates/powershell-script.yaml) | environment, calling embedded file with PowerShell |
| [python-venv](./v2023-09/environment_templates/python-venv.yaml) | environment, openjd_env, embedded file |
| [environment-variables](./v2023-09/environment_templates/environment-variables.yaml) | environment, variables section |

## License

Expand Down
25 changes: 25 additions & 0 deletions samples/v2023-09/environment_templates/environment-variables.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# ----
# Demonstrates
# ----
# Setting static environment variables using the `variables` section
# of your environment template.
#
# ----
# Requirements
# ----
#
# -----
# Contributors to this template:
# Alex Hughes (https://github.com/Ahuge)

specificationVersion: environment-2023-09
environment:
name: StaticEnvironmentVariables
description: >
Sets two static environment variables easily in the environment template.
variables:
ADSKFLEX_LICENSE_FILE: "@192.168.1.1"
foundry_LICENSE: "[email protected]"

0 comments on commit f19bdb2

Please sign in to comment.