Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform 3 #106

Merged
merged 2 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading