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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions .copyplop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,18 @@ license:
# see breakdown of file types below
files:
exclude_paths:
- "**/when_string_test.go" # standard library generated files
- "CHANGELOG.md"
- "infrastructure/**"
- "**/import_examples_gen.json"
- "docs/**"
- ".github/**"
- "contributing/**"
- "**/README.md"
- "META.d/**"
- ".golangci.yml"
- ".markdownlint.yml"
- ".semgrep/**"
- "examples/**"
- "**/generators/allschemas"
extensions:
- ".go"
- ".yml"
- ".yaml"
- ".md"
- ".hcl"
- ".sh"
- ".tf"

comment_styles:
go: "//"
Expand Down
3 changes: 3 additions & 0 deletions .copywrite.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# SPDX-License-Identifier: MPL-2.0

schema_version = 1

project {
Expand Down
3 changes: 3 additions & 0 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<!-- Copyright IBM Corp. 2021, 2025 -->
<!-- SPDX-License-Identifier: MPL-2.0 -->

# Code of Conduct

HashiCorp Community Guidelines apply to you when interacting with the community here on GitHub and contributing code.
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/Bug_Report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: 🐛 Bug Report
about: If something isn't working as expected 🤔.
labels: ["bug"]
---
<!-- Copyright IBM Corp. 2021, 2025 -->
<!-- SPDX-License-Identifier: MPL-2.0 -->

<!---
Please note the following potential times when an issue might be in Terraform core:
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/Feature_Request.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: 🚀 Feature Request
about: I have a suggestion (and might want to implement myself 🙂)!
labels: enhancement
---
<!-- Copyright IBM Corp. 2021, 2025 -->
<!-- SPDX-License-Identifier: MPL-2.0 -->

<!--- Please keep this note for the community --->

Expand Down
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

blank_issues_enabled: false
contact_links:
- name: Terraform AWS Cloud Control Provider Questions
Expand Down
3 changes: 3 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<!-- Copyright IBM Corp. 2021, 2025 -->
<!-- SPDX-License-Identifier: MPL-2.0 -->

<!--- See what makes a good Pull Request at: https://github.com/hashicorp/terraform-provider-awscc/blob/main/contributing/CONTRIBUTING.md --->

<!--- Please keep this note for the community --->
Expand Down
3 changes: 3 additions & 0 deletions .github/actions/community_check/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<!-- Copyright IBM Corp. 2021, 2025 -->
<!-- SPDX-License-Identifier: MPL-2.0 -->

# Community Check

Check a username to see if it's in one of our community lists. We use this to help automate tasks within the repository.
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/community_check/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

name: Community Check
description: Check a username against our lists of groups within the community
Expand Down
3 changes: 3 additions & 0 deletions .github/actions/team_working_board/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<!-- Copyright IBM Corp. 2021, 2025 -->
<!-- SPDX-License-Identifier: MPL-2.0 -->

# Team Working Board

Used to automate the AWS Provider Team's working board.
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/team_working_board/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

name: Team Working Board
description: Manages an item within the AWS Provider Team's working board
Expand Down
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

# See GitHub's docs for more information on this file:
# https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
Expand Down
4 changes: 2 additions & 2 deletions .github/labeler-issue-needs-triage.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

needs-triage:
- '.*'
4 changes: 2 additions & 2 deletions .github/labeler-issue-triage.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

bug:
# General:
Expand Down
4 changes: 2 additions & 2 deletions .github/labeler-pr-needs-triage.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

needs-triage:
- any:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

# This workflow builds the product for all supported platforms and uploads the resulting
# binaries as Actions artifacts. The workflow also uploads a build metadata file
# (metadata.json) -- and a Terraform Registry manifest file (terraform-registry-manifest.json).
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/crt-post-promote-production.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

name: crt-post-promote-production

on:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/documentation-linters.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

name: Documentation Linters

on:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/feed-approval.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

name: Approval Automations

permissions:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/feed-comments.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

name: Comment Automations

permissions:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/label-notifications.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

name: Handle Label Notifications
permissions: {}

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/labelers.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

name: Label Automations

permissions:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

name: Linters

on:
Expand Down Expand Up @@ -61,7 +64,7 @@ jobs:
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('go.sum') }}
- run: cd tools && go install github.com/golangci/golangci-lint/cmd/golangci-lint
- run: cd tools && go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint
# Needed to access private repositories. Unfortunately, this cannot be restricted to specific repositories
- run: git config --global url."https://${{ secrets.PRIVATE_GOMOD_TOKEN }}:x-oauth-basic@github.com/hashicorp".insteadOf "https://github.com/hashicorp"
- run: golangci-lint run ./internal/...
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/projects.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

