-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor and add private and public subnet. Add NAT condition * Add rds module, improve vpc and sg name in instances modules * Types of variables changes
- Loading branch information
1 parent
1dbd5d6
commit c80957d
Showing
31 changed files
with
871 additions
and
152 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Local .terraform directories | ||
**/.terraform/* | ||
|
||
# .tfstate files | ||
*.tfstate | ||
*.tfstate.* | ||
|
||
# Crash log files | ||
crash.log | ||
crash.*.log | ||
|
||
# Exclude all .tfvars files, which are likely to contain sensitive 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 | ||
*.tfvars.json | ||
|
||
# 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 override files you do wish to add to version control using negated pattern | ||
# !example_override.tf | ||
|
||
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan | ||
# example: *tfplan* | ||
|
||
# Ignore CLI configuration files | ||
.terraformrc | ||
terraform.rc |
This file contains 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 file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
output "storage_id" { | ||
description = "Storege ID" | ||
value = aws_ebs_volume.this.id | ||
description = "Storege ID" | ||
value = aws_ebs_volume.this.id | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,42 @@ | ||
variable "azs" { | ||
description = "Availability Zones list" | ||
default = "" | ||
description = "Availability Zones list" | ||
type = string | ||
} | ||
|
||
variable "env" { | ||
description = "Name of env" | ||
type = string | ||
} | ||
|
||
variable "project_name" { | ||
description = "Name of project" | ||
type = string | ||
validation { | ||
condition = length(var.project_name) > 3 | ||
error_message = "The project_name value must be set and more than 3 symbols." | ||
} | ||
} | ||
|
||
variable "instance_name" { | ||
description = "Name of project" | ||
type = string | ||
} | ||
|
||
variable "type" { | ||
description = "Type of storage" | ||
description = "Type of storage" | ||
} | ||
|
||
variable "size" { | ||
description = "Storage size" | ||
description = "Storage size" | ||
type = string | ||
} | ||
|
||
variable "proj_name" { | ||
description = "Name of project" | ||
variable "instance_id" { | ||
description = "Instance id for attach volume" | ||
type = string | ||
default = "" | ||
} | ||
|
||
variable "common_tags" { | ||
description = "Common tags to apply resourses" | ||
type = map(any) | ||
default = { | ||
Name = "" | ||
Project = "" | ||
Environment = "" | ||
} | ||
} | ||
variable "device_path" { | ||
description = "Device path" | ||
type = string | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains 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 file contains 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 file contains 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 file contains 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 file was deleted.
Oops, something went wrong.
This file contains 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 file contains 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
Oops, something went wrong.