Skip to content

Commit

Permalink
fix: environment env var
Browse files Browse the repository at this point in the history
  • Loading branch information
vmttn committed Sep 13, 2023
1 parent 14f41aa commit 32f46d7
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
TF_VAR_scaleway_access_key: ${{ secrets.SCALEWAY_ACCESS_KEY }}
TF_VAR_scaleway_project_id: ${{ vars.SCALEWAY_PROJECT_ID }}
TF_VAR_scaleway_secret_key: ${{ secrets.SCALEWAY_SECRET_KEY }}
TF_VAR_environment_name: ${{ vars.ENVIRONMENT_NAME }}
TF_VAR_environment: ${{ vars.ENVIRONMENT }}
TF_VAR_airflow_admin_password: ${{ secrets.AIRFLOW_ADMIN_PASSWORD }}
ENV: ${{ vars.ENVIRONMENT_NAME }}
ENV: ${{ vars.ENVIRONMENT }}
volumes:
- .:/deployment
options: --workdir /deployment
Expand Down
2 changes: 1 addition & 1 deletion deployment/environments/staging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ No resources.
| <a name="input_datawarehouse_di_database"></a> [datawarehouse\_di\_database](#input\_datawarehouse\_di\_database) | Identifier for the data inclusion database | `string` | n/a | yes |
| <a name="input_datawarehouse_di_password"></a> [datawarehouse\_di\_password](#input\_datawarehouse\_di\_password) | Password for the main user of the postgres datawarehouse | `string` | n/a | yes |
| <a name="input_datawarehouse_di_username"></a> [datawarehouse\_di\_username](#input\_datawarehouse\_di\_username) | Identifier for the main user of the postgres datawarehouse | `string` | n/a | yes |
| <a name="input_environment_name"></a> [environment\_name](#input\_environment\_name) | Identifier of the target environment | `string` | n/a | yes |
| <a name="input_environment"></a> [environment](#input\_environment) | Identifier of the target environment | `string` | n/a | yes |
| <a name="input_scaleway_access_key"></a> [scaleway\_access\_key](#input\_scaleway\_access\_key) | Scaleway access key (https://console.scaleway.com/iam/api-keys) | `string` | n/a | yes |
| <a name="input_scaleway_project_id"></a> [scaleway\_project\_id](#input\_scaleway\_project\_id) | Scaleway project id (https://console.scaleway.com/project/settings) | `string` | n/a | yes |
| <a name="input_scaleway_secret_key"></a> [scaleway\_secret\_key](#input\_scaleway\_secret\_key) | Scaleway secret key (https://console.scaleway.com/iam/api-keys) | `string` | n/a | yes |
Expand Down
4 changes: 2 additions & 2 deletions deployment/environments/staging/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ variable "datawarehouse_di_database" {
type = string
}

variable "environment_name" {
variable "environment" {
description = "Identifier of the target environment"
type = string
}
Expand Down Expand Up @@ -81,7 +81,7 @@ module "stack_data" {
datawarehouse_di_username = var.datawarehouse_di_username
datawarehouse_di_password = var.datawarehouse_di_password
datawarehouse_di_database = var.datawarehouse_di_database
environment_name = var.environment_name
environment = var.environment
airflow_admin_password = var.airflow_admin_password
api_secret_key = var.api_secret_key
api_version = var.api_version
Expand Down
2 changes: 1 addition & 1 deletion deployment/modules/stack_data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ No modules.
| <a name="input_datawarehouse_di_database"></a> [datawarehouse\_di\_database](#input\_datawarehouse\_di\_database) | Identifier for the data inclusion database | `string` | n/a | yes |
| <a name="input_datawarehouse_di_password"></a> [datawarehouse\_di\_password](#input\_datawarehouse\_di\_password) | Password for the main user of the postgres datawarehouse | `string` | n/a | yes |
| <a name="input_datawarehouse_di_username"></a> [datawarehouse\_di\_username](#input\_datawarehouse\_di\_username) | Identifier for the main user of the postgres datawarehouse | `string` | n/a | yes |
| <a name="input_environment_name"></a> [environment\_name](#input\_environment\_name) | Identifier of the target environment | `string` | n/a | yes |
| <a name="input_environment"></a> [environment](#input\_environment) | Identifier of the target environment | `string` | n/a | yes |
| <a name="input_scaleway_access_key"></a> [scaleway\_access\_key](#input\_scaleway\_access\_key) | Scaleway access key (https://console.scaleway.com/iam/api-keys) | `string` | n/a | yes |
| <a name="input_scaleway_project_id"></a> [scaleway\_project\_id](#input\_scaleway\_project\_id) | Scaleway project id (https://console.scaleway.com/project/settings) | `string` | n/a | yes |
| <a name="input_scaleway_secret_key"></a> [scaleway\_secret\_key](#input\_scaleway\_secret\_key) | Scaleway secret key (https://console.scaleway.com/iam/api-keys) | `string` | n/a | yes |
Expand Down
4 changes: 2 additions & 2 deletions deployment/modules/stack_data/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ resource "scaleway_instance_server" "main" {
# }

resource "scaleway_object_bucket" "main" {
name = "data-inclusion-datalake-${var.environment_name}"
name = "data-inclusion-datalake-${var.environment}"
}

resource "scaleway_iam_application" "main" {
organization_id = data.scaleway_account_project.main.organization_id
name = "${var.environment_name}--airflow--tf"
name = "${var.environment}--airflow--tf"
}

data "scaleway_account_project" "main" {
Expand Down
2 changes: 1 addition & 1 deletion deployment/modules/stack_data/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ variable "datawarehouse_di_database" {
type = string
}

variable "environment_name" {
variable "environment" {
description = "Identifier of the target environment"
type = string
}
Expand Down

0 comments on commit 32f46d7

Please sign in to comment.