Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 7, 2024
1 parent 763b46f commit 50ed684
Show file tree
Hide file tree
Showing 20 changed files with 50 additions and 54 deletions.
2 changes: 1 addition & 1 deletion .deepsource.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 1

[[analyzers]]
name = "terraform"
name = "terraform"
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,3 @@ updates:
# Add reviewer
reviewers:
- "approvers"

1 change: 0 additions & 1 deletion .github/workflows/tf-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ jobs:
with:
working_directory: './examples/spot_instance/'
...

2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[2.0.0]: https://github.com/clouddrove/terraform-aws-ec2/compare/1.3.0...2.0.0
[2.0.1]: https://github.com/clouddrove/terraform-aws-ec2/compare/2.0.0...2.0.1
[2.0.2]: https://github.com/clouddrove/terraform-aws-ec2/compare/2.0.1...2.0.2
[2.0.3]: https://github.com/clouddrove/terraform-aws-ec2/compare/2.0.2...2.0.3
[2.0.3]: https://github.com/clouddrove/terraform-aws-ec2/compare/2.0.2...2.0.3
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<hr>


We are a group of DevOps engineers & architects, joining hands in this ever evolving digital landscape. With our strong belief in Automation; just like microservices, always on the lookout to split the the infrastructure into smaller connected resources (database, cluster and more) which could be standardized, are manageable, scalable, secure & follow industry best practices.
We are a group of DevOps engineers & architects, joining hands in this ever evolving digital landscape. With our strong belief in Automation; just like microservices, always on the lookout to split the the infrastructure into smaller connected resources (database, cluster and more) which could be standardized, are manageable, scalable, secure & follow industry best practices.


This module includes Terraform open source, examples, and automation tests (for better understanding), which would help you create and improve your infrastructure with minimalistic coding.
Expand Down Expand Up @@ -79,7 +79,7 @@ This table contains both Prerequisites and Providers:
Refer to complete documentation: [here](docs/io.md)


<!--
<!--
## Module Dependencies
This module has dependencies on:
Expand Down Expand Up @@ -107,7 +107,7 @@ Refer [here](CHANGELOG.md).

## ✨ Contributors

Big thanks to our contributors for elevating our project with their dedication and expertise! But, we do not wish to stop there, would like to invite contributions from the community in improving these projects and making them more versatile for better reach. Remember, every bit of contribution is immensely valuable, as, together, we are moving in only 1 direction, i.e. forward.
Big thanks to our contributors for elevating our project with their dedication and expertise! But, we do not wish to stop there, would like to invite contributions from the community in improving these projects and making them more versatile for better reach. Remember, every bit of contribution is immensely valuable, as, together, we are moving in only 1 direction, i.e. forward.

<a href="https://github.com/clouddrove/terraform-aws-ec2/graphs/contributors">
<img src="https://contrib.rocks/image?repo=clouddrove/terraform-aws-ec2&max" />
Expand Down Expand Up @@ -135,7 +135,7 @@ Big thanks to our contributors for elevating our project with their dedication a



## Feedback
## Feedback
Spot a bug or have thoughts to share with us? Let's squash it together! Log it in our [issue tracker](https://github.com/clouddrove/terraform-aws-ec2/issues), feel free to drop us an email at [[email protected]](mailto:[email protected]).

