diff --git a/examples/basic/README.md b/examples/basic/README.md index 142de30..5bdaa08 100644 --- a/examples/basic/README.md +++ b/examples/basic/README.md @@ -34,7 +34,7 @@ | [availability\_domains](#input\_availability\_domains) | Availability domains in which instances are going to be created | `list(number)` |
[| no | | [compartment\_id](#input\_compartment\_id) | Compartment ID | `string` | n/a | yes | | [egress\_security\_rules](#input\_egress\_security\_rules) | Egress security rules | `list(map(string))` |
1,
1
]
[| no | -| [id\_rsa](#input\_id\_rsa) | Path to SSH public key | `string` | `"~/.ssh/id_rsa.pub"` | no | +| [id\_rsa\_pub](#input\_id\_rsa\_pub) | Path to SSH public key | `string` | `"~/.ssh/id_rsa.pub"` | no | | [ingress\_security\_rules](#input\_ingress\_security\_rules) | Ingress security rules | `list(map(string))` |
{
"description": "Allow all outgoing traffic",
"destination": "0.0.0.0/0",
"destination_type": "CIDR_BLOCK",
"protocol": "all"
}
]
[| no | | [instance\_count](#input\_instance\_count) | Number of instances to create | `number` | `2` | no | | [region](#input\_region) | Oracle Cloud region | `string` | n/a | yes | diff --git a/examples/basic/main.tf b/examples/basic/main.tf index 4302177..4af2e7c 100644 --- a/examples/basic/main.tf +++ b/examples/basic/main.tf @@ -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 diff --git a/examples/basic/variables.tf b/examples/basic/variables.tf index 3d86710..eda492e 100644 --- a/examples/basic/variables.tf +++ b/examples/basic/variables.tf @@ -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"
{
"description": "Allow all for SSH",
"port": 22,
"protocol": 6,
"source": "0.0.0.0/0",
"source_type": "CIDR_BLOCK"
},
{
"description": "Allow all for HTTP",
"port": 80,
"protocol": 6,
"source": "0.0.0.0/0",
"source_type": "CIDR_BLOCK"
},
{
"description": "Allow all for HTTPS",
"port": 443,
"protocol": 6,
"source": "0.0.0.0/0",
"source_type": "CIDR_BLOCK"
},
{
"description": "Allow all for ICMP",
"icmp_code": 4,
"icmp_type": 3,
"protocol": 1,
"source": "0.0.0.0/0",
"source_type": "CIDR_BLOCK"
}
]