|
32 | 32 | }, |
33 | 33 | "immutable": true |
34 | 34 | }, |
| 35 | + "create_authorization_policy_vpc_to_cos": { |
| 36 | + "name": "create_authorization_policy_vpc_to_cos", |
| 37 | + "type": "bool", |
| 38 | + "description": "Create authorisation policy for VPC to access COS. Set as false if authorization policy exists already", |
| 39 | + "default": false, |
| 40 | + "pos": { |
| 41 | + "filename": "variables.tf", |
| 42 | + "line": 408 |
| 43 | + } |
| 44 | + }, |
35 | 45 | "default_network_acl_name": { |
36 | 46 | "name": "default_network_acl_name", |
37 | 47 | "type": "string", |
|
80 | 90 | "matches": "^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", |
81 | 91 | "computed": true |
82 | 92 | }, |
| 93 | + "enable_vpc_flow_logs": { |
| 94 | + "name": "enable_vpc_flow_logs", |
| 95 | + "type": "bool", |
| 96 | + "description": "Flag to enable vpc flow logs. If true, flow log collector will be created", |
| 97 | + "default": false, |
| 98 | + "source": [ |
| 99 | + "ibm_iam_authorization_policy.policy.count", |
| 100 | + "ibm_is_flow_log.flow_logs.count" |
| 101 | + ], |
| 102 | + "pos": { |
| 103 | + "filename": "variables.tf", |
| 104 | + "line": 402 |
| 105 | + } |
| 106 | + }, |
| 107 | + "existing_cos_instance_guid": { |
| 108 | + "name": "existing_cos_instance_guid", |
| 109 | + "type": "string", |
| 110 | + "description": "GUID of the COS instance to create Flow log collector", |
| 111 | + "source": [ |
| 112 | + "ibm_iam_authorization_policy.policy.target_resource_instance_id" |
| 113 | + ], |
| 114 | + "pos": { |
| 115 | + "filename": "variables.tf", |
| 116 | + "line": 414 |
| 117 | + }, |
| 118 | + "immutable": true, |
| 119 | + "computed": true |
| 120 | + }, |
| 121 | + "existing_storage_bucket_name": { |
| 122 | + "name": "existing_storage_bucket_name", |
| 123 | + "type": "string", |
| 124 | + "description": "Name of the COS bucket to collect VPC flow logs", |
| 125 | + "required": true, |
| 126 | + "source": [ |
| 127 | + "ibm_is_flow_log.flow_logs.storage_bucket" |
| 128 | + ], |
| 129 | + "pos": { |
| 130 | + "filename": "variables.tf", |
| 131 | + "line": 420 |
| 132 | + }, |
| 133 | + "immutable": true |
| 134 | + }, |
| 135 | + "is_flow_log_collector_active": { |
| 136 | + "name": "is_flow_log_collector_active", |
| 137 | + "type": "bool", |
| 138 | + "description": "Indicates whether the collector is active. If false, this collector is created in inactive mode.", |
| 139 | + "default": true, |
| 140 | + "source": [ |
| 141 | + "ibm_is_flow_log.flow_logs.active" |
| 142 | + ], |
| 143 | + "pos": { |
| 144 | + "filename": "variables.tf", |
| 145 | + "line": 426 |
| 146 | + } |
| 147 | + }, |
83 | 148 | "name": { |
84 | 149 | "name": "name", |
85 | 150 | "type": "string", |
|
153 | 218 | "description": "The prefix that you would like to append to your resources", |
154 | 219 | "required": true, |
155 | 220 | "source": [ |
| 221 | + "ibm_is_flow_log.flow_logs.name", |
156 | 222 | "ibm_is_network_acl.network_acl.name", |
157 | 223 | "ibm_is_public_gateway.gateway.name", |
158 | 224 | "ibm_is_vpc.vpc.name", |
|
189 | 255 | "description": "The resource group ID where the VPC to be created", |
190 | 256 | "required": true, |
191 | 257 | "source": [ |
| 258 | + "ibm_is_flow_log.flow_logs.resource_group", |
192 | 259 | "ibm_is_network_acl.network_acl.resource_group", |
193 | 260 | "ibm_is_public_gateway.gateway.resource_group", |
194 | 261 | "ibm_is_subnet.subnet.resource_group", |
|
277 | 344 | "type": "list(string)", |
278 | 345 | "description": "List of Tags for the resource created", |
279 | 346 | "source": [ |
| 347 | + "ibm_is_flow_log.flow_logs.tags", |
280 | 348 | "ibm_is_public_gateway.gateway.tags", |
281 | 349 | "ibm_is_subnet.subnet.tags", |
282 | 350 | "ibm_is_vpc.vpc.tags" |
|
378 | 446 | "type": "TypeString", |
379 | 447 | "cloud_data_type": "crn" |
380 | 448 | }, |
| 449 | + "vpc_flow_logs": { |
| 450 | + "name": "vpc_flow_logs", |
| 451 | + "description": "Details of VPC flow logs collector", |
| 452 | + "pos": { |
| 453 | + "filename": "outputs.tf", |
| 454 | + "line": 104 |
| 455 | + } |
| 456 | + }, |
381 | 457 | "vpc_id": { |
382 | 458 | "name": "vpc_id", |
383 | 459 | "description": "ID of VPC created", |
|
416 | 492 | } |
417 | 493 | }, |
418 | 494 | "managed_resources": { |
| 495 | + "ibm_iam_authorization_policy.policy": { |
| 496 | + "mode": "managed", |
| 497 | + "type": "ibm_iam_authorization_policy", |
| 498 | + "name": "policy", |
| 499 | + "attributes": { |
| 500 | + "count": "enable_vpc_flow_logs", |
| 501 | + "target_resource_instance_id": "existing_cos_instance_guid" |
| 502 | + }, |
| 503 | + "provider": { |
| 504 | + "name": "ibm" |
| 505 | + }, |
| 506 | + "pos": { |
| 507 | + "filename": "main.tf", |
| 508 | + "line": 102 |
| 509 | + } |
| 510 | + }, |
| 511 | + "ibm_is_flow_log.flow_logs": { |
| 512 | + "mode": "managed", |
| 513 | + "type": "ibm_is_flow_log", |
| 514 | + "name": "flow_logs", |
| 515 | + "attributes": { |
| 516 | + "active": "is_flow_log_collector_active", |
| 517 | + "count": "enable_vpc_flow_logs", |
| 518 | + "name": "prefix", |
| 519 | + "resource_group": "resource_group_id", |
| 520 | + "storage_bucket": "existing_storage_bucket_name", |
| 521 | + "tags": "tags" |
| 522 | + }, |
| 523 | + "provider": { |
| 524 | + "name": "ibm" |
| 525 | + }, |
| 526 | + "pos": { |
| 527 | + "filename": "main.tf", |
| 528 | + "line": 113 |
| 529 | + } |
| 530 | + }, |
419 | 531 | "ibm_is_network_acl.network_acl": { |
420 | 532 | "mode": "managed", |
421 | 533 | "type": "ibm_is_network_acl", |
|
0 commit comments