belt 0.3.25 → 0.3.26
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/lib/belt/cli/dns_command.rb +9 -2
- data/lib/belt/version.rb +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: 7a5cf0b2661bd7ea2b9e0e2ebe13fcb6090506bb3b268a606b6d5fd6b4e21511
|
|
4
|
+
data.tar.gz: 344bd5cce8ca35f81e0b8ba5e4c4a43a182bb031a56ddc9db01ec2bd5a01ba26
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 39c2ec3441b7622cb8ab1913afe6d76eb6b300c6c41c5767361efea0e76c94a97ba738bb2fd09d2fde68a5ec0353c909afe9c392066f655a56c393a72a8b1ea0
|
|
7
|
+
data.tar.gz: 8f9c6cb95c3d775d86f4e53ddf708c6ed8be8bcbf823ffa70dc5427752bd87444d1dcfc91cc19ba85572ecd9186ff2d05f69dbc05db8412972cd36c1c3e1ff3a
|
data/lib/belt/cli/dns_command.rb
CHANGED
|
@@ -314,10 +314,17 @@ module Belt
|
|
|
314
314
|
end
|
|
315
315
|
|
|
316
316
|
# Resolve state bucket for a specific AWS profile.
|
|
317
|
-
# If profile is provided, uses that profile's account ID.
|
|
317
|
+
# If profile is explicitly provided, uses that profile's account ID directly.
|
|
318
318
|
# Otherwise falls back to existing sibling backend.tf or current credentials.
|
|
319
319
|
def resolve_state_bucket_for_profile(profile)
|
|
320
|
-
|
|
320
|
+
if profile
|
|
321
|
+
# Explicit profile = derive bucket from that profile's account ID
|
|
322
|
+
# Do NOT fall back to sibling backends — they're likely different accounts
|
|
323
|
+
bucket_from_aws_profile(profile) || 'belt-terraform-state'
|
|
324
|
+
else
|
|
325
|
+
# No profile = use existing sibling or current credentials
|
|
326
|
+
bucket_from_sibling || bucket_from_aws_profile(nil) || 'belt-terraform-state'
|
|
327
|
+
end
|
|
321
328
|
end
|
|
322
329
|
|
|
323
330
|
def bucket_from_sibling
|
data/lib/belt/version.rb
CHANGED