Skip to content

Commit d70ec22

Browse files
cornfeedhobogoruha
andauthored
allow underscores in names (#66)
* allow underscores in names * Update variables.tf * Update variables.tf * Update examples_complete_test.go * Update examples_complete_test.go * Update fixtures.us-east-1.tfvars * Rename fixtures.us-east-1.tfvars to fixtures.us-east-2.tfvars --------- Co-authored-by: Igor Rodionov <[email protected]>
1 parent 4813f3e commit d70ec22

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

examples/complete/fixtures.us-east-1.tfvars renamed to examples/complete/fixtures.us-east-2.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
region = "us-east-1"
1+
region = "us-east-2"
22

33
namespace = "eg"
44

examples/complete/variables.tf

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
variable "region" {
2-
type = string
3-
}
4-
5-
variable "retention_in_days" {
6-
description = "Number of days you want to retain log events in the log group"
7-
default = "30"
2+
type = string
3+
description = "AWS region"
84
}
95

106
variable "stream_names" {

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module "log_group_label" {
77
version = "0.25.0"
88

99
# Allow forward slashes
10-
regex_replace_chars = "/[^a-zA-Z0-9-\\/]/"
10+
regex_replace_chars = "/[^a-zA-Z0-9-_\\/]/"
1111

1212
context = module.this.context
1313
}

test/src/examples_complete_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ func TestExamplesComplete(t *testing.T) {
2222
terraformOptions := &terraform.Options{
2323
TerraformDir: "../../examples/complete",
2424
Upgrade: true,
25-
VarFiles: []string{"fixtures.us-east-1.tfvars"},
25+
VarFiles: []string{"fixtures.us-east-2.tfvars"},
2626
Vars: map[string]interface{}{
2727
"attributes": attributes,
28-
"region": "us-east-1",
28+
"region": "us-east-2",
2929
},
3030
}
3131

@@ -36,7 +36,7 @@ func TestExamplesComplete(t *testing.T) {
3636
// Run `terraform output` to get the value of an output variable
3737
logGroupArn := terraform.Output(t, terraformOptions, "log_group_arn")
3838
// Verify we're getting back the outputs we expect
39-
assert.Contains(t, logGroupArn, "arn:aws:logs:us-east-1:")
39+
assert.Contains(t, logGroupArn, "arn:aws:logs:us-east-2:")
4040

4141
// Run `terraform output` to get the value of an output variable
4242
streamArns := terraform.Output(t, terraformOptions, "stream_arns")

0 commit comments

Comments
 (0)