Skip to content

Commit

Permalink
Add dynamodb_table_name output (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
aknysh authored Mar 7, 2018
1 parent 23370f6 commit 2213458
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dynamodb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ data "aws_iam_policy_document" "dynamodb" {
effect = "Allow"
actions = ["dynamodb:*"]

resources = ["arn:aws:dynamodb:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:table/${var.dynamodb_table_name}"]
resources = ["arn:aws:dynamodb:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:table/${module.label_dynamodb.id}"]
}
}

Expand Down
4 changes: 4 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ output "s3_bucket_domain_name" {
output "s3_bucket_arn" {
value = "${module.s3_bucket.bucket_arn}"
}

output "dynamodb_table_name" {
value = "${module.label_dynamodb.id}"
}

0 comments on commit 2213458

Please sign in to comment.