Skip to content

Commit

Permalink
refactor: Change variable for SSH key (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianczech authored Aug 30, 2024
1 parent f253ec1 commit 5caffe2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
| <a name="input_availability_domains"></a> [availability\_domains](#input\_availability\_domains) | Availability domains in which instances are going to be created | `list(number)` | <pre>[<br> 1,<br> 1<br>]</pre> | no |
| <a name="input_compartment_id"></a> [compartment\_id](#input\_compartment\_id) | Compartment ID | `string` | n/a | yes |
| <a name="input_egress_security_rules"></a> [egress\_security\_rules](#input\_egress\_security\_rules) | Egress security rules | `list(map(string))` | <pre>[<br> {<br> "description": "Allow all outgoing traffic",<br> "destination": "0.0.0.0/0",<br> "destination_type": "CIDR_BLOCK",<br> "protocol": "all"<br> }<br>]</pre> | no |
| <a name="input_id_rsa"></a> [id\_rsa](#input\_id\_rsa) | Path to SSH public key | `string` | `"~/.ssh/id_rsa.pub"` | no |
| <a name="input_id_rsa_pub"></a> [id\_rsa\_pub](#input\_id\_rsa\_pub) | Path to SSH public key | `string` | `"~/.ssh/id_rsa.pub"` | no |
| <a name="input_ingress_security_rules"></a> [ingress\_security\_rules](#input\_ingress\_security\_rules) | Ingress security rules | `list(map(string))` | <pre>[<br> {<br> "description": "Allow all for SSH",<br> "port": 22,<br> "protocol": 6,<br> "source": "0.0.0.0/0",<br> "source_type": "CIDR_BLOCK"<br> },<br> {<br> "description": "Allow all for HTTP",<br> "port": 80,<br> "protocol": 6,<br> "source": "0.0.0.0/0",<br> "source_type": "CIDR_BLOCK"<br> },<br> {<br> "description": "Allow all for HTTPS",<br> "port": 443,<br> "protocol": 6,<br> "source": "0.0.0.0/0",<br> "source_type": "CIDR_BLOCK"<br> },<br> {<br> "description": "Allow all for ICMP",<br> "icmp_code": 4,<br> "icmp_type": 3,<br> "protocol": 1,<br> "source": "0.0.0.0/0",<br> "source_type": "CIDR_BLOCK"<br> }<br>]</pre> | no |
| <a name="input_instance_count"></a> [instance\_count](#input\_instance\_count) | Number of instances to create | `number` | `2` | no |
| <a name="input_region"></a> [region](#input\_region) | Oracle Cloud region | `string` | n/a | yes |
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module "infra_k8s_oracle_cloud" {
source = "../../"

compartment_id = var.compartment_id
id_rsa_pub = try(file(var.id_rsa), null)
id_rsa_pub = try(file(var.id_rsa_pub), null)
instance_count = var.instance_count
availability_domains = var.availability_domains
egress_security_rules = var.egress_security_rules
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ variable "compartment_id" {
type = string
}

variable "id_rsa" {
variable "id_rsa_pub" {
description = "Path to SSH public key"
type = string
default = "~/.ssh/id_rsa.pub"
Expand Down

0 comments on commit 5caffe2

Please sign in to comment.