Skip to content

Commit fcd2269

Browse files
committed
CI: create Azure storage account with Terraform
1 parent 0d9d80c commit fcd2269

File tree

3 files changed

+108
-0
lines changed

3 files changed

+108
-0
lines changed

ci/terraform/.gitignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# https://github.com/github/gitignore/blob/master/Terraform.gitignore
2+
3+
**/.terraform/*
4+
5+
# .tfstate files
6+
*.tfstate
7+
*.tfstate.*
8+
9+
# Crash log files
10+
crash.log
11+
12+
# Exclude all .tfvars files, which are likely to contain sentitive data, such as
13+
# password, private keys, and other secrets. These should not be part of version
14+
# control as they are data points which are potentially sensitive and subject
15+
# to change depending on the environment.
16+
#
17+
*.tfvars
18+
19+
# Ignore override files as they are usually used to override resources locally and so
20+
# are not checked in
21+
override.tf
22+
override.tf.json
23+
*_override.tf
24+
*_override.tf.json
25+
26+
# Include override files you do wish to add to version control using negated pattern
27+
#
28+
# !example_override.tf
29+
30+
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
31+
# example: *tfplan*
32+
33+
# Ignore CLI configuration files
34+
.terraformrc
35+
terraform.rc

ci/terraform/.terraform.lock.hcl

Lines changed: 53 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ci/terraform/main.tf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
provider "azurerm" {
2+
features {}
3+
}
4+
5+
resource "azurerm_resource_group" "site" {
6+
name = "pandas-site"
7+
location = "Central US"
8+
}
9+
10+
resource "azurerm_storage_account" "storeacc" {
11+
name = "pandaspr"
12+
resource_group_name = azurerm_resource_group.site.name
13+
location = azurerm_resource_group.site.location
14+
account_tier = "Standard"
15+
account_replication_type = "ZRS"
16+
17+
static_website {
18+
index_document = "index.html"
19+
}
20+
}

0 commit comments

Comments
 (0)