├── 1-Create EC2 └── ec2.tf ├── 10-Local Variables ├── main.tf ├── provider.tf └── variables.tf ├── 11-Terraform Functions & Outputs └── main.tf ├── 12-Data Sources └── main.tf ├── 13-S3 Backend & Dynamodb Lock ├── backend.tf ├── ec2.tf └── provider.tf ├── 14-Variables with foreach ├── ec2.tf ├── provider.tf └── variables.tf ├── 15-Debug └── data.txt ├── 16-Plan output └── data.txt ├── 17-Dynamic Blocks ├── before.tf └── dynamic.tf ├── 18-Tainting_resources ├── data.txt └── main.tf ├── 19-Splat ├── main.tf └── outputs.tf ├── 2-Using Profile └── ec2.tf ├── 20-Modules ├── .DS_Store ├── modules │ ├── ec2 │ │ ├── main.tf │ │ ├── output.tf │ │ └── variables.tf │ ├── s3 │ │ ├── main.tf │ │ ├── output.tf │ │ └── variables.tf │ └── vpc │ │ ├── main.tf │ │ ├── output.tf │ │ └── variable.tf ├── project-1 │ ├── backend.tf │ ├── main.tf │ ├── output.tf │ └── variables.tf └── project-2 │ ├── .DS_Store │ ├── backend.tf │ ├── output.tf │ ├── project2-ec2.tf │ ├── providers.tf │ ├── variables.tf │ └── variables │ ├── dev.tfvars │ ├── prod.tfvars │ └── test.tfvars ├── 21-Provisoners ├── data.txt ├── local │ └── local-exec.tf └── remote │ └── remote-exec.tf ├── 22-Multiple Providers └── main.tf ├── 3-Separate the blocks into files ├── ec2.tf └── provider.tf ├── 4-Variables with Default Values ├── ec2.tf ├── provider.tf └── variables.tf ├── 5-Variables with tfvars ├── ec2.tf ├── provider.tf ├── variables.tf └── variables │ └── values.tfvars ├── 6-Variables with multiple tfvars ├── ec2.tf ├── provider.tf ├── variables.tf ├── variables │ ├── dev.tfvars │ ├── prod.tfvars │ └── test.tfvars └── workspace.txt ├── 7-Variables Advanced ├── ec2.tf ├── provider.tf └── variables.tf ├── 8-Variables with Count ├── ec2.tf ├── provider.tf └── variables.tf └── 9-Conditional Expressions ├── main.tf └── provider.tf /1-Create EC2/ec2.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/1-Create EC2/ec2.tf -------------------------------------------------------------------------------- /10-Local Variables/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/10-Local Variables/main.tf -------------------------------------------------------------------------------- /10-Local Variables/provider.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/10-Local Variables/provider.tf -------------------------------------------------------------------------------- /10-Local Variables/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/10-Local Variables/variables.tf -------------------------------------------------------------------------------- /11-Terraform Functions & Outputs/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/11-Terraform Functions & Outputs/main.tf -------------------------------------------------------------------------------- /12-Data Sources/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/12-Data Sources/main.tf -------------------------------------------------------------------------------- /13-S3 Backend & Dynamodb Lock/backend.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/13-S3 Backend & Dynamodb Lock/backend.tf -------------------------------------------------------------------------------- /13-S3 Backend & Dynamodb Lock/ec2.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/13-S3 Backend & Dynamodb Lock/ec2.tf -------------------------------------------------------------------------------- /13-S3 Backend & Dynamodb Lock/provider.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/13-S3 Backend & Dynamodb Lock/provider.tf -------------------------------------------------------------------------------- /14-Variables with foreach/ec2.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/14-Variables with foreach/ec2.tf -------------------------------------------------------------------------------- /14-Variables with foreach/provider.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/14-Variables with foreach/provider.tf -------------------------------------------------------------------------------- /14-Variables with foreach/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/14-Variables with foreach/variables.tf -------------------------------------------------------------------------------- /15-Debug/data.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/15-Debug/data.txt -------------------------------------------------------------------------------- /16-Plan output/data.txt: -------------------------------------------------------------------------------- 1 | terraform plan -out=path 2 | -------------------------------------------------------------------------------- /17-Dynamic Blocks/before.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/17-Dynamic Blocks/before.tf -------------------------------------------------------------------------------- /17-Dynamic Blocks/dynamic.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/17-Dynamic Blocks/dynamic.tf -------------------------------------------------------------------------------- /18-Tainting_resources/data.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/18-Tainting_resources/data.txt -------------------------------------------------------------------------------- /18-Tainting_resources/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/18-Tainting_resources/main.tf -------------------------------------------------------------------------------- /19-Splat/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/19-Splat/main.tf -------------------------------------------------------------------------------- /19-Splat/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/19-Splat/outputs.tf -------------------------------------------------------------------------------- /2-Using Profile/ec2.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/2-Using Profile/ec2.tf -------------------------------------------------------------------------------- /20-Modules/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/20-Modules/.DS_Store -------------------------------------------------------------------------------- /20-Modules/modules/ec2/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/20-Modules/modules/ec2/main.tf -------------------------------------------------------------------------------- /20-Modules/modules/ec2/output.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/20-Modules/modules/ec2/output.tf -------------------------------------------------------------------------------- /20-Modules/modules/ec2/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/20-Modules/modules/ec2/variables.tf -------------------------------------------------------------------------------- /20-Modules/modules/s3/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/20-Modules/modules/s3/main.tf -------------------------------------------------------------------------------- /20-Modules/modules/s3/output.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/20-Modules/modules/s3/output.tf -------------------------------------------------------------------------------- /20-Modules/modules/s3/variables.tf: -------------------------------------------------------------------------------- 1 | variable "bucket_name" {} -------------------------------------------------------------------------------- /20-Modules/modules/vpc/main.tf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /20-Modules/modules/vpc/output.tf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /20-Modules/modules/vpc/variable.tf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /20-Modules/project-1/backend.tf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /20-Modules/project-1/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/20-Modules/project-1/main.tf -------------------------------------------------------------------------------- /20-Modules/project-1/output.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/20-Modules/project-1/output.tf -------------------------------------------------------------------------------- /20-Modules/project-1/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/20-Modules/project-1/variables.tf -------------------------------------------------------------------------------- /20-Modules/project-2/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/20-Modules/project-2/.DS_Store -------------------------------------------------------------------------------- /20-Modules/project-2/backend.tf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /20-Modules/project-2/output.tf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /20-Modules/project-2/project2-ec2.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/20-Modules/project-2/project2-ec2.tf -------------------------------------------------------------------------------- /20-Modules/project-2/providers.tf: -------------------------------------------------------------------------------- 1 | provider "aws" { 2 | region = "us-west-2" 3 | 4 | } -------------------------------------------------------------------------------- /20-Modules/project-2/variables.tf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /20-Modules/project-2/variables/dev.tfvars: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/20-Modules/project-2/variables/dev.tfvars -------------------------------------------------------------------------------- /20-Modules/project-2/variables/prod.tfvars: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /20-Modules/project-2/variables/test.tfvars: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /21-Provisoners/data.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/21-Provisoners/data.txt -------------------------------------------------------------------------------- /21-Provisoners/local/local-exec.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/21-Provisoners/local/local-exec.tf -------------------------------------------------------------------------------- /21-Provisoners/remote/remote-exec.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/21-Provisoners/remote/remote-exec.tf -------------------------------------------------------------------------------- /22-Multiple Providers/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/22-Multiple Providers/main.tf -------------------------------------------------------------------------------- /3-Separate the blocks into files/ec2.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/3-Separate the blocks into files/ec2.tf -------------------------------------------------------------------------------- /3-Separate the blocks into files/provider.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/3-Separate the blocks into files/provider.tf -------------------------------------------------------------------------------- /4-Variables with Default Values/ec2.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/4-Variables with Default Values/ec2.tf -------------------------------------------------------------------------------- /4-Variables with Default Values/provider.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/4-Variables with Default Values/provider.tf -------------------------------------------------------------------------------- /4-Variables with Default Values/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/4-Variables with Default Values/variables.tf -------------------------------------------------------------------------------- /5-Variables with tfvars/ec2.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/5-Variables with tfvars/ec2.tf -------------------------------------------------------------------------------- /5-Variables with tfvars/provider.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/5-Variables with tfvars/provider.tf -------------------------------------------------------------------------------- /5-Variables with tfvars/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/5-Variables with tfvars/variables.tf -------------------------------------------------------------------------------- /5-Variables with tfvars/variables/values.tfvars: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/5-Variables with tfvars/variables/values.tfvars -------------------------------------------------------------------------------- /6-Variables with multiple tfvars/ec2.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/6-Variables with multiple tfvars/ec2.tf -------------------------------------------------------------------------------- /6-Variables with multiple tfvars/provider.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/6-Variables with multiple tfvars/provider.tf -------------------------------------------------------------------------------- /6-Variables with multiple tfvars/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/6-Variables with multiple tfvars/variables.tf -------------------------------------------------------------------------------- /6-Variables with multiple tfvars/variables/dev.tfvars: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/6-Variables with multiple tfvars/variables/dev.tfvars -------------------------------------------------------------------------------- /6-Variables with multiple tfvars/variables/prod.tfvars: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/6-Variables with multiple tfvars/variables/prod.tfvars -------------------------------------------------------------------------------- /6-Variables with multiple tfvars/variables/test.tfvars: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/6-Variables with multiple tfvars/variables/test.tfvars -------------------------------------------------------------------------------- /6-Variables with multiple tfvars/workspace.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /7-Variables Advanced/ec2.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/7-Variables Advanced/ec2.tf -------------------------------------------------------------------------------- /7-Variables Advanced/provider.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/7-Variables Advanced/provider.tf -------------------------------------------------------------------------------- /7-Variables Advanced/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/7-Variables Advanced/variables.tf -------------------------------------------------------------------------------- /8-Variables with Count/ec2.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/8-Variables with Count/ec2.tf -------------------------------------------------------------------------------- /8-Variables with Count/provider.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/8-Variables with Count/provider.tf -------------------------------------------------------------------------------- /8-Variables with Count/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/8-Variables with Count/variables.tf -------------------------------------------------------------------------------- /9-Conditional Expressions/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/9-Conditional Expressions/main.tf -------------------------------------------------------------------------------- /9-Conditional Expressions/provider.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JJTechInc/Terraform/HEAD/9-Conditional Expressions/provider.tf --------------------------------------------------------------------------------