Show some love with a ★ on [our GitHub](https://github.com/clouddrove/terraform-aws-ec2)! if our work has brightened your day! – your feedback fuels our journey!
Expand All @@ -147,7 +147,7 @@ We have [*100+ Terraform modules*][terraform_modules] 🙌. You could consider t

- [Terraform Module Registry:](https://registry.terraform.io/namespaces/clouddrove) Discover our Terraform modules here.

- [Terraform Modules for AWS/Azure Modules:](https://github.com/clouddrove/toc) Explore our comprehensive Table of Contents for easy navigation through our documentation for modules pertaining to AWS, Azure & GCP.
- [Terraform Modules for AWS/Azure Modules:](https://github.com/clouddrove/toc) Explore our comprehensive Table of Contents for easy navigation through our documentation for modules pertaining to AWS, Azure & GCP.

- [Terraform Modules for Digital Ocean:](https://github.com/terraform-do-modules/toc) Check out our specialized Terraform modules for Digital Ocean.

Expand All @@ -173,7 +173,7 @@ Join our tech elites [Join Now][slack] 🚀
Click [here][blog] :books: :star2:

## Tap into our capabilities
We provide a platform for organizations to engage with experienced top-tier DevOps & Cloud services. Tap into our pool of certified engineers and architects to elevate your DevOps and Cloud Solutions.
We provide a platform for organizations to engage with experienced top-tier DevOps & Cloud services. Tap into our pool of certified engineers and architects to elevate your DevOps and Cloud Solutions.

At [CloudDrove][website], has extensive experience in designing, building & migrating environments, securing, consulting, monitoring, optimizing, automating, and maintaining complex and large modern systems. With remarkable client footprints in American & European corridors, our certified architects & engineers are ready to serve you as per your requirements & schedule. Write to us at [[email protected]](mailto:[email protected]).

Expand Down
60 changes: 30 additions & 30 deletions README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ usage: |-
module "ec2" {
source = "clouddrove/ec2/aws"
version = "1.3.1"
name = "ec2"
environment = "test"
label_order = ["name", "environment"]
Expand All @@ -64,21 +64,21 @@ usage: |-
vpc_id = module.vpc.vpc_id
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 = tolist(module.public_subnets.public_subnet_id)
#Keypair
public_key = "ssh-rsa ArJh5/gxz7sbSSseLd+ldHEOM3+lajUSGqWk3Bw/NgygEf1Kgw7gyK3jsTVVcokhK3TDuR3pi4u2QDR2tvLXddPKd37a2S7rjeqecw+XRW9559zKaR7RJJfjO1u1Onc2tgA3y0btdju2bcYBtFkRVOLwpog8CvslYEDV1Vf9HNeh9A3yOS6Pkjq6gDMrsUVF89ps3zuLmdVBIlCOnJDkwHK71lKihGKdkeXEtAj0aOQzAJsIpDFXz7vob9OiA/fb2T3t4R1EwEsPEnYVczKMsqUyqa+EE36bItcZHQyCPVN7+bRJyJpPcrfrsAa4yMtiHUUiecPdL/6HYwGHxxl2UQR5NE4NR35NI86Q+q1kNOc5VctxxQOTHBwKHaGvKLk4c5gHXaEl8yyYL0wVkL00KYx3GCh1LvRdQ"
#IAM
iam_instance_profile = module.iam-role.name
#Root Volume
root_block_device = [
{
Expand All @@ -87,15 +87,15 @@ usage: |-
delete_on_termination = true
}
]
#EBS Volume
ebs_volume_enabled = false
ebs_volume_type = "gp2"
ebs_volume_size = 30
#Tags
instance_tags = { "snapshot" = true }
}
```
Expand All @@ -104,30 +104,30 @@ usage: |-
module "ec2" {
source = "clouddrove/ec2/aws"
version = "1.3.1"
name = "ec2"
environment = "test"
label_order = ["name", "environment"]
## security group
## security group
vpc_id = module.vpc.vpc_id
ssh_allowed_ip = ["0.0.0.0/0"]
ssh_allowed_ports = [22]
#Instance
instance_count = 1
ami = "ami-08d658f84a6d84a80"
instance_type = "t2.nano"
#Keypair
public_key = "HEOM3+lajUSGqWk3Bw/NgygEf1Kgw7gyK3jsTVVcokhK3TDuR3pi4u2QDR2tvLXddPKd37a2S7rjeqecw+XRW9559zKaR7RJJfjO1u1Onc2tgA3y0btdju2bcYBtFkRVOLwpog8CvslYEDLmdVBIlCOnJDkwHK71lKihGKdkeXEtAj0aOQzAJsIpDFXz7vob9OiA/fb2T3t4R1EwEsPEnYVczKMsqUyqa+EE36bItcZHQyCPVN7+bRJyJpPcrfrsAa4yMtiHUUiecPdL/6HYwGHxA5rUX3uD2UBm6sbGBH00ZCj6yUxl2UQR5NE4NR35NI86Q+q1kNOc5VctxxQOTHBwKHaGvKLk4c5gHXaEl8yyYL0wVkL00KYx3GCh1"
#Networking
subnet_ids = tolist(module.public_subnets.public_subnet_id)
#IAM
iam_instance_profile = module.iam-role.name
#Root Volume
root_block_device = [
{
Expand All @@ -136,15 +136,15 @@ usage: |-
delete_on_termination = true
}
]
#EBS Volume
ebs_volume_enabled = true
ebs_volume_type = "gp2"
ebs_volume_size = 30
#Tags
instance_tags = { "snapshot" = true }
#Mount EBS With User Data
user_data = file("user-data.sh")
}
Expand All @@ -155,19 +155,19 @@ usage: |-
module "spot-ec2" {
source = "clouddrove/ec2/aws"
version = "1.3.1"
name = "ec2"
environment = "test"
label_order = ["name", "environment"]
## security-group
vpc_id = module.vpc.vpc_id
ssh_allowed_ip = ["0.0.0.0/0"]
ssh_allowed_ports = [22]
#Keypair
public_key = "h5/gxz7sbSSseLd+ldHEOM3+lajUSGqWk3Bw/NgygEf1Kgw7gyK3jsTVVcokhK3TDuR3pi4u2QDR2tvLXddPKd37a2S7rjeqecw+XRW9559zKaR7RJJfjO1u1Onc2tgA3y0btdju2bcYBtFkRVOLwpog8CvslYEDV1Vf9HNeh9A3yOS6Pkjq6gDMrsUVF89ps3zuLmdVBIlCOnJDkwHK71lKihGKdkeXEtAj0aOQzAJsIpDFXz7vob9OiA/fb2T3t4R1EwEsPEnYVczKMsqUyqa+EE36bItcZHQyCPVN7+bRJyJpPcrfrsAa4yMtiHUUiecPdL/6HYwGHxA5rUX3uD2UBm6sbGBHxQOTHBwKHaGvKLk4c5gHXaEl8yyYL0wVkL00KYx3GCh1LvRdQL8fvzImBCNg"
# Spot-instance
spot_price = "0.3"
spot_wait_for_fulfillment = true
Expand All @@ -177,13 +177,13 @@ usage: |-
spot_instance_count = 1
spot_ami = "ami-08d658f84a6d84a80"
instance_type = "c4.xlarge"
#Networking
subnet_ids = tolist(module.public_subnets.public_subnet_id)
#IAM
iam_instance_profile = module.iam-role.name
#Root Volume
root_block_device = [
{
Expand All @@ -192,14 +192,14 @@ usage: |-
delete_on_termination = true
}
]
#EBS Volume
ebs_volume_enabled = true
ebs_volume_type = "gp2"
ebs_volume_size = 30
#Tags
spot_instance_tags = { "snapshot" = true }
}
```
```
1 change: 0 additions & 1 deletion docs/io.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,3 @@
| subnet\_id | The EC2 subnet ID. |
| tags | The instance ID. |
| vpc\_security\_group\_ids | The associated security groups in non-default VPC. |

2 changes: 1 addition & 1 deletion examples/basic/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ module "ec2" {
#Tags
instance_tags = { "snapshot" = true }

}
}
2 changes: 1 addition & 1 deletion examples/basic/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ output "tags" {
output "public_ip" {
value = module.ec2.public_ip
description = "Public IP address assigned to the instance, if applicable."
}
}
2 changes: 1 addition & 1 deletion examples/basic/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ terraform {
version = ">= 5.13.1"
}
}
}
}
2 changes: 1 addition & 1 deletion examples/complete/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ module "ec2" {

#Mount EBS With User Data
user_data = file("user-data.sh")
}
}
2 changes: 1 addition & 1 deletion examples/complete/user-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ for device in $block_devices; do
echo "Skipping $device."
fi
done
echo "Mounting complete."
echo "Mounting complete."
2 changes: 1 addition & 1 deletion examples/complete/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ terraform {
version = ">= 5.13.1"
}
}
}
}
2 changes: 1 addition & 1 deletion examples/spot_instance/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ module "spot-ec2" {
#Tags
spot_instance_tags = { "snapshot" = true }

}
}
2 changes: 1 addition & 1 deletion examples/spot_instance/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ output "spot_tags" {
output "spot_bid_status" {
value = module.spot-ec2.spot_bid_status
description = "The current bid status of the Spot Instance Request"
}
}
2 changes: 1 addition & 1 deletion examples/spot_instance/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ terraform {
version = ">= 5.13.1"
}
}
}
}
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -535,4 +535,4 @@ resource "aws_spot_instance_request" "default" {
private_ip,
]
}
}
}
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ output "spot_bid_status" {
output "tags" {
value = module.labels.tags
description = "The instance ID."
}
}
1 change: 0 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -694,4 +694,3 @@ variable "egress_ipv6_cidr_block" {
type = list(string)
default = ["::/0"]
}

2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ terraform {
version = ">= 4.0"
}
}
}
}

0 comments on commit 50ed684

Please sign in to comment.