Skip to content

Commit

Permalink
removing default application_environment (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
yzlucas authored Oct 1, 2024
1 parent 41b164b commit 3ab2f80
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 32 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/build-full-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,13 @@ jobs:
secrets: inherit
with:
PROJECT_NAME: wfprev-war
TAG: ${{inputs.TAG}}
TAG: latest
PROJECT_TYPE: client
terragrunt-deploy-dev:
uses: ./.github/workflows/terragrunt-deploy.yml
needs: [wfprev-ui]
with:
DEFAULT_APPLICATION_ENVIRONMENT: DEV
IMAGE_TAG: latest

secrets: inherit
38 changes: 19 additions & 19 deletions .github/workflows/terragrunt-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,35 @@ permissions:
packages: write

on:
workflow_dispatch:
workflow_call:
inputs:
DEFAULT_APPLICATION_ENVIRONMENT:
required: true
type: choice
type: string
options:
- dev
- test
- prod
IMAGE_TAG:
required: true
type: string
SCHEMA_NAME:
required: true
type: string
default: app_wf1_prev
CHANGELOG_NAME:
type: choice
options:
- none
- changelog_app_wf1_prev
- changelog_app_wf1_prev_proxy
TARGET_LIQUIBASE_TAG:
required: false
type: string
IS_HOTFIX:
required: true
type: string
default: 'false'
# SCHEMA_NAME:
# required: true
# type: string
# default: app_wf1_prev
# CHANGELOG_NAME:
# type: string
# options:
# - none
# - changelog_app_wf1_prev
# - changelog_app_wf1_prev_proxy
# TARGET_LIQUIBASE_TAG:
# required: false
# type: string
# IS_HOTFIX:
# required: true
# type: string
# default: 'false'

env:
TF_VERSION: 1.8.5
Expand Down
8 changes: 2 additions & 6 deletions terraform/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,9 @@ resource "aws_ecs_task_definition" "wfprev_server" {
name = "WEBADE_OAUTH2_CLIENT_ID"
value = var.WEBADE_OAUTH2_REST_CLIENT_ID
},
{
name = "WEBADE-OAUTH2_TOKEN_URL",
value = var.WEBADE-OAUTH2_TOKEN_URL
},
{
name = "DEFAULT_APPLICATION_ENVIRONMENT"
value = var.DEFAULT_APPLICATION_ENVIRONMENT
name = "WEBADE-OAUTH2_TOKEN_URL",
value = var.WEBADE-OAUTH2_TOKEN_URL
},
{
name = "WFPREV_DB_URL"
Expand Down
1 change: 0 additions & 1 deletion terraform/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ WFPREV_API_IMAGE = "${get_env("WFPREV_API_IMAGE")}"
WFPREV_API_CPU_UNITS = "${get_env("WFPREV_API_CPU_UNITS")}"
WFPREV_API_MEMORY = "${get_env("WFPREV_API_MEMORY")}"
WFPREV_API_PORT = "${get_env("WFPREV_API_PORT")}"
DEFAULT_APPLICATION_ENVIRONMENT = "${get_env("DEFAULT_APPLICATION_ENVIRONMENT")}"
TARGET_AWS_ACCOUNT_ID = "${get_env("TARGET_AWS_ACCOUNT_ID")}"
Expand Down
5 changes: 0 additions & 5 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,6 @@ variable "WEBADE-OAUTH2_TOKEN_URL" {
default = ""
}

variable "DEFAULT_APPLICATION_ENVIRONMENT" {
type = string
default = ""
}

variable "WFPREV_USERNAME" {
type = string
default = ""
Expand Down

0 comments on commit 3ab2f80

Please sign in to comment.