diff --git a/aws/data_source_aws_dynamodb_table_test.go b/aws/data_source_aws_dynamodb_table_test.go index 219f05113922..11fe6687379d 100644 --- a/aws/data_source_aws_dynamodb_table_test.go +++ b/aws/data_source_aws_dynamodb_table_test.go @@ -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) } diff --git a/website/docs/d/dynamodb_table.html.markdown b/website/docs/d/dynamodb_table.html.markdown index d100531c2d4f..6aab4f26577e 100644 --- a/website/docs/d/dynamodb_table.html.markdown +++ b/website/docs/d/dynamodb_table.html.markdown @@ -6,7 +6,7 @@ description: |- Provides a DynamoDB table data source. --- -# aws_elb +# aws_dynamodb_table Provides information about a DynamoDB table.