Skip to content

Commit

Permalink
chore: terraform fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
malhussan committed Jul 15, 2024
1 parent 3e9d5c5 commit 3ce74ae
Show file tree
Hide file tree
Showing 18 changed files with 51 additions and 63 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ terraform {
}

# provider "aws" {

# }
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ resource "aws_route53_record" "record" {
name = var.alias_name
evaluate_target_health = var.alias_evaluate_target_health
zone_id = var.alias_zone_id
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ variable "sub" {

# note: "CNAME records are illegal at apex, value must be a non-empty string."
# terraform can't validate this right now

}

# Legal DNS record types. Consider shortening this list if you want to constain allowed records
Expand Down
2 changes: 1 addition & 1 deletion ionos/virtual-data-center/config.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
ionoscloud = {
source = "ionos-cloud/ionoscloud"
source = "ionos-cloud/ionoscloud"
version = "= 6.4.10"
}
}
Expand Down
9 changes: 0 additions & 9 deletions modules/meshstack_buildingblock_status/main.tf

This file was deleted.

14 changes: 0 additions & 14 deletions modules/meshstack_buildingblock_status/provider.tf

This file was deleted.

16 changes: 0 additions & 16 deletions modules/meshstack_buildingblock_status/variables.tf

This file was deleted.

4 changes: 2 additions & 2 deletions other-providers/github/github-actions-workflow/provider.tf
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
terraform {
required_providers {
github = {
source = "integrations/github"
source = "integrations/github"
version = "5.34.0"
}
}
}


provider "github" {
# token = "" # Set the GITHUB_TOKEN environment variable
# token = "" # Set the GITHUB_TOKEN environment variable
}
8 changes: 4 additions & 4 deletions other-providers/github/github-actions-workflow/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ variable "repository_name" {
}

variable "branch" {
type = string
type = string
description = "branch name"
default = "main"
default = "main"
}

variable "commit_message" {
Expand All @@ -28,7 +28,7 @@ variable "commit_email" {
}

variable "filename" {
type = string
type = string
description = "Name of the yaml file you want to create in workflows folder"
default = "workflow.yml"
default = "workflow.yml"
}
9 changes: 3 additions & 6 deletions other-providers/github/github-file/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ resource "github_repository_file" "file" {
}

module "buildingblock_status" {
count = var.meshstack_native ? 0 : 1
source = "../../../modules/meshstack_buildingblock_status"
count = var.integrate_with_meshstack ? 1 : 0
source = "./modules/meshstack_buildingblock_status"

buildingblock_uuid = var.buildingblock_uuid
meshstack_api_url = var.meshstack_api_url
meshstack_api_key = var.meshstack_api_key
meshstack_api_secret = var.meshstack_api_secret
buildingblock_uuid = var.buildingblock_uuid

depends_on = [github_repository_file.file]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# resource "meshstack_buildingblock_status" "success" {
# metadata = {
# uuid = var.buildingblock_uuid
# }
# spec = {
# status = "success"
# outputs = ...
# }
# }
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
terraform {
required_providers {
meshstack = {
source = "meshcloud/meshstack"
version = ">=0.5.1"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
variable "buildingblock_uuid" {
type = string
}
10 changes: 10 additions & 0 deletions other-providers/github/github-file/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,20 @@ terraform {
source = "integrations/github"
version = ">=6.2.3"
}
meshstack = {
source = "meshcloud/meshstack"
version = ">=0.5.1"
}
}
}

provider "github" {
token = var.github_token
owner = var.github_owner
}

provider "meshstack" {
endpoint = var.meshstack_api_url
apikey = var.meshstack_api_key
apisecret = var.meshstack_api_secret
}
4 changes: 2 additions & 2 deletions other-providers/github/github-file/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ variable "overwrite_on_create" {

## meshstack BB status

variable "meshstack_native" {
variable "integrate_with_meshstack" {
type = bool
description = "true -> don't send status to meshstack bb, false -> send success status to specificied BB"
description = "true -> send success status to specificied BB, false -> don't send status to meshstack BB"
}

variable "buildingblock_uuid" {
Expand Down
4 changes: 2 additions & 2 deletions other-providers/github/github-repo/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ terraform {
}

provider "github" {
token = var.github_token
owner = var.github_owner
token = var.github_token
owner = var.github_owner
}
4 changes: 2 additions & 2 deletions other-providers/github/github-repo/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ variable "visibility" {
}

variable "use_template" {
type = bool
type = bool
description = "Set it to 'True' if you want to create a repo based on a Template Repository"
default = false
default = false
}
variable "template_owner" {
type = string
Expand Down
4 changes: 2 additions & 2 deletions sap-btp/subaccount/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ variable "region" {
}

variable "workspace" {
type = string
type = string
description = "The meshStack workspace identifier."
}

variable "project" {
type = string
type = string
description = "The meshStack project identifier."
}

0 comments on commit 3ce74ae

Please sign in to comment.