Skip to content

Commit 6fc7028

Browse files
committed
Merge branch 'master' into migration-PR-sdk-test-donot-delete
2 parents d6d3afc + c9676d6 commit 6fc7028

File tree

239 files changed

+317498
-2152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

239 files changed

+317498
-2152
lines changed

.secrets.baseline

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "go.mod|go.sum|.*.map|^.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2025-07-04T09:35:44Z",
6+
"generated_at": "2025-07-09T15:43:07Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"
@@ -567,6 +567,16 @@
567567
"verified_result": null
568568
}
569569
],
570+
"examples/ibm-is-ng/README.md": [
571+
{
572+
"hashed_secret": "91199272d5d6a574a51722ca6f3d1148edb1a0e7",
573+
"is_secret": false,
574+
"is_verified": false,
575+
"line_number": 21,
576+
"type": "Secret Keyword",
577+
"verified_result": null
578+
}
579+
],
570580
"examples/ibm-lbaas/main.tf": [
571581
{
572582
"hashed_secret": "be4fc4886bd949b369d5e092eb87494f12e57e5b",
@@ -812,31 +822,31 @@
812822
"hashed_secret": "731438016c5ab94431f61820f35e3ae5f8ad6004",
813823
"is_secret": false,
814824
"is_verified": false,
815-
"line_number": 538,
825+
"line_number": 539,
816826
"type": "Secret Keyword",
817827
"verified_result": null
818828
},
819829
{
820830
"hashed_secret": "12da2e35d6b50c902c014f1ab9e3032650368df7",
821831
"is_secret": false,
822832
"is_verified": false,
823-
"line_number": 544,
833+
"line_number": 545,
824834
"type": "Secret Keyword",
825835
"verified_result": null
826836
},
827837
{
828838
"hashed_secret": "165722fe6dd0ec0afbeefb51c8258a177497956b",
829839
"is_secret": false,
830840
"is_verified": false,
831-
"line_number": 836,
841+
"line_number": 837,
832842
"type": "Hex High Entropy String",
833843
"verified_result": null
834844
},
835845
{
836846
"hashed_secret": "813274ccae5b6b509379ab56982d862f7b5969b6",
837847
"is_secret": false,
838848
"is_verified": false,
839-
"line_number": 1483,
849+
"line_number": 1491,
840850
"type": "Base64 High Entropy String",
841851
"verified_result": null
842852
}
@@ -924,15 +934,15 @@
924934
"hashed_secret": "c8b6f5ef11b9223ac35a5663975a466ebe7ebba9",
925935
"is_secret": false,
926936
"is_verified": false,
927-
"line_number": 2424,
937+
"line_number": 2428,
928938
"type": "Secret Keyword",
929939
"verified_result": null
930940
},
931941
{
932942
"hashed_secret": "8abf4899c01104241510ba87685ad4de76b0c437",
933943
"is_secret": false,
934944
"is_verified": false,
935-
"line_number": 2430,
945+
"line_number": 2434,
936946
"type": "Secret Keyword",
937947
"verified_result": null
938948
}
@@ -3462,15 +3472,15 @@
34623472
"hashed_secret": "18697a00f52cfe022bb910a8a7af9d509114f997",
34633473
"is_secret": false,
34643474
"is_verified": false,
3465-
"line_number": 114,
3475+
"line_number": 113,
34663476
"type": "Hex High Entropy String",
34673477
"verified_result": null
34683478
},
34693479
{
34703480
"hashed_secret": "1018de48014135565e13b4b33d5d34cde9d5c23b",
34713481
"is_secret": false,
34723482
"is_verified": false,
3473-
"line_number": 243,
3483+
"line_number": 242,
34743484
"type": "Hex High Entropy String",
34753485
"verified_result": null
34763486
}