name: Provider Team Working Board
permissions: {}

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/provider-release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

# provider-release is a convenient way to request a promotion of artifacts to
# the staging or production release channel via Common Release Tooling (CRT).
#
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pull_request_feed.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

name: Pull Request Feed

on:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/registry-check.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

name: Registry Initialization Check

on:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/regressions.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

name: Handle Label Notifications
permissions: {}

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

name: "Feed: Release Tag"
on:
push:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tfplugindocs-check.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

name: Check if tfplugindocs result matches /docs

on:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

name: Update Changelog

on:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2021, 2025
# "SPDX-License-Identifier: MPL-2.0"

name: Update Schema
on:
workflow_dispatch:
Expand Down
79 changes: 35 additions & 44 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
# Copyright IBM Corp. 2021, 2025
# SPDX-License-Identifier: MPL-2.0

issues:
max-per-linter: 0
max-same-issues: 0
# "SPDX-License-Identifier: MPL-2.0"

version: "2"
linters:
disable-all: true
default: none
enable:
- asciicheck
- errcheck
- gocritic
- gofmt
- gosimple
- govet
- ineffassign
- makezero
Expand All @@ -22,47 +17,43 @@ linters:
- nilerr
- nolintlint
- staticcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- whitespace
settings:
errcheck:
exclude-functions:
- (*github.com/hashicorp/terraform-plugin-framework/tfsdk.State).SetAttribute
gocritic:
enabled-tags:
- diagnostic
disabled-tags:
- style
- performance
- experimental
- opinionated
mnd:
checks:
- argument
- assign
- case
- operation
- return
ignored-functions:
- os.Exit
- stringvalidator.LengthAtMost
- stringvalidator.LengthBetween
nolintlint:
allow-unused: false
allow-no-explanation:
- mnd
unparam:
check-exported: true

linters-settings:
errcheck:
# TODO: `ignore` is deprecated, but `exclude-functions` does not appear to work
ignore: fmt:.*,github.com/hashicorp/terraform-plugin-framework/tfsdk:SetAttribute,fprintf
# exclude-functions:
# - (*github.com/hashicorp/terraform-plugin-framework/tfsdk.State).SetAttribute
gocritic:
enabled-tags:
- diagnostic
disabled-tags:
- style
- performance
- experimental
- opinionated
mnd:
checks:
- argument
- assign
- case
# - condition
- operation
- return
ignored-functions:
- os.Exit
- stringvalidator.LengthAtMost
- stringvalidator.LengthBetween
nolintlint:
allow-unused: false
allow-no-explanation:
- mnd
stylecheck:
checks: ["all", "-ST1003"]
unparam:
check-exported: true
issues:
max-issues-per-linter: 0
max-same-issues: 0

run:
timeout: 10m
2 changes: 1 addition & 1 deletion .markdownlint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright IBM Corp. 2021, 2025
# SPDX-License-Identifier: MPL-2.0
# "SPDX-License-Identifier: MPL-2.0"

# Configuration for markdownlint
# https://github.com/DavidAnson/markdownlint#configuration
Expand Down
2 changes: 1 addition & 1 deletion .release/ci.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2021, 2025
# SPDX-License-Identifier: MPL-2.0

// Reference: https://github.com/hashicorp/crt-core-helloworld/blob/main/.release/ci.hcl (private repository)
Expand Down
2 changes: 1 addition & 1 deletion .release/release-metadata.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2021, 2025
# SPDX-License-Identifier: MPL-2.0

url_source_repository = "https://github.com/hashicorp/terraform-provider-awscc"
Expand Down
2 changes: 1 addition & 1 deletion .release/security-scan.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2021, 2025
# SPDX-License-Identifier: MPL-2.0

# Reference: https://github.com/hashicorp/security-scanner/blob/main/CONFIG.md#binary (private repository)
Expand Down
2 changes: 1 addition & 1 deletion .release/terraform-provider-awscc-artifacts.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# Copyright IBM Corp. 2021, 2025
# SPDX-License-Identifier: MPL-2.0

schema = 1
Expand Down
Loading
Loading