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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0be7ca644efba0ca7b1e95b076bbae96873ced55d3251e5de235208169bbcce9
4
- data.tar.gz: d5f0b277442b1b139fb48c306b4f2c0ca13ce30d6b35637a67749b549f6a7182
3
+ metadata.gz: 8cb97d1bbffa15fdcef437f66a609cc7904e7ee23b57572a180c4708cf615d75
4
+ data.tar.gz: 4df2159c5162fecf0e24791ef157169f0ec54970c2c6d9709ff68898d8cfd698
5
5
  SHA512:
6
- metadata.gz: cac4e33287828876e5f248dcf3536f2e4709b2637481453e9d5015711b8a1de4bfc854edfc429060c7929a17f3ec46b17dc15127474ce9bd0312f064c23d77ee
7
- data.tar.gz: eca9b584458ff63559fe3e4fad915be300628ec0659ae4e3d7d7cac66bba8d8d2e2eb9dd9010174f3d6bce6d7e688356e1325070f7aec0150e518348ab8be50d
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Belt
4
- VERSION = '0.3.7'
4
+ VERSION = '0.3.9'
5
5
  end
@@ -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 {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: belt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stowzilla