Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#616 Enable classic access for VPC #620

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading