Skip to content

Commit

Permalink
fix: add source_dest_check variable
Browse files Browse the repository at this point in the history
  • Loading branch information
zahornyak committed Aug 12, 2024
1 parent 96244f2 commit 9705674
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ module "ec2" {
| <a name="input_root_block_device"></a> [root\_block\_device](#input\_root\_block\_device) | volume config | `any` | `[]` | no |
| <a name="input_security_group_ids"></a> [security\_group\_ids](#input\_security\_group\_ids) | security\_group\_ids | `list(string)` | `null` | no |
| <a name="input_server_name"></a> [server\_name](#input\_server\_name) | server\_name | `string` | `null` | no |
| <a name="input_source_dest_check"></a> [source\_dest\_check](#input\_source\_dest\_check) | source\_dest\_check | `bool` | `null` | no |
| <a name="input_subnet_id"></a> [subnet\_id](#input\_subnet\_id) | subnet\_id | `string` | `null` | no |
| <a name="input_user_data_path"></a> [user\_data\_path](#input\_user\_data\_path) | user\_data\_path | `string` | `null` | no |
| <a name="input_user_data_replace_on_change"></a> [user\_data\_replace\_on\_change](#input\_user\_data\_replace\_on\_change) | recreate on user data change | `bool` | `true` | no |
Expand Down
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ module "ec2_instance" {

private_ip = var.private_ip

source_dest_check = var.source_dest_check

ami = var.ami != null ? var.ami : data.aws_ami.ami.id
instance_type = var.instance_type
monitoring = var.monitoring
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,10 @@ variable "architecture" {
default = "x86_64"
}

variable "source_dest_check" {
description = "source_dest_check"
type = bool
default = null
}


0 comments on commit 9705674

Please sign in to comment.