Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 7, 2024
1 parent 54e36f6 commit 1b3bfc8
Show file tree
Hide file tree
Showing 24 changed files with 36 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# These owners will be the default owners for everything in the repo.
* @anmolnagpal @clouddrove/approvers @clouddrove-ci
* @anmolnagpal @clouddrove/approvers @clouddrove-ci
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ updates:
- package-ecosystem: "terraform" # See documentation for possible values
directory: "_example/" # Location of package manifests
schedule:
interval: "weekly"
interval: "weekly"
2 changes: 1 addition & 1 deletion .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ jobs:
GITHUB: ${{ secrets.GITHUB }}
with:
tfcheck: 'basic / Check code format'
...
...
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@master
secrets: inherit
with:
branch: 'master'
branch: 'master'
3 changes: 1 addition & 2 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
actions_subcommand: 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 'Slack Notification'
uses: clouddrove/action-slack@v2
with:
Expand All @@ -51,4 +51,3 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
if: always()

1 change: 0 additions & 1 deletion .github/workflows/tf-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ jobs:
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@1.2.2
with:
working_directory: './_examples/'

2 changes: 1 addition & 1 deletion .github/workflows/tflint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ jobs:
tf-lint:
uses: clouddrove/github-shared-workflows/.github/workflows/tf-lint.yml@1.2.2
secrets:
GITHUB: ${{ secrets.GITHUB }}
GITHUB: ${{ secrets.GITHUB }}
2 changes: 1 addition & 1 deletion .github/workflows/tfsec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ jobs:
uses: clouddrove/github-shared-workflows/.github/workflows/tfsec.yml@master
secrets: inherit
with:
working_directory: '.'
working_directory: '.'
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0



[1.0.0]: https://github.com/clouddrove/terraform-gcp-kms/releases/tag/1.0.0
[1.0.0]: https://github.com/clouddrove/terraform-gcp-kms/releases/tag/1.0.0
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,4 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<hr>


We are a group of DevOps engineers & architects, joining hands in this ever evolving digital landscape. With our strong belief in Automation; just like microservices, always on the lookout to split the the infrastructure into smaller connected resources (database, cluster and more) which could be standardized, are manageable, scalable, secure & follow industry best practices.
We are a group of DevOps engineers & architects, joining hands in this ever evolving digital landscape. With our strong belief in Automation; just like microservices, always on the lookout to split the the infrastructure into smaller connected resources (database, cluster and more) which could be standardized, are manageable, scalable, secure & follow industry best practices.


This module includes Terraform open source, examples, and automation tests (for better understanding), which would help you create and improve your infrastructure with minimalistic coding.
Expand Down Expand Up @@ -79,7 +79,7 @@ This table contains both Prerequisites and Providers:
Refer to complete documentation: [here](docs/io.md)


<!--
<!--
## Module Dependencies
This module has dependencies on:
Expand Down Expand Up @@ -107,7 +107,7 @@ Refer [here](CHANGELOG.md).

## ✨ Contributors

Big thanks to our contributors for elevating our project with their dedication and expertise! But, we do not wish to stop there, would like to invite contributions from the community in improving these projects and making them more versatile for better reach. Remember, every bit of contribution is immensely valuable, as, together, we are moving in only 1 direction, i.e. forward.
Big thanks to our contributors for elevating our project with their dedication and expertise! But, we do not wish to stop there, would like to invite contributions from the community in improving these projects and making them more versatile for better reach. Remember, every bit of contribution is immensely valuable, as, together, we are moving in only 1 direction, i.e. forward.

<a href="https://github.com/clouddrove/terraform-gcp-kms/graphs/contributors">
<img src="https://contrib.rocks/image?repo=clouddrove/terraform-gcp-kms&max" />
Expand Down Expand Up @@ -135,7 +135,7 @@ Big thanks to our contributors for elevating our project with their dedication a



## Feedback
## Feedback
Spot a bug or have thoughts to share with us? Let's squash it together! Log it in our [issue tracker](https://github.com/clouddrove/terraform-gcp-kms/issues), feel free to drop us an email at [hello@clouddrove.com](mailto:hello@clouddrove.com).

