Skip to content

Commit 02fb7c9

Browse files
authored
chore: Fix tf format and add Editor config (#11)
1 parent 4000481 commit 02fb7c9

File tree

8 files changed

+52
-18
lines changed

8 files changed

+52
-18
lines changed

.editorconfig

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Unix-style newlines with a newline ending every file
5+
[*]
6+
end_of_line = lf
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
# Override for Makefile
11+
[{Makefile,makefile,GNUmakefile}]
12+
indent_style = tab
13+
indent_size = 4
14+
15+
[Makefile.*]
16+
indent_style = tab
17+
indent_size = 4
18+
19+
[{*.yaml,*.yml,*.md}]
20+
indent_style = space
21+
indent_size = 2
22+
23+
[*.sh]
24+
indent_style = tab
25+
indent_size = 2
26+
27+
[*.{tf,tfvars,tpl,variant}]
28+
indent_style = space
29+
indent_size = 2
30+
31+
[*.json]
32+
insert_final_newline = false

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
"extends": [
44
"config:base"
55
]
6-
}
6+
}

.github/settings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ repository:
55
description: 'This component deploys self-hosted GitHub Actions Runners and a Controller on an EKS cluster, using "runner scale sets"'
66
homepage: https://cloudposse.com/accelerate
77
topics: terraform, terraform-component
8+

README.md

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,12 @@ description: |-
202202
deploy to multiple regions you have 2 choices:
203203
204204
1. Create the secrets in each region. This is the most robust approach, but requires you to create the secrets in each
205-
region and keep them in sync.
205+
region and keep them in sync.
206206
2. Create the secrets in one region and use the `ssm_region` input to specify the region where they are stored. This is
207-
the easiest approach, but does add some obstacles to managing deployments during a region outage. If the region where
208-
the secrets are stored goes down, there will be no impact on runners in other regions, but you will not be able to
209-
deploy new runners or modify existing runners until the SSM region is restored or until you set up SSM parameters in
210-
a new region.
207+
the easiest approach, but does add some obstacles to managing deployments during a region outage. If the region where
208+
the secrets are stored goes down, there will be no impact on runners in other regions, but you will not be able to
209+
deploy new runners or modify existing runners until the SSM region is restored or until you set up SSM parameters in
210+
a new region.
211211
212212
Alternatively, you can create Kubernetes secrets outside of this component (perhaps using
213213
[SOPS](https://github.com/getsops/sops)) and reference them by name. We describe here how to save the secrets to SSM,

docs/.gitkeep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

src/README.md

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/context.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ variable "descriptor_formats" {
264264
Describe additional descriptors to be output in the `descriptors` output map.
265265
Map of maps. Keys are names of descriptors. Values are maps of the form
266266
`{
267-
format = string
268-
labels = list(string)
267+
format = string
268+
labels = list(string)
269269
}`
270270
(Type is `any` so the map values can later be enhanced to provide additional options.)
271271
`format` is a Terraform format string to be passed to the `format()` function.

0 commit comments

Comments
 (0)