{"id":19886012,"url":"https://github.com/rishabkumar7/terraform-reactor-session","last_synced_at":"2026-03-06T10:01:58.629Z","repository":{"id":107843594,"uuid":"456759286","full_name":"rishabkumar7/terraform-reactor-session","owner":"rishabkumar7","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-08T03:05:54.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-01T03:48:03.309Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rishabkumar7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-08T02:50:31.000Z","updated_at":"2022-02-09T17:39:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"e6ba6c62-cc3a-45a7-9080-e894bb15c575","html_url":"https://github.com/rishabkumar7/terraform-reactor-session","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rishabkumar7/terraform-reactor-session","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Fterraform-reactor-session","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Fterraform-reactor-session/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Fterraform-reactor-session/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Fterraform-reactor-session/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rishabkumar7","download_url":"https://codeload.github.com/rishabkumar7/terraform-reactor-session/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishabkumar7%2Fterraform-reactor-session/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30171656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T17:36:01.678Z","updated_at":"2026-03-06T10:01:58.590Z","avatar_url":"https://github.com/rishabkumar7.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Reactor Session\r\n\r\nSimple static site deployed to azure storage with Terraform.\r\n\r\n## What is Terraform?\r\n\r\nHashiCorp Terraform is an infrastructure as code tool that lets you define both cloud and on-prem resources in human-readable configuration files that you can version, reuse, and share.\r\n\r\n## Azure Provider in Terraform\r\n\r\nThe Azure Provider can be used to configure infrastructure in Microsoft Azure using the Azure Resource Manager API's. Read more about the provider [here.](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs)\r\n\r\n## Deploying a Static Website\r\n\r\nHere is the main terraform file in which we define the provider first and then the resource group called `terraform-reactor`. We are creating a storage account with the static website and finally, we are adding the index.html content to the blob storage.\r\n\r\n``` hcl\r\nprovider \"azurerm\" {\r\n  features {}\r\n}\r\n\r\nresource \"azurerm_resource_group\" \"resource_group\" {\r\n  name     = \"terraform-reactor\"\r\n  location = \"eastus\"\r\n}\r\n\r\nresource \"azurerm_storage_account\" \"storage_account\" {\r\n  name                = \"storagefortfdemo0076\"\r\n  resource_group_name = azurerm_resource_group.resource_group.name\r\n  location            = azurerm_resource_group.resource_group.location\r\n\r\n  account_tier              = \"Standard\"\r\n  account_replication_type  = \"LRS\"\r\n  account_kind              = \"StorageV2\"\r\n  enable_https_traffic_only = true\r\n  allow_blob_public_access  = true\r\n\r\n  static_website {\r\n    index_document = \"index.html\"\r\n  }\r\n}\r\n\r\nresource \"azurerm_storage_blob\" \"example\" {\r\n  name                   = \"index.html\"\r\n  storage_account_name   = azurerm_storage_account.storage_account.name\r\n  storage_container_name = \"$web\"\r\n  type                   = \"Block\"\r\n  content_type           = \"text/html\"\r\n  source_content         = \"\u003ch1\u003eHola!\u003c/h1\u003e\"\r\n}\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishabkumar7%2Fterraform-reactor-session","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frishabkumar7%2Fterraform-reactor-session","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishabkumar7%2Fterraform-reactor-session/lists"}