Skip to content

Commit

Permalink
#616 Enable classic access for VPC
Browse files Browse the repository at this point in the history
  • Loading branch information
fketelaars committed Jan 12, 2024
1 parent 354bdae commit 5e1636e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions automation-generators/ibm-cloud/vpc/templates/main.tf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ resource "ibm_is_vpc" "{{generator.attributes.name | replace("-", "_") }}" {
default_network_acl_name = "{{generator.attributes.name }}-acl-default"
default_security_group_name = "{{generator.attributes.name }}-sg-default"
default_routing_table_name = "{{generator.attributes.name }}-rt-default"
classic_access = "{[generator.attributes.classic_access | default('false') | lower}}"
lifecycle {
ignore_changes = [ resource_group ]
}
Expand Down
2 changes: 2 additions & 0 deletions docs/src/30-reference/configuration/infrastructure.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ Defines the virtual private cloud which groups the provisioned objects (includin
vpc:
- name: sample
allow_inbound: ['ssh', 'https']
classic_access: False
```

#### Property explanation
Expand All @@ -114,6 +115,7 @@ vpc:
| name | Name of the Virtual Private Cloud | Yes | |
| managed | Controls whether the VPC is managed. The default is `True`. Only set to `False` if the VPC is not managed but only referenced by other objects such as transit gateways. | No | True (default), False |
| allow_inbound | Security rules which are allowed for inbound traffic | No | Existing `security_rule` |
| classic_access| Connect VPC to IBM Cloud classic infratructure resources | No | False (default), True |

### IBM Cloud `address_prefix`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ security_rule:
vpc:
- name: "{{ env_id }}"
allow_inbound: ['ssh']
classic_access: False

address_prefix:
- name: "{{ env_id }}-zone"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ security_rule:
vpc:
- name: "{{ env_id }}"
allow_inbound: ['ssh']
classic_access: False

address_prefix:
- name: "{{ env_id }}-zone-1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ security_rule:
vpc:
- name: "{{ env_id }}"
allow_inbound: ['ssh']
classic_access: False

address_prefix:
- name: "{{ env_id }}-zone-1"
Expand Down

0 comments on commit 5e1636e

Please sign in to comment.