Skip to content

Commit 6b3a841

Browse files
committed
Welcome to StackSimplify by Kalyan Reddy Daida
1 parent f6837f5 commit 6b3a841

File tree

3,294 files changed

+99362
-750
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,294 files changed

+99362
-750
lines changed

02-Terraform-Basics/02-02-Terraform-Command-Basics/terraform-manifests/ec2-instance.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ terraform {
33
required_providers {
44
aws = {
55
source = "hashicorp/aws"
6-
#version = "~> 3.21" # Optional but recommended in production
6+
#version = "~> 4.65" # Optional but recommended in production
77
}
88
}
99
}

02-Terraform-Basics/02-03-Terraform-Language-Syntax/terraform-manifests/top-level-blocks-samples.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#####################################################################
22
# Block-1: Terraform Settings Block
33
terraform {
4-
required_version = "~> 0.14"
4+
required_version = ">= 1.0.0"
55
required_providers {
66
aws = {
77
source = "hashicorp/aws"
8-
version = "~> 3.0"
8+
version = ">= 4.65"
99
}
1010
}
1111
# Adding Backend as S3 for Remote State Storage with State Locking

03-Terraform-Settings-Providers-Resources/terraform-manifests/c1-versions.tf

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Terraform Block
22
terraform {
3-
required_version = "~> 0.14" # which means any version equal & above 0.14 like 0.15, 0.16 etc and < 1.xx
3+
#required_version = "~> 0.14" # which means any version equal & above 0.14 like 0.15, 0.16 etc and < 1.xx
4+
required_version = ">= 1.0.0"
45
required_providers {
56
aws = {
67
source = "hashicorp/aws"
7-
version = "~> 3.0"
8+
#version = ">= 3.0"
9+
version = ">= 4.65"
810
}
911
}
1012
}

04-Terraform-Variables-and-Datasources/terraform-manifests/c1-versions.tf

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Terraform Block
22
terraform {
3-
required_version = "~> 0.14" # which means any version equal & above 0.14 like 0.15, 0.16 etc and < 1.xx
3+
#required_version = "~> 0.14" # which means any version equal & above 0.14 like 0.15, 0.16 etc and < 1.xx
4+
required_version = ">= 1.0.0"
45
required_providers {
56
aws = {
67
source = "hashicorp/aws"
7-
version = "~> 3.0"
8+
#version = ">= 3.0"
9+
version = ">= 4.65"
810
}
911
}
1012
}

05-Terraform-Loops-MetaArguments-SplatOperator/05-01-MetaArgument-Count-For-Loops-Lists-Maps/terraform-manifests/c1-versions.tf

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Terraform Block
22
terraform {
3-
required_version = "~> 0.14" # which means any version equal & above 0.14 like 0.15, 0.16 etc and < 1.xx
3+
#required_version = "~> 0.14" # which means any version equal & above 0.14 like 0.15, 0.16 etc and < 1.xx
4+
required_version = ">= 1.0.0"
45
required_providers {
56
aws = {
67
source = "hashicorp/aws"
7-
version = "~> 3.0"
8+
#version = ">= 3.0"
9+
version = ">= 4.65"
810
}
911
}
1012
}

05-Terraform-Loops-MetaArguments-SplatOperator/05-02-MetaArgument-for_each/terraform-manifests/c1-versions.tf

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Terraform Block
22
terraform {
3-
required_version = "~> 0.14" # which means any version equal & above 0.14 like 0.15, 0.16 etc and < 1.xx
3+
#required_version = "~> 0.14" # which means any version equal & above 0.14 like 0.15, 0.16 etc and < 1.xx
4+
required_version = ">= 1.0.0"
45
required_providers {
56
aws = {
67
source = "hashicorp/aws"
7-
version = "~> 3.0"
8+
#version = ">= 3.0"
9+
version = ">= 4.65"
810
}
911
}
1012
}

05-Terraform-Loops-MetaArguments-SplatOperator/05-03-Utility-Project/terraform-manifests/c1-versions.tf

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Terraform Block
22
terraform {
3-
required_version = "~> 0.14" # which means any version equal & above 0.14 like 0.15, 0.16 etc and < 1.xx
3+
#required_version = "~> 0.14" # which means any version equal & above 0.14 like 0.15, 0.16 etc and < 1.xx
4+
required_version = ">= 1.0.0"
45
required_providers {
56
aws = {
67
source = "hashicorp/aws"
7-
version = "~> 3.0"
8+
#version = ">= 3.0"
9+
version = ">= 4.65"
810
}
911
}
1012
}

05-Terraform-Loops-MetaArguments-SplatOperator/05-04-for_each-with-az-instancetype-check/terraform-manifests/c1-versions.tf

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Terraform Block
22
terraform {
3-
required_version = "~> 0.14" # which means any version equal & above 0.14 like 0.15, 0.16 etc and < 1.xx
3+
#required_version = "~> 0.14" # which means any version equal & above 0.14 like 0.15, 0.16 etc and < 1.xx
4+
required_version = ">= 1.0.0"
45
required_providers {
56
aws = {
67
source = "hashicorp/aws"
7-
version = "~> 3.0"
8+
#version = ">= 3.0"
9+
version = ">= 4.65"
810
}
911
}
1012
}

06-AWS-VPC/06-02-AWS-VPC-using-Terraform/terraform-manifests/v1-vpc-module/c1-versions.tf

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Terraform Block
22
terraform {
3-
required_version = ">= 1.0" # which means any version equal & above 0.14 like 0.15, 0.16 etc and < 1.xx
3+
#required_version = ">= 1.0" # which means any version equal & above 0.14 like 0.15, 0.16 etc and < 1.xx
4+
required_version = ">= 1.0"
45
required_providers {
56
aws = {
67
source = "hashicorp/aws"
7-
version = "~> 3.0"
8+
#version = ">= 3.0"
9+
version = ">= 4.65"
810
}
911
}
1012
}

06-AWS-VPC/06-02-AWS-VPC-using-Terraform/terraform-manifests/v1-vpc-module/c3-vpc.tf

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Create VPC Terraform Module
22
module "vpc" {
33
source = "terraform-aws-modules/vpc/aws"
4-
version = "3.11.0"
4+
#version = "3.11.0"
55
# version = "~> 3.11"
6+
version = "4.0.1"
67

78
# VPC Basic Details
89
name = "vpc-dev"
@@ -47,6 +48,8 @@ module "vpc" {
4748
vpc_tags = {
4849
Name = "vpc-dev"
4950
}
51+
# Instances launched into the Public subnet should be assigned a public IP address.
52+
map_public_ip_on_launch = true
5053
}
5154

5255

06-AWS-VPC/06-02-AWS-VPC-using-Terraform/terraform-manifests/v2-vpc-module-standardized/c1-versions.tf

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Terraform Block
22
terraform {
3-
required_version = ">= 1.0" # which means any version equal & above 0.14 like 0.15, 0.16 etc and < 1.xx
3+
#required_version = ">= 1.0" # which means any version equal & above 0.14 like 0.15, 0.16 etc and < 1.xx
4+
required_version = ">= 1.0"
45
required_providers {
56
aws = {
67
source = "hashicorp/aws"
7-
version = "~> 3.0"
8+
#version = ">= 3.0"
9+
version = ">= 4.65"
810
}
911
}
1012
}

06-AWS-VPC/06-02-AWS-VPC-using-Terraform/terraform-manifests/v2-vpc-module-standardized/c4-02-vpc-module.tf

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Create VPC Terraform Module
22
module "vpc" {
33
source = "terraform-aws-modules/vpc/aws"
4-
version = "3.11.0"
4+
#version = "3.11.0"
55
#version = "~> 3.11"
6+
version = "4.0.1"
67

78
# VPC Basic Details
89
name = "${local.name}-${var.vpc_name}"
@@ -40,4 +41,6 @@ module "vpc" {
4041
database_subnet_tags = {
4142
Type = "Private Database Subnets"
4243
}
44+
# Instances launched into the Public subnet should be assigned a public IP address.
45+
map_public_ip_on_launch = true
4346
}

07-AWS-EC2-BastionHost/terraform-manifests/c1-versions.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = "~> 3.63"
7+
#version = ">= 3.63"
8+
version = ">= 4.65"
89
}
910
}
1011
}