CHANGELOG.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,64 @@
1+
# 1.80.3 (July 11, 2025)
2+
## Bug Fixes
3+
4+
### VPC Infrastructure
5+
* fix(is-bm): fixed bm error on delete ([6346](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6346))
6+
### CIS
7+
* fix(CIS): update domain setting proxy read timeout([6347](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6347))
8+
9+
10+
# 1.80.2 (July 10, 2025)
11+
## Bug Fixes
12+
13+
### Global Catalog
14+
* updated platform services to use local sdk ([6343](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6343))
15+
16+
# 1.80.1 (July 9, 2025)
17+
18+
## Bug Fixes
19+
20+
### Cloud Logs
21+
* fix alerts metadata_labels ([6306](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6306))
22+
23+
### General
24+
* Update SDK for MR for Error Format ([6338](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6338))
25+
26+
### Power Systems
27+
* [Resource] [DataSource] Add Route data sources and resources ([6326](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6326))
28+
* [Resource] [Datasource] Replace SSH Key API with new API ([6327](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6327))
29+
30+
31+
## Enhancements
32+
33+
### Power Systems
34+
* Deprecate vpn resources ([6317](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6317))
35+
* [Resource] [Data source] Remove access config and jumbo fields, deprecate network-peer fields ([6319](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6319))
36+
* Add out_of_band_deleted attribute to terraformvolume data source and resource ([6320](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6320))
37+
* Add status_detail attribute to ibm_pi_instance_snapshot data source and resource ([6323](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6323))
38+
* [Datasource] Sap profile filtering ([6324](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6324))
39+
* [Resource] [Datasource] Granular CRN for pi_placement_group and pi_spp_placement_group resources and datasources ([6325](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6325))
40+
* [Resource] [Datasource] Add Advertise and ArpBroadcast support ([6322](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6322))
41+
42+
### VPC Infrastructure
43+
* reorganised VPC examples folder ([6206](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6206))
44+
* removed redundant code from is_ipsec_policy resource ([6286](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6286))
45+
46+
47+
## Documentation
48+
49+
### Cloud Logs
50+
* Remove access_credential from logs-routing resources ([6332](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6332))
51+
52+
### IAM
53+
* Improvide wait logic for IAM identity template assignments and correct policy refs field mapping ([6314](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6314))
54+
55+
### Power Systems
56+
* Update terraform docs with new systems ([6318](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6318))
57+
58+
### VPC Infrastructure
59+
* added example and related documents ([6296](https://github.com/IBM-Cloud/terraform-provider-ibm/pull/6296))
60+
61+
162
# 1.80.0 (July 4, 2025)
263

364
## Bug Fixes

examples/ibm-is-flow-log/README.md

Lines changed: 49 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,59 @@
1-
# Example for VPC Flow Logs resources
1+
# IBM Cloud VPC Flow Logs Example
22

3-
This example shows how to create Flow Logs for VPC resources.
3+
This example demonstrates how to create Flow Logs for IBM Cloud VPC resources. Flow logs capture network traffic information for analysis, security auditing, and troubleshooting.
44

5-
Following types of resources are supported:
5+
## Supported Resources
66

7-
* [Flow Logs](https://cloud.ibm.com/docs/terraform)
7+
* [Flow Logs](https://cloud.ibm.com/docs/vpc?topic=vpc-flow-logs)
88

9+
## Terraform Compatibility
910

10-
## Terraform versions
11+
* Terraform 0.12 or later (for current branch - `master`)
12+
* For Terraform 0.11 compatibility, use branch `terraform_v0.11.x`
1113

12-
Terraform 0.12. Pin module version to `~> v1.5.1`. Branch - `master`.
14+
## Usage
1315

14-
Terraform 0.11. Pin module version to `~> v0.27.0`. Branch - `terraform_v0.11.x`.
16+
To run this example, execute:
1517

16-
## Usage
18+
```bash
19+
terraform init
20+
terraform plan
21+
terraform apply
22+
```
1723

18-
To run this example you need to execute:
24+
To remove the created resources:
1925

2026
```bash
21-
$ terraform init
22-
$ terraform plan
23-
$ terraform apply
27+
terraform destroy
2428
```
2529

26-
Run `terraform destroy` when you don't need these resources.
30+
## Implementation Details
31+
32+
This example creates:
33+
34+
1. A Cloud Object Storage instance to store the flow logs
35+
2. A bucket within that instance
36+
3. A Flow Log collector targeting a VPC instance
37+
4. Required permissions between the collector and the bucket
2738

28-
## Example Usage
39+
### How Flow Logs Work
2940

30-
Create a Flow log:
41+
VPC Flow Logs capture network traffic information (IP addresses, protocols, ports) going to and from network interfaces within your VPC. The data is sent to a specified Cloud Object Storage bucket for later retrieval and analysis.
42+
43+
## Example Configuration
3144

3245
```hcl
46+
# Get resource group for Cloud Object Storage
3347
data "ibm_resource_group" "cos_group" {
3448
name = var.resource_group
3549
}
3650
51+
# Get information about an existing instance
3752
data "ibm_is_instance" "ds_instance" {
38-
name = "vpc1-instance"
53+
name = "vpc1-instance"
3954
}
4055
56+
# Create a Cloud Object Storage service instance
4157
resource "ibm_resource_instance" "instance1" {
4258
name = "cos-instance"
4359
resource_group_id = data.ibm_resource_group.cos_group.id
@@ -46,14 +62,16 @@ resource "ibm_resource_instance" "instance1" {
4662
location = "global"
4763
}
4864
65+
# Create a bucket for storing flow logs
4966
resource "ibm_cos_bucket" "bucket1" {
5067
bucket_name = "us-south-bucket-vpc1"
5168
resource_instance_id = ibm_resource_instance.instance1.id
5269
region_location = var.region
5370
storage_class = "standard"
5471
}
5572
56-
resource ibm_is_flow_log test_flowlog {
73+
# Create a flow log collector for an instance
74+
resource "ibm_is_flow_log" "test_flowlog" {
5775
depends_on = [ibm_cos_bucket.bucket1]
5876
name = "test-instance-flow-log"
5977
target = data.ibm_is_instance.ds_instance.id
@@ -62,31 +80,23 @@ resource ibm_is_flow_log test_flowlog {
6280
}
6381
```
6482

65-
## Examples
66-
67-
* [ Flow Log ](https://github.com/IBM-Cloud/terraform-provider-ibm/tree/master/examples/ibm-is-flow-log)
68-
69-
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
70-
## Requirements
83+
## Additional Resources
7184

72-
| Name | Version |
73-
|------|---------|
74-
| terraform | ~> 0.12 |
85+
* [IBM Cloud Flow Logs Documentation](https://cloud.ibm.com/docs/vpc?topic=vpc-flow-logs)
86+
* [IBM Terraform Provider Examples](https://github.com/IBM-Cloud/terraform-provider-ibm/tree/master/examples/ibm-is-flow-log)
7587

76-
## Providers
77-
78-
| Name | Version |
79-
|------|---------|
80-
| ibm | n/a |
81-
82-
## Inputs
88+
## Input Parameters
8389

8490
| Name | Description | Type | Required |
8591
|------|-------------|------|---------|
86-
| name | The unique user-defined name for this flow log collector. | `string` | yes |
87-
| target | The id of the target this collector is to collect flow logs for. If the target is an instance, subnet, or VPC, flow logs will not be collected for any network interfaces within the target that are themselves the target of a more specific flow log collector. | `string` | yes |
88-
| storage\_bucket | The name of the Cloud Object Storage bucket where the collected flows will be logged. The bucket must exist and an IAM service authorization must grant IBM Cloud Flow Logs resources of VPC Infrastructure Services writer access to the bucket. | `string` | yes |
89-
| active | Indicates whether this collector is active. If false, this collector is created in inactive mode. Default is true. | `boolean` | no |
90-
| resource\_group | The resource group ID where the flow log is to be created. | `string` | no |
92+
| name | The unique user-defined name for the flow log collector | `string` | yes |
93+
| target | The ID of the target to collect flow logs for | `string` | yes |
94+
| storage\_bucket | The name of the Cloud Object Storage bucket for log storage | `string` | yes |
95+
| active | Whether this collector is active (default: true) | `boolean` | no |
96+
| resource\_group | The resource group ID for the flow log | `string` | no |
97+
98+
## Notes
9199

92-
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
100+
* An IAM service authorization must be in place to grant VPC Flow Logs services write access to the bucket
101+
* Flow logs can be created for instances, subnets, or entire VPCs
102+
* More specific flow log collectors take precedence over less specific ones

examples/ibm-is-flow-log/main.tf

Lines changed: 44 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,60 @@
1+
# ==========================================================================
2+
# Flow Logs Configuration
3+
# ==========================================================================
14

5+
# ==========================================================================
6+
# Data Sources
7+
# ==========================================================================
8+
9+
# Get resource group for Cloud Object Storage
210
data "ibm_resource_group" "cos_group" {
3-
name = var.resource_group
11+
name = var.resource_group # Use resource group name from variable
412
}
513

14+
# Get information about an existing instance
615
data "ibm_is_instance" "ds_instance" {
7-
name = "vpc1-instance"
16+
name = "vpc1-instance" # Target instance for flow logs
817
}
918

19+
# ==========================================================================
20+
# Cloud Object Storage Resources
21+
# ==========================================================================
22+
23+
# Create a Cloud Object Storage service instance
1024
resource "ibm_resource_instance" "instance1" {
11-
name = "cos-instance"
12-
resource_group_id = data.ibm_resource_group.cos_group.id
13-
service = "cloud-object-storage"
14-
plan = "standard"
15-
location = "global"
25+
name = "cos-instance" # Name for the COS instance
26+
resource_group_id = data.ibm_resource_group.cos_group.id # Resource group for COS
27+
service = "cloud-object-storage" # IBM Cloud service type
28+
plan = "standard" # Service plan
29+
location = "global" # Global service
1630
}
1731

32+
# Create a bucket for storing flow logs
1833
resource "ibm_cos_bucket" "bucket1" {
19-
bucket_name = "us-south-bucket-vpc1"
20-
resource_instance_id = ibm_resource_instance.instance1.id
21-
region_location = var.region
22-
storage_class = "standard"
34+
bucket_name = "us-south-bucket-vpc1" # Name of the bucket
35+
resource_instance_id = ibm_resource_instance.instance1.id # COS instance
36+
region_location = var.region # Region for the bucket
37+
storage_class = "standard" # Storage class (standard, vault, cold, smart)
2338
}
2439

25-
resource ibm_is_flow_log test_flowlog {
26-
depends_on = [ibm_cos_bucket.bucket1]
27-
name = "test-instance-flow-log"
28-
target = data.ibm_is_instance.ds_instance.id
29-
active = true
30-
storage_bucket = ibm_cos_bucket.bucket1.bucket_name
40+
# ==========================================================================
41+
# Flow Log Resources
42+
# ==========================================================================
43+
44+
# Create a flow log collector for an instance
45+
resource "ibm_is_flow_log" "test_flowlog" {
46+
depends_on = [ibm_cos_bucket.bucket1] # Create after bucket is available
47+
name = "test-instance-flow-log" # Name for the flow log
48+
target = data.ibm_is_instance.ds_instance.id # Target instance to collect logs for
49+
active = true # Flow log collector is active
50+
storage_bucket = ibm_cos_bucket.bucket1.bucket_name # Bucket where logs will be stored
3151
}
3252

33-
data ibm_is_flow_logs "test_flow_logs" {
53+
# ==========================================================================
54+
# Flow Log Data Sources
55+
# ==========================================================================
3456

35-
}
57+
# List all flow logs
58+
data "ibm_is_flow_logs" "test_flow_logs" {
59+
# No filters specified - will return all flow logs
60+
}

0 commit comments

Comments
 (0)