Skip to content

Commit 34b6d70

Browse files
author
John Titus
authored
Merge pull request #13 from rackspace-infrastructure-automation/stream-output
Fix output to use bool instead of string for stream_arn
2 parents 1019917 + 4547619 commit 34b6d70

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This module creates an AWS DynamoDB table.
66

77
```HCL
88
module "basic" {
9-
source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-dynamo/?ref=v0.12.0"
9+
source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-dynamo/?ref=v0.12.2"
1010
1111
environment = "Test"
1212
hash_key = "MyHashKey"

examples/example.tf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ provider "aws" {
88
}
99

1010
module "dynamo_table_provisioned" {
11-
source = "git@github.com/rackspace-infrastructure-automation/aws-terraform-dynamo//?ref=v0.12.0"
11+
source = "git@github.com/rackspace-infrastructure-automation/aws-terraform-dynamo//?ref=v0.12.2"
1212

1313
enable_pay_per_request = false
1414
hash_key = "<HashKeyName>"
@@ -32,7 +32,7 @@ module "dynamo_table_provisioned" {
3232
}
3333

3434
module "dynamo_table_pay_per_requst" {
35-
source = "git@github.com/rackspace-infrastructure-automation/aws-terraform-dynamo//?ref=v0.12.0"
35+
source = "git@github.com/rackspace-infrastructure-automation/aws-terraform-dynamo//?ref=v0.12.2"
3636

3737
enable_pay_per_request = true
3838
hash_key = "<HashKeyName>"
@@ -52,4 +52,3 @@ module "dynamo_table_pay_per_requst" {
5252
},
5353
]
5454
}
55-

main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* ```HCL
99
* module "basic" {
10-
* source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-dynamo/?ref=v0.12.0"
10+
* source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-dynamo/?ref=v0.12.2"
1111
*
1212
* environment = "Test"
1313
* hash_key = "MyHashKey"
@@ -134,4 +134,3 @@ resource "aws_dynamodb_table" "table" {
134134
attribute_name = var.ttl_attribute
135135
}
136136
}
137-

outputs.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
output "stream_arn" {
22
description = "ARN for the stream if `stream_enabled` was set to `true`, otherwise returns a string of \"null\"."
3-
value = var.stream_enabled == "true" ? aws_dynamodb_table.table.stream_arn : "null"
3+
value = var.stream_enabled ? aws_dynamodb_table.table.stream_arn : "null"
44
}
55

66
output "table_arn" {
@@ -12,4 +12,3 @@ output "table_name" {
1212
description = "Table Name"
1313
value = aws_dynamodb_table.table.id
1414
}
15-

0 commit comments

Comments
 (0)