Skip to content
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .ci/.semgrep-caps-aws-ec2.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2014, 2025
# "SPDX-License-Identifier: MPL-2.0"

# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: aws-in-func-name
Expand Down
3 changes: 3 additions & 0 deletions .ci/.semgrep-configs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2014, 2025
# "SPDX-License-Identifier: MPL-2.0"

# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: test-config-funcs-correct-form
Expand Down
3 changes: 3 additions & 0 deletions .ci/.semgrep-constants.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2014, 2025
# "SPDX-License-Identifier: MPL-2.0"

# Generated by internal/generate/attrconsts/main.go; DO NOT EDIT.

rules:
Expand Down
3 changes: 3 additions & 0 deletions .ci/.semgrep-service-name0.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2014, 2025
# "SPDX-License-Identifier: MPL-2.0"

# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: accessanalyzer-in-func-name
Expand Down
3 changes: 3 additions & 0 deletions .ci/.semgrep-service-name1.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2014, 2025
# "SPDX-License-Identifier: MPL-2.0"

# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: configservice-in-var-name
Expand Down
3 changes: 3 additions & 0 deletions .ci/.semgrep-service-name2.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2014, 2025
# "SPDX-License-Identifier: MPL-2.0"

# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: ivs-in-const-name
Expand Down
3 changes: 3 additions & 0 deletions .ci/.semgrep-service-name3.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2014, 2025
# "SPDX-License-Identifier: MPL-2.0"

# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: rdsdataservice-in-const-name
Expand Down
3 changes: 3 additions & 0 deletions .ci/.semgrep-test-constants.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2014, 2025
# "SPDX-License-Identifier: MPL-2.0"

# Generated by internal/generate/acctestconsts/main.go; DO NOT EDIT.
rules:
- id: literal-12Digit-string-test-constant
Expand Down
37 changes: 35 additions & 2 deletions .copyplop.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Example configuration for IBM project
# Terraform AWS Provider Copyplop Configuration
copyright:
holder: "IBM Corp."
start_year: 2014
Expand All @@ -10,9 +10,12 @@ license:
identifier: "MPL-2.0"
format: "SPDX-License-Identifier: {{.Identifier}}"

# see breakdown of file types below
files:
include_paths:
- "internal/**"
exclude_paths:
- "**/when_string_test.go" # standard library generated files
extensions:
- ".go"

Expand All @@ -32,7 +35,7 @@ files:
- ".html.markdown"

detection:
skip_generated: true
skip_generated: false
generated_patterns:
- "Code generated"
- "DO NOT EDIT"
Expand All @@ -46,3 +49,33 @@ third_party:
action: "above"
patterns:
- "Copyright.*[a-zA-Z0-9].*"

# Breakdown of file types in the repository (23,516 files, 2025)
# these account for 99.9% of files
# Count Ext Pct Should (c)?
# 7984 go 34.0% y
# 6780 markdown 28.8% y
# 5043 txt 21.4% n (mostly changelogs, config)
# 2206 tf 9.4% y
# 512 gtpl 2.2% n (a few needed but not all, many non-header pieces of templates)
# 312 md 1.3% y
# 233 golden 1.0% n
# 110 yml 0.5% y
# 62 zip 0.3% n (binary)
# 42 hcl 0.2% y
# 32 json 0.1% y
# 25 sh 0.1% y
# 24 tmpl 0.1% n (non-header pieces of templates)
# 17 tfvars 0.1% n
# 15 mod 0.1% n
# 13 js 0.1% n
# 12 png 0.1% n (binary)
# 10 csv 0.0% n
# 9 sum 0.0% n
# 8 yaml 0.0% y
# 8 pem 0.0% n
# 6 tpl 0.0% n (xml templates)
# 6 py 0.0% y
# 5 xml 0.0% n
# 5 gitignore 0.0% n
# 3 svg 0.0% n
3 changes: 3 additions & 0 deletions .github/labeler-issue-triage.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2014, 2025
# "SPDX-License-Identifier: MPL-2.0"

