Skip to content

Commit

Permalink
refactor: Update content format in config.hcl files
Browse files Browse the repository at this point in the history
Changed content format from "<<EOF" to "<<-EOF" in config.hcl files for
AWS and Cloudflare providers to improve readability.
  • Loading branch information
Excoriate committed Apr 21, 2024
1 parent 0d54fb6 commit 9c9263f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion infra/terraform/live/_providers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ locals {
providers = {
cloudflare = {
enabled = get_env("TG_PROVIDER_CLOUDFLARE_ENABLED", false)
content = <<EOF
content = <<-EOF
provider "cloudflare" {
email = "${get_env("CLOUDFLARE_EMAIL", "")}"
api_key = "${get_env("CLOUDFLARE_API_KEY", "")}"
Expand Down
4 changes: 2 additions & 2 deletions infra/terraform/live/_providers/config.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ locals {
# Example for Cloudflare, uncomment and modify as necessary
# cloudflare = {
# enabled = get_env("TG_PROVIDER_CLOUDFLARE_ENABLED", true)
# content = <<EOF
# content = <<-EOF
# provider "cloudflare" {
# email = "${get_env("CLOUDFLARE_EMAIL", "email@example.com")}"
# api_key = "${get_env("CLOUDFLARE_API_KEY", "your_cloudflare_api_key")}"
Expand All @@ -32,7 +32,7 @@ locals {
# Example for AWS, with conditional enablement
# aws = {
# enabled = get_env("TG_PROVIDER_AWS_ENABLED", false)
# content = <<EOF
# content = <<-EOF
# provider "aws" {
# region = "us-west-2"
# access_key = "${get_env("AWS_ACCESS_KEY")}"
Expand Down

0 comments on commit 9c9263f

Please sign in to comment.