-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new Argument Reference added with multi ebs option (#53)
* fix: new Argument Reference added with multi ebs option * tf check githb action fixed * tf check githb action fixed * tf check github action fixed * tf check git action for subnet id * feat: default insance key-pair option added * feat: default insance key-pair option added * fix: Added enable variable and updated example folder heirarchy * fix: Removed public key from example --------- Co-authored-by: Anmol Nagpal <anmol@clouddrove.com> Co-authored-by: Archit Chopra <chopra13archit@gmail.com>
- Loading branch information
1 parent
01ab087
commit 5ac1f1a
Showing
17 changed files
with
498 additions
and
369 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
##---------------------------------------------------------------------------------- | ||
## Terraform module to create instance module on AWS. | ||
##---------------------------------------------------------------------------------- | ||
module "ec2" { | ||
source = "./../../" | ||
name = "ec2" | ||
environment = "test" | ||
|
||
##---------------------------------------------------------------------------------- | ||
## Below A security group controls the traffic that is allowed to reach and leave the resources that it is associated with. | ||
##---------------------------------------------------------------------------------- | ||
#tfsec:aws-ec2-no-public-ingress-sgr | ||
vpc_id = "vpc-xxxxxxxxx" | ||
ssh_allowed_ip = ["0.0.0.0/0"] | ||
ssh_allowed_ports = [22] | ||
|
||
#instance | ||
instance_count = 1 | ||
ami = "ami-08d658f84a6d84a80" | ||
instance_type = "c4.xlarge" | ||
|
||
#Networking | ||
subnet_ids = ["subnet-xxxxxxxx"] | ||
|
||
#Keypair | ||
public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCm63Yf1+E6Fkts7LcAdOalvdUrZE0oA1A6pJUkx9c/V8ZFuclg7uNdnXV98iHWlA6tcvV69HsdBJZU3w66+6rxGgM0dbwSalRz60IGM40HwRTYZNn0e/1xwL3O0tvsIiSdapLDjPXIm4zZGQL7KXT98f6LJzDfDBF67ZEAVoeOxIl/a1k+DOTRuFtg7dtvPhJQpDCh685EtiC/+HH4vpHcw3LcNfP2WaifQpCG4Pxgj6KWf1bGVJhhpN26lbJYfN4n+GZJYDKDS+Tc4eF4aC1s1JnOtKC2z1bb+FI7Y4ZdYfIsdf0P1Fo751JLp7fjTqckBgxYd+iXAhKO6dPjbVp3L56pxTJbbSgi5Cw29+Ef8AcK9WOGCgbnma7XmCpFF0NxSSLim74p2y+oyjt1UmX9UvOKnb1MXlGW4JYo4qQV4M5TL64JcYa5sSRDvMhtpC83YVpKyRb3bTNZySsgkDuxFCNsJ0c9UAWTbqzSmhpPsM9ItfBSxhq0oiogGpvNgXM=" | ||
|
||
#IAM | ||
iam_instance_profile = "iam-profile-xxxxxxxxx" | ||
|
||
#Root Volume | ||
root_block_device = [ | ||
{ | ||
volume_type = "gp2" | ||
volume_size = 15 | ||
delete_on_termination = true | ||
} | ||
] | ||
#Tags | ||
instance_tags = { "snapshot" = true } | ||
|
||
} |
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
_example/basic_example/versions.tf → _example/basic/versions.tf
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,11 +1,11 @@ | ||
# Terraform version | ||
terraform { | ||
required_version = ">= 1.5.0" | ||
required_version = ">= 1.5.5" | ||
|
||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = ">= 5.9.0" | ||
version = ">= 5.13.1" | ||
} | ||
} | ||
} |
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
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
_example/ebs_mount/versions.tf → _example/complete/versions.tf
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,11 +1,11 @@ | ||
# Terraform version | ||
terraform { | ||
required_version = ">= 1.5.0" | ||
required_version = ">= 1.5.5" | ||
|
||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = ">= 5.9.0" | ||
version = ">= 5.13.1" | ||
} | ||
} | ||
} |
Oops, something went wrong.