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
| terraform { | |
| required_version = ">= 1.10.0" | |
| required_providers { | |
| azurerm = { | |
| source = "hashicorp/azurerm" | |
| version = ">= 3.71, < 5.0.0" | |
| } | |
| random = { | |
| source = "hashicorp/random" | |
| version = ">= 3.5.1, < 4.0.0" |
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
| [ | |
| "11111111-1111-1111-1111-111111111111", | |
| "22222222-2222-2222-2222-222222222222", | |
| "33333333-3333-3333-3333-333333333333" | |
| ] |
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
| ["12345678-aaaa-bbbb-cccc-1234567890ab"] |
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
| location = "yourazurelocation" | |
| account_replication_type = "LRSorZRS" | |
| container_name = "containername" | |
| sftp_local_user = "username" | |
| tag_environment = "environmentname" | |
| tag_project = "projectname" | |
| tag_creator = "creatorname” | |
| azure_subscription_id = "azuresubscriptionid" |
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
| git clone https://github.com/weeyin83/sftp-azure-terraform.git | |
| cd sftp-azure-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 ensures we have unique CAF compliant names for our resources. | |
| module "naming" { | |
| source = "Azure/naming/azurerm" | |
| version = "0.3.0" | |
| } | |
| locals { | |
| azure_regions = [ | |
| "ukwest", | |
| "westeurope", |
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
| ## | |
| # Variables | |
| ## | |
| ## | |
| # Common Variables | |
| ## | |
| variable "tag_environment" { | |
| type = string | |
| default = "Testing" |
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
| ## | |
| # Terraform Configuration | |
| ## | |
| terraform { | |
| required_version = ">= 1.10.0" | |
| required_providers { | |
| azurerm = { | |
| source = "hashicorp/azurerm" | |
| version = ">= 3.71, < 5.0.0" |
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
| terraform plan -var-file="dev.tfvars" | |
| terraform apply -var-file="dev.tfvars" |
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
| Resource_group_name = "techielass-demo-rg" | |
| Location = "France Central" | |
| Environment = "Blog" | |
| Owner = "Sarah" |
NewerOlder