belt 0.3.7 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/lib/belt/version.rb +1 -1
- data/lib/templates/module/frontend.tf.erb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8cb97d1bbffa15fdcef437f66a609cc7904e7ee23b57572a180c4708cf615d75
|
|
4
|
+
data.tar.gz: 4df2159c5162fecf0e24791ef157169f0ec54970c2c6d9709ff68898d8cfd698
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a2ebfb5e790b3053bde718bf8116ec031a47a06ad4fae8ca38509b61a917f195ffc30b4ebbdf6fb8e06190979b18ad4c0c2f941df510572759c194f9e0008ea6
|
|
7
|
+
data.tar.gz: de2334780918ca648eb55510defb31fba498551a4b6aa5d110115791b28992576aa4f2fcce5c46a490aaa6586c44cc047c41fc7175580ad9e45f7a5ce9dd8638
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.9
|
|
4
|
+
|
|
5
|
+
### Bug Fix
|
|
6
|
+
|
|
7
|
+
- **`belt setup frontend` with underscored app names**: The 0.3.8 fix placed
|
|
8
|
+
`local.s3_safe_name` in `dns.tf` but `belt setup frontend` only regenerates
|
|
9
|
+
`frontend.tf`, causing an "undeclared local value" error on existing apps.
|
|
10
|
+
The bucket name now uses inline `replace(var.app_name, "_", "-")` directly in
|
|
11
|
+
`frontend.tf`, making it fully self-contained with no cross-file dependency.
|
|
12
|
+
|
|
13
|
+
## 0.3.8
|
|
14
|
+
|
|
15
|
+
### Bug Fix
|
|
16
|
+
|
|
17
|
+
- **S3 bucket naming with underscored app names**: The module template now sanitizes
|
|
18
|
+
`var.app_name` for S3 bucket names by replacing underscores with hyphens. Apps named
|
|
19
|
+
with underscores (e.g. `feature_parity`) previously generated invalid bucket names
|
|
20
|
+
since S3 follows DNS naming rules which prohibit underscores.
|
|
21
|
+
|
|
3
22
|
## 0.3.7
|
|
4
23
|
|
|
5
24
|
### Bug Fix
|
data/lib/belt/version.rb
CHANGED
|
@@ -11,7 +11,7 @@ resource "random_string" "<%= @tf_name %>_suffix" {
|
|
|
11
11
|
|
|
12
12
|
# S3 bucket for frontend static assets
|
|
13
13
|
resource "aws_s3_bucket" "<%= @tf_name %>" {
|
|
14
|
-
bucket = "${var.app_name}-<%= @bucket_slug %>-${var.environment}-${random_string.<%= @tf_name %>_suffix.result}"
|
|
14
|
+
bucket = "${replace(var.app_name, "_", "-")}-<%= @bucket_slug %>-${var.environment}-${random_string.<%= @tf_name %>_suffix.result}"
|
|
15
15
|
force_destroy = true
|
|
16
16
|
|
|
17
17
|
lifecycle {
|