Skip to content

Commit 0a9c29e

Browse files
committed
run precommit
1 parent 25417a6 commit 0a9c29e

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ In this module, we have implemented the following CIS Compliance checks for VPC:
138138

139139
| Name | Source | Version |
140140
|------|--------|---------|
141-
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | 4.0.2 |
141+
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | 5.1.1 |
142142
| <a name="module_vpn_server"></a> [vpn\_server](#module\_vpn\_server) | ./modules/vpn | n/a |
143143

144144
## Resources

modules/vpn/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Refer [this](https://pritunl.com/) for more information.
2525
| Name | Version |
2626
|------|---------|
2727
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.23 |
28+
| <a name="provider_null"></a> [null](#provider\_null) | n/a |
2829
| <a name="provider_template"></a> [template](#provider\_template) | >= 2.2.0 |
2930
| <a name="provider_time"></a> [time](#provider\_time) | >= 0.9.1 |
3031

@@ -46,7 +47,8 @@ Refer [this](https://pritunl.com/) for more information.
4647
| [aws_iam_role_policy_attachment.SecretsManagerReadWrite_attachment](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |
4748
| [aws_ssm_association.ssm_association](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_association) | resource |
4849
| [aws_ssm_document.ssm_document](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_document) | resource |
49-
| [time_sleep.wait_2_min](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource |
50+
| [null_resource.delete_secret](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
51+
| [time_sleep.wait_3_min](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource |
5052
| [aws_ami.ubuntu_20_ami](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ami) | data source |
5153
| [aws_iam_policy.SSMManagedInstanceCore](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy) | data source |
5254
| [aws_iam_policy.SecretsManagerReadWrite](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy) | data source |

modules/vpn/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,11 @@ DOC
206206
resource "null_resource" "delete_secret" {
207207
triggers = {
208208
environment = var.environment
209-
name = var.name
210-
region = data.aws_region.current.name
209+
name = var.name
210+
region = data.aws_region.current.name
211211
}
212212
provisioner "local-exec" {
213-
when = destroy
213+
when = destroy
214214
interpreter = ["/bin/bash", "-c"]
215215
command = <<EOT
216216
aws secretsmanager delete-secret --secret-id ${self.triggers.environment}-${self.triggers.name}-vpn --force-delete-without-recovery --region ${self.triggers.region}

modules/vpn/scripts/pritunl-vpn.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ sleep 10
2828
sudo pritunl set-mongodb mongodb://localhost:27017/pritunl
2929

3030
sudo systemctl enable mongod pritunl
31-
sudo systemctl start mongod pritunl
31+
sudo systemctl start mongod pritunl

0 commit comments

Comments
 (0)