# Generated by internal/generate/issuelabels/main.go; DO NOT EDIT.
bug:
# Bug Issue Template:
Expand Down
3 changes: 3 additions & 0 deletions .github/labeler-pr-triage.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2014, 2025
# "SPDX-License-Identifier: MPL-2.0"

# YAML generated by internal/generate/prlabels/main.go; DO NOT EDIT.
client-connections:
- any:
Expand Down
3 changes: 3 additions & 0 deletions .teamcity/components/generated/services_all.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/teamcity/services.go; DO NOT EDIT.

val services = mapOf(
Expand Down
2 changes: 2 additions & 0 deletions .teamcity/scripts/provider_tests/acceptance_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright IBM Corp. 2014, 2025
# SPDX-License-Identifier: MPL-2.0

# Code generated by internal/generate/teamcity/provider_tests.go; DO NOT EDIT.

Expand Down
2 changes: 2 additions & 0 deletions .teamcity/scripts/provider_tests/unit_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright IBM Corp. 2014, 2025
# SPDX-License-Identifier: MPL-2.0

# Code generated by internal/generate/teamcity/provider_tests.go; DO NOT EDIT.

Expand Down
3 changes: 3 additions & 0 deletions infrastructure/repository/labels-service.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2014, 2025
# "SPDX-License-Identifier: MPL-2.0"

# Generated by internal/generate/servicelabels/main.go; DO NOT EDIT.
variable "service_labels" {
default = [
Expand Down
3 changes: 3 additions & 0 deletions internal/conns/awsclient_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions internal/generate/acctestconsts/semgrep.gtpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2014, 2025
# "SPDX-License-Identifier: MPL-2.0"

# Generated by internal/generate/acctestconsts/main.go; DO NOT EDIT.
rules:
{{- range .Constants }}
Expand Down
3 changes: 2 additions & 1 deletion internal/generate/attrconsts/constOrQuote.gtpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/attrconsts/main.go; DO NOT EDIT.

package names
Expand Down
3 changes: 2 additions & 1 deletion internal/generate/attrconsts/consts.gtpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/attrconsts/main.go; DO NOT EDIT.

package names
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/attrconsts/semgrep.gtpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2014, 2025
# "SPDX-License-Identifier: MPL-2.0"

# Generated by internal/generate/attrconsts/main.go; DO NOT EDIT.

rules:
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/awsclient/file.gtpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/awsclient/main.go; DO NOT EDIT.
package conns

Expand Down
3 changes: 3 additions & 0 deletions internal/generate/customendsfwschema/file.gtpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/customendsfwschema/main.go; DO NOT EDIT.

package framework
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/customendsschema/file.gtpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/customendsschema/main.go; DO NOT EDIT.

package sdkv2
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/identitytests/resource_test.go.gtpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/identitytests/main.go; DO NOT EDIT.

{{/* This can be removed when the Exists check supports enhanced region support */}}
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/issuelabels/file.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2014, 2025
# "SPDX-License-Identifier: MPL-2.0"

# Generated by internal/generate/issuelabels/main.go; DO NOT EDIT.
bug:
# Bug Issue Template:
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/listpages/v2/header.gtpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by "internal/generate/listpages/main.go {{ .Parameters }}"; DO NOT EDIT.

package {{ .DestinationPackage }}
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/namescapslist/header.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Caps List
<!-- Copyright IBM Corp. 2014, 2025 -->
<!-- SPDX-License-Identifier: MPL-2.0 -->

<!-- # Generated by internal/generate/namescapslist/main.go; DO NOT EDIT. -->

In Terraform AWS Provider code, we have two guiding principles for capitalization in function, constant, and variable names:
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/namesconsts/file.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/namesconsts/main.go; DO NOT EDIT.
package names

Expand Down
3 changes: 3 additions & 0 deletions internal/generate/paginator/header.gtpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by "internal/generate/listpages/main.go {{ .Parameters }}"; DO NOT EDIT.

package {{ .DestinationPackage }}
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/prlabels/file.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2014, 2025
# "SPDX-License-Identifier: MPL-2.0"

# YAML generated by internal/generate/prlabels/main.go; DO NOT EDIT.
client-connections:
- any:
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/serviceendpointtests/file.gtpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/serviceendpointtests/main.go; DO NOT EDIT.

package {{ .PackageName }}_test
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/servicelabels/file.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2014, 2025
# "SPDX-License-Identifier: MPL-2.0"

# Generated by internal/generate/servicelabels/main.go; DO NOT EDIT.
variable "service_labels" {
default = [
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/servicepackage/endpoint_resolver.go.gtpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/servicepackage/main.go; DO NOT EDIT.

package {{ .ProviderPackage }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/servicepackage/main.go; DO NOT EDIT.

{{ define "IdentifierAttribute" -}}
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/servicepackages/file.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/servicepackages/main.go; DO NOT EDIT.

package {{ .PackageName }}
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/servicesemgrep/cae.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2014, 2025
# "SPDX-License-Identifier: MPL-2.0"

# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: aws-in-func-name
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/servicesemgrep/configs.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2014, 2025
# "SPDX-License-Identifier: MPL-2.0"

# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
- id: test-config-funcs-correct-form
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/servicesemgrep/semgrep_header.tmpl
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Copyright IBM Corp. 2014, 2025
# "SPDX-License-Identifier: MPL-2.0"

# Generated by internal/generate/servicesemgrep/main.go; DO NOT EDIT.
rules:
3 changes: 3 additions & 0 deletions internal/generate/sweeperregistration/file.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/sweeperregistration/main.go; DO NOT EDIT.

package {{ .PackageName }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ page_title: "Tag Policy Compliance"
description: |-
The Terraform AWS provider supports enforcing compliance with organizational tag policies during plan and apply operations.
---
<!-- Copyright IBM Corp. 2014, 2025 -->
<!-- SPDX-License-Identifier: MPL-2.0 -->

<!-- Generated by internal/generate/tagpolicy/tag_policy_compliance.go; DO NOT EDIT. -->

Expand Down
3 changes: 3 additions & 0 deletions internal/generate/tagresource/resource.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/tagresource/main.go; DO NOT EDIT.

package {{ .ServicePackage }}
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/tagresource/tests.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/tagresource/main.go; DO NOT EDIT.

package {{ .ServicePackage }}_test
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/tags/templates/header_body.gtpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/tags/main.go; DO NOT EDIT.
package {{ .ServicePackage }}

Expand Down
3 changes: 3 additions & 0 deletions internal/generate/tagstests/data_source_test.go.gtpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/tagstests/main.go; DO NOT EDIT.

{{ define "TestCaseSetupNoProviders" -}}
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/tagstests/resource_test.go.gtpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/tagstests/main.go; DO NOT EDIT.

{{ define "TestCaseSetupNoProviders" -}}
Expand Down
3 changes: 3 additions & 0 deletions internal/generate/tagstests/tags_check.go.gtpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/tagstests/main.go; DO NOT EDIT.

package {{ .ProviderPackage }}_test
Expand Down
2 changes: 2 additions & 0 deletions internal/generate/teamcity/acceptance_tests.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Copyright IBM Corp. 2014, 2025
# SPDX-License-Identifier: MPL-2.0

# Code generated by internal/generate/teamcity/provider_tests.go; DO NOT EDIT.

Expand Down
3 changes: 3 additions & 0 deletions internal/generate/teamcity/services.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2014, 2025
// SPDX-License-Identifier: MPL-2.0

// Code generated by internal/generate/teamcity/services.go; DO NOT EDIT.

val services = mapOf(
Expand Down
Loading
Loading