Show some love with a ★ on [our GitHub](https://github.com/clouddrove/terraform-gcp-kms)! if our work has brightened your day! – your feedback fuels our journey!
Expand All @@ -147,7 +147,7 @@ We have [*100+ Terraform modules*][terraform_modules] 🙌. You could consider t

- [Terraform Module Registry:](https://registry.terraform.io/namespaces/clouddrove) Discover our Terraform modules here.

- [Terraform Modules for AWS/Azure Modules:](https://github.com/clouddrove/toc) Explore our comprehensive Table of Contents for easy navigation through our documentation for modules pertaining to AWS, Azure & GCP.
- [Terraform Modules for AWS/Azure Modules:](https://github.com/clouddrove/toc) Explore our comprehensive Table of Contents for easy navigation through our documentation for modules pertaining to AWS, Azure & GCP.

- [Terraform Modules for Digital Ocean:](https://github.com/terraform-do-modules/toc) Check out our specialized Terraform modules for Digital Ocean.

Expand All @@ -173,7 +173,7 @@ Join our tech elites [Join Now][slack] 🚀
Click [here][blog] :books: :star2:

## Tap into our capabilities
We provide a platform for organizations to engage with experienced top-tier DevOps & Cloud services. Tap into our pool of certified engineers and architects to elevate your DevOps and Cloud Solutions.
We provide a platform for organizations to engage with experienced top-tier DevOps & Cloud services. Tap into our pool of certified engineers and architects to elevate your DevOps and Cloud Solutions.

At [CloudDrove][website], has extensive experience in designing, building & migrating environments, securing, consulting, monitoring, optimizing, automating, and maintaining complex and large modern systems. With remarkable client footprints in American & European corridors, our certified architects & engineers are ready to serve you as per your requirements & schedule. Write to us at [business@clouddrove.com](mailto:business@clouddrove.com).

Expand All @@ -188,4 +188,4 @@ At [CloudDrove][website], has extensive experience in designing, building & migr
[linkedin]: https://cpco.io/linkedin
[twitter]: https://twitter.com/clouddrove/
[email]: https://clouddrove.com/contact-us.html
[terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language=
[terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language=
2 changes: 1 addition & 1 deletion README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ prerequesties:
- name: Terraform
url: https://learn.hashicorp.com/terraform/getting-started/install.html
version: ">= 1.6.6"

providers:
- name: gcp
url: https://cloud.google.com/
Expand Down
4 changes: 2 additions & 2 deletions _examples/basic/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

##-----------------------------------------------------------------------------
## KMS key module call.
##-----------------------------------------------------------------------------
## KMS key module call.
##-----------------------------------------------------------------------------

module "kms_key" {
Expand Down
2 changes: 1 addition & 1 deletion _examples/basic/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
output "id" {
value = module.kms_key[*].key
description = "The ID of the VPC."
}
}
2 changes: 1 addition & 1 deletion _examples/basic/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ variable "location" {
type = string
default = "us-east1"
description = "Location for the keyring."
}
}
2 changes: 1 addition & 1 deletion _examples/basic/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ terraform {
version = ">= 3.50, < 5.0"
}
}
}
}
4 changes: 2 additions & 2 deletions _examples/complete/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

##-----------------------------------------------------------------------------
## KMS key module call.
##-----------------------------------------------------------------------------
## KMS key module call.
##-----------------------------------------------------------------------------

module "kms_key" {
Expand Down
2 changes: 1 addition & 1 deletion _examples/complete/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
output "id" {
value = module.kms_key[*].key
description = "The ID of the VPC."
}
}
2 changes: 1 addition & 1 deletion _examples/complete/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ terraform {
version = ">= 3.50, < 5.0"
}
}
}
}
1 change: 0 additions & 1 deletion docs/io.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@
| keyring | Self link of the keyring. |
| keyring\_name | Name of the keyring. |
| keyring\_resource | Keyring resource. |

16 changes: 8 additions & 8 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##-----------------------------------------------------------------------------
## Labels module callled that will be used for naming and tags.
## Labels module callled that will be used for naming and tags.
##-----------------------------------------------------------------------------

module "labels" {
Expand All @@ -10,7 +10,7 @@ module "labels" {
label_order = var.label_order
}

##-----------------------------------------------------------------------------
##-----------------------------------------------------------------------------
## resource uses for create key-ring
##-----------------------------------------------------------------------------

Expand All @@ -20,8 +20,8 @@ resource "google_kms_key_ring" "key_ring" {
location = var.location
}

##-----------------------------------------------------------------------------
## prevent_destroy = true for long lived key not deleting using terraform
##-----------------------------------------------------------------------------
## prevent_destroy = true for long lived key not deleting using terraform
##-----------------------------------------------------------------------------

resource "google_kms_crypto_key" "key" {
Expand All @@ -42,8 +42,8 @@ resource "google_kms_crypto_key" "key" {

}

##-----------------------------------------------------------------------------
## prevent_destroy = false for short lived key deleting using terraform
##-----------------------------------------------------------------------------
## prevent_destroy = false for short lived key deleting using terraform
##-----------------------------------------------------------------------------

resource "google_kms_crypto_key" "key_ephemeral" {
Expand All @@ -63,8 +63,8 @@ resource "google_kms_crypto_key" "key_ephemeral" {
}
}

##-----------------------------------------------------------------------------
## resource uses for binding iam role to service-account
##-----------------------------------------------------------------------------
## resource uses for binding iam role to service-account
##-----------------------------------------------------------------------------

resource "google_kms_crypto_key_iam_binding" "owners" {
Expand Down
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ output "keyring_name" {

output "key" {
value = join("", google_kms_crypto_key.key[*].id)
}
}
3 changes: 0 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,3 @@ variable "key_rotation_period" {
default = null
description = "specifies the duration, expressed in seconds, for the automatic rotation of cryptographic keys"
}



2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ terraform {
version = ">= 3.50, < 5.0"
}
}
}
}

0 comments on commit 1b3bfc8

Please sign in to comment.