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
azurerm_app_service_plan.appserviceplan: Creating... | |
azurerm_app_service_plan.appserviceplan: Still creating... [10s elapsed] | |
azurerm_app_service_plan.appserviceplan: Creation complete after 16s | |
azurerm_app_service.webapp: Creating... | |
azurerm_app_service.webapp: Still creating... [10s elapsed] | |
azurerm_app_service.webapp: Still creating... [20s elapsed] | |
azurerm_app_service.webapp: Still creating... [30s elapsed] | |
azurerm_app_service.webapp: Still creating... [40s elapsed] | |
azurerm_app_service.webapp: Still creating... [50s elapsed] | |
azurerm_app_service.webapp: Creation complete after 56s |
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
Result #1 MEDIUM App service does not have authentication enabled. | |
──────────────────────────────────────────────────────────────────────────────── | |
main.tf Lines 21-27 | |
───────┬──────────────────────────────────────────────────────────────────────── | |
21 │ resource "azurerm_app_service" "webapp" { | |
22 │ name = var.website_name | |
23 │ location = data.azurerm_resource_group.rg.location | |
24 │ resource_group_name = data.azurerm_resource_group.rg.name | |
25 │ app_service_plan_id = azurerm_app_service_plan.appserviceplan.id | |
26 │ tags = var.tags |
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
An execution plan has been generated and is shown below. | |
Resource actions are indicated with the following symbols: | |
+ create | |
Terraform will perform the following actions: | |
# azurerm_app_service.webapp will be created | |
+ resource "azurerm_app_service" "webapp" { | |
+ app_service_plan_id = (known after apply) | |
+ app_settings = (known after apply) |
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
Initializing the backend... | |
Initializing provider plugins... | |
- Finding hashicorp/azurerm versions matching "~> 2.65"... | |
- Installing hashicorp/azurerm v2.98.0... | |
- Installed hashicorp/azurerm v2.98.0 (self-signed, key ID 34365D9472D7468F) | |
Partner and community providers are signed by their developers. | |
If you'd like to know more about provider signing, you can read about it here: | |
https://www.terraform.io/docs/cli/plugins/signing.html |
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
output "url_website" { | |
value = "${azurerm_app_service.webapp.name}.azurewebsites.net" | |
} |
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
rgname = "Terraform-Using-CI-CD" | |
website_name = "chtourouyoussefblog" | |
plan_name = "chtourouplan" | |
kind_type = "Linux" | |
reserved = true |
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
variable "rgname" { | |
type = string | |
} | |
variable "website_name" { | |
type = string | |
} | |
variable "plan_name" { | |
type = string | |
} | |
variable "kind_type" { |
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
# Configure the Azure provider | |
terraform { | |
required_providers { | |
azurerm = { | |
source = "hashicorp/azurerm" | |
version = "~> 2.65" | |
} | |
} | |
required_version = ">= 0.14.7" | |
} |
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
# Create the resource group | |
data "azurerm_resource_group" "rg" { | |
name = var.rgname | |
} | |
# Create the Linux App Service Plan | |
resource "azurerm_app_service_plan" "appserviceplan" { | |
lifecycle { | |
create_before_destroy = true | |
} | |
name = var.plan_name |