07-AWS-EC2-BastionHost/terraform-manifests/c3-02-vpc-module.tf

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ data "aws_availability_zones" "available" {
77
# Create VPC Terraform Module
88
module "vpc" {
99
source = "terraform-aws-modules/vpc/aws"
10-
version = "3.11.0"
10+
#version = "3.11.0"
1111
#version = "~> 3.11"
12-
12+
version = "4.0.1"
13+
1314
# VPC Basic Details
1415
name = local.eks_cluster_name
1516
cidr = var.vpc_cidr_block
@@ -52,4 +53,6 @@ module "vpc" {
5253
database_subnet_tags = {
5354
Type = "database-subnets"
5455
}
56+
# Instances launched into the Public subnet should be assigned a public IP address.
57+
map_public_ip_on_launch = true
5558
}

07-AWS-EC2-BastionHost/terraform-manifests/c4-03-ec2bastion-securitygroups.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# Security Group for Public Bastion Host
33
module "public_bastion_sg" {
44
source = "terraform-aws-modules/security-group/aws"
5-
version = "4.5.0"
5+
#version = "4.5.0"
6+
version = "4.17.2"
67

78
name = "${local.name}-public-bastion-sg"
89
description = "Security Group with SSH port open for everybody (IPv4 CIDR), egress ports are all world open"

07-AWS-EC2-BastionHost/terraform-manifests/c4-05-ec2bastion-instance.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
module "ec2_public" {
44
source = "terraform-aws-modules/ec2-instance/aws"
55
#version = "~> 3.0"
6-
version = "3.3.0"
6+
#version = "3.3.0"
7+
version = "5.0.0"
78

89
name = "${local.name}-BastionHost"
910
ami = data.aws_ami.amzlinux2.id
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
VPC created on Thu Dec 30 10:15:44 IST 2021 and VPC ID: vpc-0890747e601f1c1be
2+
VPC created on Thu May 4 14:03:49 IST 2023 and VPC ID: vpc-01c871b499e948937

08-AWS-EKS-Cluster-Basics/01-ekscluster-terraform-manifests/c1-versions.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = "~> 3.63"
7+
#version = "~> 3.63"
8+
version = ">= 4.65"
89
}
910
}
1011
}

08-AWS-EKS-Cluster-Basics/01-ekscluster-terraform-manifests/c3-02-vpc-module.tf

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ data "aws_availability_zones" "available" {
55
# Create VPC Terraform Module
66
module "vpc" {
77
source = "terraform-aws-modules/vpc/aws"
8-
version = "3.11.0"
8+
#version = "3.11.0"
99
#version = "~> 3.11"
10-
10+
version = "4.0.1"
11+
1112
# VPC Basic Details
1213
name = local.eks_cluster_name
1314
cidr = var.vpc_cidr_block
@@ -49,4 +50,6 @@ module "vpc" {
4950
database_subnet_tags = {
5051
Type = "database-subnets"
5152
}
53+
# Instances launched into the Public subnet should be assigned a public IP address.
54+
map_public_ip_on_launch = true
5255
}

08-AWS-EKS-Cluster-Basics/01-ekscluster-terraform-manifests/c4-03-ec2bastion-securitygroups.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# Security Group for Public Bastion Host
33
module "public_bastion_sg" {
44
source = "terraform-aws-modules/security-group/aws"
5-
version = "4.5.0"
5+
#version = "4.5.0"
6+
version = "4.17.2"
67

78
name = "${local.name}-public-bastion-sg"
89
description = "Security Group with SSH port open for everybody (IPv4 CIDR), egress ports are all world open"

08-AWS-EKS-Cluster-Basics/01-ekscluster-terraform-manifests/c4-05-ec2bastion-instance.tf

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
# Bastion Host - EC2 Instance that will be created in VPC Public Subnet
33
module "ec2_public" {
44
source = "terraform-aws-modules/ec2-instance/aws"
5-
version = "3.3.0"
5+
#version = "3.3.0"
6+
version = "5.0.0"
7+
68
# insert the required variables here
79
name = "${local.name}-BastionHost"
810
ami = data.aws_ami.amzlinux2.id

08-AWS-EKS-Cluster-Basics/01-ekscluster-terraform-manifests/eks.auto.tfvars

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cluster_name = "eksdemo1"
22
cluster_service_ipv4_cidr = "172.20.0.0/16"
3-
cluster_version = "1.22"
3+
cluster_version = "1.26"
44
cluster_endpoint_private_access = false
55
cluster_endpoint_public_access = true
66
cluster_endpoint_public_access_cidrs = ["0.0.0.0/0"]

08-AWS-EKS-Cluster-Basics/01-ekscluster-terraform-manifests/local-exec-output-files/creation-time-vpc-id.txt

+2
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ VPC created on Fri Dec 31 08:38:31 IST 2021 and VPC ID: vpc-01da91a4c1a2507e4
1515
VPC created on Sat Jan 1 06:02:20 IST 2022 and VPC ID: vpc-063592bf66bbe415c
1616
VPC created on Sun Jan 2 09:02:31 IST 2022 and VPC ID: vpc-07b2456bdfba15335
1717
VPC created on Mon Jan 3 07:19:15 IST 2022 and VPC ID: vpc-0b1ccfc81d2c1115a
18+
VPC created on Tue May 2 11:39:44 IST 2023 and VPC ID: vpc-06abc3ac97f2f7a8d
19+
VPC created on Tue May 2 13:07:47 IST 2023 and VPC ID: vpc-08918fb0d9dc9174e

08-AWS-EKS-Cluster-Basics/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ resource "aws_eks_node_group" "eks_ng_private" {
271271
```t
272272
cluster_name = "eksdemo1"
273273
cluster_service_ipv4_cidr = "172.20.0.0/16"
274-
cluster_version = "1.21"
274+
cluster_version = "1.26"
275275
cluster_endpoint_private_access = true
276276
cluster_endpoint_public_access = true
277277
cluster_endpoint_public_access_cidrs = ["0.0.0.0/0"]

11-Kubernetes-Resources-via-Terraform/02-k8sresources-terraform-manifests/c1-versions.tf

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = "~> 3.70"
7+
#version = "~> 3.70"
8+
version = ">= 4.65"
89
}
910
kubernetes = {
1011
source = "hashicorp/kubernetes"
11-
version = "~> 2.7"
12+
#version = "~> 2.7"
13+
version = ">= 2.20"
1214
}
1315
}
1416
}

11-Kubernetes-Resources-via-Terraform/README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ terraform {
2828
required_providers {
2929
aws = {
3030
source = "hashicorp/aws"
31-
version = "~> 3.70"
32-
}
31+
#version = "~> 3.70"
32+
version = ">= 4.65"
33+
}
3334
kubernetes = {
34-
source = "hashicorp/kubernetes"
35-
version = "~> 2.7"
36-
}
35+
source = "hashicorp/kubernetes"
36+
#version = "~> 2.7"
37+
version = ">= 2.20"
38+
}
3739
}
3840
}
3941
```

12-Terraform-Remote-State-Storage/01-ekscluster-terraform-manifests/.terraform.lock.hcl

+44
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)