Skip to content

Commit

Permalink
Merge pull request #3 from matchan26/scaffold-working-directory-terra…
Browse files Browse the repository at this point in the history
…form/gcp/wordpress-infra-20231216T142348

Scaffold a working directory (terraform/gcp/wordpress-infra)
  • Loading branch information
matchan26 authored Dec 16, 2023
2 parents 02b14fa + e41fab0 commit 091cd00
Show file tree
Hide file tree
Showing 11 changed files with 203 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# repository owner
@matchan26
* @matchan26
24 changes: 24 additions & 0 deletions terraform/gcp/wordpress-infra/.terraform.lock.hcl

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

47 changes: 47 additions & 0 deletions terraform/gcp/wordpress-infra/.tflint.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# https://github.com/terraform-linters/tflint-ruleset-google#installation
plugin "google" {
enabled = true
version = "0.26.0" # renovate: depName=terraform-linters/tflint-ruleset-google
source = "github.com/terraform-linters/tflint-ruleset-google"
}

# https://github.com/terraform-linters/tflint/tree/master/docs/rules
rule "terraform_deprecated_index" {
enabled = true
}

rule "terraform_unused_declarations" {
enabled = true
}

rule "terraform_comment_syntax" {
enabled = true
}

rule "terraform_documented_outputs" {
enabled = true
}

rule "terraform_documented_variables" {
enabled = true
}

rule "terraform_typed_variables" {
enabled = true
}

rule "terraform_naming_convention" {
enabled = true
}

rule "terraform_required_version" {
enabled = true
}

rule "terraform_required_providers" {
enabled = true
}

rule "terraform_standard_module_structure" {
enabled = false
}
9 changes: 9 additions & 0 deletions terraform/gcp/wordpress-infra/.tfmigrate.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tfmigrate {
migration_dir = "./tfmigrate"
history {
storage "s3" {
bucket = "matchan26-terraform-state-backend-bucket"
key = "terraform/gcp/wordpress-infra/history.json"
}
}
}
79 changes: 79 additions & 0 deletions terraform/gcp/wordpress-infra/aqua/aqua-checksums.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"checksums": [
{
"id": "github_release/github.com/aquasecurity/trivy/v0.46.0/trivy_0.46.0_Linux-64bit.tar.gz",
"checksum": "D26B6A5B4445C4A7F99E104A8C47579AEC150023FB927D55F8622E760C171AF2",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/aquasecurity/trivy/v0.46.0/trivy_0.46.0_Linux-ARM64.tar.gz",
"checksum": "6AF0383E99B579203BBA3286C780BEBFC49A1EFB66739BC6FEFA3B0A779499B4",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/aquasecurity/trivy/v0.46.0/trivy_0.46.0_macOS-64bit.tar.gz",
"checksum": "C2E498941FE8914C3B364AE982ABB1DEA362AF0DEF7E6F15175166B3CFFF5947",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/aquasecurity/trivy/v0.46.0/trivy_0.46.0_macOS-ARM64.tar.gz",
"checksum": "B5A8F853A132B18BFF6ABA3E20604F81DE724DEFCCD188B53FFF1ED55BE00918",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/terraform-linters/tflint/v0.48.0/tflint_darwin_amd64.zip",
"checksum": "8F491F42A07152B27D7C3599FAF24EB839A202F5C58EF735740303AE3CAD51FA",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/terraform-linters/tflint/v0.48.0/tflint_darwin_arm64.zip",
"checksum": "88BBA0BD1CA4012F836D14093E5D18CF0D6633C7FEA82404382FDA70C99753A0",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/terraform-linters/tflint/v0.48.0/tflint_linux_amd64.zip",
"checksum": "13C7947963C4DC4F0AA9E0CB7A0854367A425162A508BC7517D1CBCBEF822F3C",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/terraform-linters/tflint/v0.48.0/tflint_linux_arm64.zip",
"checksum": "EF4E07EF95E5F2779DF0ED43E62364855DAFB92B938CF62F08C64016DE2756B0",
"algorithm": "sha256"
},
{
"id": "github_release/github.com/terraform-linters/tflint/v0.48.0/tflint_windows_amd64.zip",
"checksum": "1EFAB7EA19E8ADB73CAE770E5EDABAE44A5CEBD63BAF203A5D3270948DB55648",
"algorithm": "sha256"
},
{
"id": "http/releases.hashicorp.com/terraform/1.6.2/terraform_1.6.2_darwin_amd64.zip",
"checksum": "361FFD98F0CDEE631CB1475688471C5FB8F41BD6A4D8D300F29DF384C82D6316",
"algorithm": "sha256"
},
{
"id": "http/releases.hashicorp.com/terraform/1.6.2/terraform_1.6.2_darwin_arm64.zip",
"checksum": "87345E9F2932C29C8D00C5CA9E0361FADA18ACCC2573FD66883B3ADB40949BE8",
"algorithm": "sha256"
},
{
"id": "http/releases.hashicorp.com/terraform/1.6.2/terraform_1.6.2_linux_amd64.zip",
"checksum": "107142241B12FF78B6EB9C419757D406A8714704F7928750A662BA19DE055E98",
"algorithm": "sha256"
},
{
"id": "http/releases.hashicorp.com/terraform/1.6.2/terraform_1.6.2_linux_arm64.zip",
"checksum": "AC70F54865D1C0A945D3EFA221074E32A3818C666A412148EE5F9F0B14FD330D",
"algorithm": "sha256"
},
{
"id": "http/releases.hashicorp.com/terraform/1.6.2/terraform_1.6.2_windows_amd64.zip",
"checksum": "3987AACB78C1B05D94E52AE2C9EBD1536E7F012590D2D0874525B6DC4448062E",
"algorithm": "sha256"
},
{
"id": "registries/github_content/github.com/aquaproj/aqua-registry/v4.88.0/registry.yaml",
"checksum": "776CC71A5A8010A513F39EFB40DE9807F74926A9E1B1F85F7B6D1D8105C16EBA",
"algorithm": "sha256"
}
]
}
13 changes: 13 additions & 0 deletions terraform/gcp/wordpress-infra/aqua/aqua.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
# aqua - Declarative CLI Version Manager
# https://aquaproj.github.io/
checksum:
enabled: true
require_checksum: true
# supported_envs:
# - all
registries:
- type: standard
ref: v4.88.0 # renovate: depName=aquaproj/aqua-registry
packages:
- import: imports/*.yaml
2 changes: 2 additions & 0 deletions terraform/gcp/wordpress-infra/aqua/imports/terraform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- name: hashicorp/[email protected]
2 changes: 2 additions & 0 deletions terraform/gcp/wordpress-infra/aqua/imports/tflint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- name: terraform-linters/[email protected]
2 changes: 2 additions & 0 deletions terraform/gcp/wordpress-infra/aqua/imports/trivy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- name: aquasecurity/[email protected]
23 changes: 23 additions & 0 deletions terraform/gcp/wordpress-infra/terraform.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
terraform {
required_version = ">= 1.0"
backend "s3" {
bucket = "matchan26-terraform-state-backend-bucket"
key = "terraform/gcp/wordpress-infra/v1/terraform.tfstate"
region = "ap-northeast-1"
encrypt = true
}
}

terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "~> 5.0"
}
}
}

provider "google" {
project = "virtual-signer-406313"
region = "asia-northeast1"
}
1 change: 1 addition & 0 deletions terraform/gcp/wordpress-infra/tfaction.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}

0 comments on commit 091cd00

Please sign in to comment.