-
Notifications
You must be signed in to change notification settings - Fork 0
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
Integrate with Terraform #118
base: master
Are you sure you want to change the base?
Conversation
Azure Static Web Apps: Your stage site is ready! Visit it here: https://orange-island-0901fe000-118.eastasia.azurestaticapps.net |
1 similar comment
Azure Static Web Apps: Your stage site is ready! Visit it here: https://orange-island-0901fe000-118.eastasia.azurestaticapps.net |
d744beb
to
2699abb
Compare
Azure Static Web Apps: Your stage site is ready! Visit it here: https://orange-island-0901fe000-118.eastasia.azurestaticapps.net |
331ade3
to
d7fa9e3
Compare
49259a9
to
2e83a7a
Compare
dec3c1d
to
9256501
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
Will you be documenting down what are some of these files doing and how they are related to each other? For e.g. I see 2
.terraform.lock.hcl
but I'm not sure if they are required. -
Typically what's the project structure like? For e.g. I've seen projects whereby the parent directory is
tf
instead ofterraform
. I'm not too particular about it, though it'll be good if we can set it to a default name.
Overall, this looks clean! 👍 I think the next best thing we can do now is to start documenting how this entire thing works. For a newb like myself, reading the code seems like magic.
# Crash log files | ||
crash.log | ||
|
||
# Exclude all .tfvars files, which are likely to contain sentitive data, such as | ||
# password, private keys, and other secrets. These should not be part of version | ||
# control as they are data points which are potentially sensitive and subject | ||
# to change depending on the environment. | ||
# | ||
*.tfvars | ||
|
||
# Ignore override files as they are usually used to override resources locally and so | ||
# are not checked in | ||
override.tf | ||
override.tf.json | ||
*_override.tf | ||
*_override.tf.json | ||
|
||
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan | ||
*tfplan* | ||
|
||
# Ignore CLI configuration files | ||
.terraformrc | ||
terraform.rc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand you referenced this from an online source, but I'm wondering if it seems like there's some inconsistency in the comments e.g. some start with Ignore
, Exclude
and Include
.
resource_group_name = azurerm_resource_group.rg.name | ||
|
||
capabilities { | ||
name = "EnableServerless" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
incorrect indentation I think.
Also, could document down what IDE you use to work with Terraform files (VS Code with some plugin installed?)
@@ -0,0 +1,43 @@ | |||
# azurerm_cosmosdb_account.db: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this comment required?
# Only one free tier cosmosDB per subscription | ||
# enable_free_tier = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good comment
zone_redundant = false | ||
} | ||
|
||
timeouts {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are empty tags required, or can this entire line be removed?
resource "random_uuid" "test" { | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does the auto-indentation cause this statement to take up 2 lines? Just checking
default = "southeastasia" | ||
description = "Location of the resource group." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation of =
is off
@@ -0,0 +1,11 @@ | |||
variable "prefix" { | |||
default = "test" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation of =
looks weird
variable "prefix" { | ||
default = "test" | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
additional new line
# Shortnames for regions can be found here: | ||
# https://github.com/claranet/terraform-azurerm-regions/blob/master/REGIONS.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I notice this being repeated in the other variables.tf
file as well. I wonder if this should be documented in a centralised location instead.
I will write up a documenting a general guide on terraform as a README/Wiki for this. As for |
nice |
This pull request will only add terraform files required to create the resources. Integration with pipeline will be done in another phase.