-
Notifications
You must be signed in to change notification settings - Fork 1
feat: TT-509 Use terraform to provision ui infraestructure #819
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
Merged
Merged
Changes from 12 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
62d569b
feat: TT-509 Use terraform to provision ui infraestructure
jatobrun 72cf8f7
feat: TT-580 Missing placeholders (#820)
alejandra-ponce a458f98
chore(release): 1.66.0 [skip ci]nn
semantic-release-bot bf8977e
TT-xx: Fix make publish tasks (#822)
faustocv 3fe4e5e
fix: TT-509 expose port 8080 in docker images
jatobrun 6cc64e6
fix: TT-509 change app to port 80
jatobrun 4ee7c37
feat: TT-578 improve the style of the form element (#823)
iHackN3WTON 482bfb1
chore(release): 1.67.0 [skip ci]nn
semantic-release-bot 3e614fd
TT-582 Improve the summary section of the time-clock page and the clo…
LuisMS7 483cf6a
fix: TT-509 including empty line in all files
jatobrun a4b8426
fix: TT-509 Change the dockerfile to use root user and not app user
jatobrun 429c008
feat: TT-576 Improve grids visual presentation and function (#826)
iHackN3WTON 24d7f40
chore(release): 1.68.0 [skip ci]nn
semantic-release-bot 3bee7e3
feat: TT-577 get profile pic from Google account (#825)
kjduy 4c48be4
chore(release): 1.69.0 [skip ci]nn
semantic-release-bot 98d092c
Revert "feat: TT-577 get profile pic from Google account (#825)" (#829)
alejandra-ponce 454b7f9
chore(release): 1.69.1 [skip ci]nn
semantic-release-bot ac17c44
style: TT-579 Buttons and searchbar adjusted to the app style (#827)
MarcoAguirre 0b48625
fix: TT-590 unable to pass ci test (#831)
alejandra-ponce da50b7a
chore(release): 1.69.2 [skip ci]nn
semantic-release-bot 82e6dea
Tt 582 improve the summary section of the time clock page QA (#830)
codigodehoy 97b6435
fix: TT-509 pr comments
jatobrun 8993fbc
fix: TT-509 using remote state to load variables
jatobrun 9c33cee
Update variables.tf
jatobrun 33096b5
delete prefix docker
jatobrun 37e64ee
delete prefix docker in locals block
jatobrun e0dc5f7
fix: Update the values of the terraform state output
jatobrun df9071c
fix: resolve package-lock conflicts
FreddyJR1995 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,3 +55,6 @@ Thumbs.db | |
|
|
||
| #ENV VARIABLES | ||
| .env | ||
|
|
||
| # Terraform files | ||
| **/.terraform** | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| terraform { | ||
| required_version = "~> 1.1.2" | ||
| required_providers { | ||
| azurerm = { | ||
| source = "hashicorp/azurerm" | ||
| version = "~> 2.90" | ||
| } | ||
| } | ||
|
|
||
| backend "azurerm" { | ||
| resource_group_name = "ioet-infra-tf-state" | ||
| storage_account_name = "timetrackertfstate" | ||
| container_name = "time-tracker-tf-state" | ||
| key = "time-tracker-ui.tfstate" | ||
| } | ||
|
|
||
| } | ||
|
|
||
| provider "azurerm" { | ||
| features {} | ||
| skip_provider_registration = true | ||
| } | ||
|
|
||
| data "terraform_remote_state" "service" { | ||
| backend = "azurerm" | ||
| workspace = terraform.workspace | ||
| config = { | ||
| resource_group_name = "ioet-infra-tf-state" | ||
| storage_account_name = "timetrackertfstate" | ||
| container_name = "time-tracker-tf-state" | ||
| key = "this.tfstate" | ||
| } | ||
| } | ||
|
|
||
| locals { | ||
| common_name = "time-tracker-ui" | ||
| environment = terraform.workspace | ||
| service_name = "${local.common_name}-${local.environment}" | ||
| create_app_service_plan = true | ||
| service_plan_kind = "Linux" | ||
| image_name = "timetracker_ui" | ||
| } | ||
|
|
||
| module "ui" { | ||
faustocv marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| source = "[email protected]:ioet/infra-terraform-modules.git//azure-app-service?ref=tags/v0.0.5" | ||
| app_service_name = local.service_name | ||
| create_app_service_plan = local.create_app_service_plan | ||
| docker_image_name = "${local.image_name}:${var.image_tag}" | ||
| docker_image_namespace = data.terraform_remote_state.service.outputs.container_registry_login_server | ||
| docker_registry_password = data.terraform_remote_state.service.outputs.container_registry_admin_password | ||
| docker_registry_url = data.terraform_remote_state.service.outputs.container_registry_login_server | ||
| docker_registry_username = data.terraform_remote_state.service.outputs.container_registry_admin_username | ||
| location = data.terraform_remote_state.service.outputs.container_registry_location | ||
| resource_group_name = data.terraform_remote_state.service.outputs.resource_group_name | ||
| service_plan_kind = local.service_plan_kind | ||
| service_plan_name = local.service_name | ||
| service_plan_size = var.service_plan_size | ||
| service_plan_tier = var.service_plan_tier | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| service_plan_size = "S1" | ||
| service_plan_tier = "Standard" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| service_plan_size = "S1" | ||
| service_plan_tier = "Standard" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| variable "image_tag" { | ||
| type = string | ||
| description = "Specifies the docker image tag that is stored in a private container registry like ACR (Azure Container Registry)." | ||
| sensitive = true | ||
| } | ||
|
|
||
| variable "service_plan_size" { | ||
| default = "S1" | ||
| type = string | ||
| description = "Specifies the size of the service plan. This variable format is: Tier (letter) + Size (number). Size could be: 1 = Small (1 Core 1.75GB RAM), 2 = Medium (2 Core 3.5 GB RAM), 3 = Large (4 Core 7GB RAM)" | ||
| } | ||
|
|
||
| variable "service_plan_tier" { | ||
| default = "Standard" | ||
| type = string | ||
| description = "Specifies the tier of the service plan. Tier is the pricing plan of the service plan resource." | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.