|
2 | 2 | # export AWS_ACCESS_KEY_ID= |
3 | 3 | # export AWS_SECRET_ACCESS_KEY= |
4 | 4 | # export AWS_REGION=us-east-2 |
| 5 | +## This random value is needed for AWS only to prevent |
| 6 | +## https://github.com/hashicorp/terraform-provider-aws/issues/19583 which |
| 7 | +## happens when using dynamic "name" value in presence of more than one tag. |
| 8 | +# export TF_VAR_rand=${RANDOM} |
5 | 9 |
|
6 | 10 | ## Azure |
7 | 11 | # export TF_VAR_azure_location=eastus |
| 12 | +## Set the following only when authenticating using Service Principal (suited |
| 13 | +## for CI environment). |
| 14 | +# export ARM_CLIENT_ID= |
| 15 | +# export ARM_CLIENT_SECRET= |
| 16 | +# export ARM_SUBSCRIPTION_ID= |
| 17 | +# export ARM_TENANT_ID= |
8 | 18 |
|
9 | 19 | ## GCP |
10 | 20 | # export TF_VAR_gcp_project_id= |
11 | 21 | # export TF_VAR_gcp_region=us-central1 |
12 | 22 | # export TF_VAR_gcp_zone=us-central1-c |
13 | 23 | ## Leave GCR region empty to use gcr.io. Else set it to `us`, `eu` or `asia`. |
14 | 24 | # export TF_VAR_gcr_region= |
| 25 | +## Set the following only when using service account. |
| 26 | +## Provide absolute path to the service account JSON key file. |
| 27 | +# export GOOGLE_APPLICATION_CREDENTIALS= |
| 28 | + |
| 29 | +## Common variables |
| 30 | +# export TF_VAR_tags='{"environment"="dev"}' |
| 31 | +# |
| 32 | +## WARNING: For AWS, also set the "createdat" tag to overwrite the default |
| 33 | +## timestamp and use a static value. Dynamic tag value causes the issue |
| 34 | +## https://github.com/hashicorp/terraform-provider-aws/issues/19583. |
| 35 | +## The date format is based on the format defined in |
| 36 | +## fluxcd/test-infra/tf-modules/utils/tags tf-module that's compatible with the |
| 37 | +## tags/labels value in all the cloud providers. |
| 38 | +## Also, since "createdat" is a dynamic value, its value changes on subsequent |
| 39 | +## apply. Overriding it with a static value helps avoid modifying the resource |
| 40 | +## tags during development when the configurations are applied frequently. |
| 41 | +# export TF_VAR_tags='{"environment"="dev", "createdat"='"\"$(date -u +x%Y-%m-%d_%Hh%Mm%Ss)\""'}' |
0 commit comments