Skip to content

Commit

Permalink
#2062 PR review updates for copypasta and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bflad committed Oct 26, 2017
1 parent 328c3b3 commit 63a3f68
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
62 changes: 31 additions & 31 deletions aws/data_source_aws_dynamodb_table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,44 +36,44 @@ func TestAccDataSourceAwsDynamoDbTable_basic(t *testing.T) {

func testAccDataSourceAwsDynamoDbTableConfigBasic(tableName string) string {
return fmt.Sprintf(`resource "aws_dynamodb_table" "dynamodb_table_test" {
name = "%s"
read_capacity = 20
write_capacity = 20
hash_key = "UserId"
range_key = "GameTitle"
name = "%s"
read_capacity = 20
write_capacity = 20
hash_key = "UserId"
range_key = "GameTitle"
attribute {
name = "UserId"
type = "S"
}
attribute {
name = "UserId"
type = "S"
}
attribute {
name = "GameTitle"
type = "S"
}
attribute {
name = "GameTitle"
type = "S"
}
attribute {
name = "TopScore"
type = "N"
}
attribute {
name = "TopScore"
type = "N"
}
global_secondary_index {
name = "GameTitleIndex"
hash_key = "GameTitle"
range_key = "TopScore"
write_capacity = 10
read_capacity = 10
projection_type = "INCLUDE"
non_key_attributes = ["UserId"]
}
global_secondary_index {
name = "GameTitleIndex"
hash_key = "GameTitle"
range_key = "TopScore"
write_capacity = 10
read_capacity = 10
projection_type = "INCLUDE"
non_key_attributes = ["UserId"]
}
tags {
Name = "dynamodb-table-1"
Environment = "test"
}
tags {
Name = "dynamodb-table-1"
Environment = "test"
}
}
data "aws_dynamodb_table" "dynamodb_table_test" {
name = "${aws_dynamodb_table.dynamodb_table_test.name}"
name = "${aws_dynamodb_table.dynamodb_table_test.name}"
}`, tableName)
}
2 changes: 1 addition & 1 deletion website/docs/d/dynamodb_table.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: |-
Provides a DynamoDB table data source.
---

# aws_elb
# aws_dynamodb_table

Provides information about a DynamoDB table.

Expand Down

0 comments on commit 63a3f68

Please sign in to comment.