Skip to content
This repository was archived by the owner on Apr 29, 2020. It is now read-only.

Commit 2f10b52

Browse files
authored
Merge pull request #4 from cmdlabs/fix-dynamodb-iam
Fix dynamodb iam
2 parents 85fc788 + 65793f4 commit 2f10b52

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.4.0] - 2019-08-13
8+
### Fixed
9+
- Fixed IAM permission to dynamoDB table (added expected prefix)
10+
711
## [0.3.0] - 2019-06-03
812
### Breaking
913
- Updated code to terraform 0.12.0

iam_policy.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ data "aws_iam_policy_document" "iam-role-policy" {
3030

3131
statement {
3232
actions = ["dynamodb:GetItem", "dynamodb:PutItem", "dynamodb:DeleteItem"]
33-
resources = ["arn:aws:dynamodb:*:*:table/terraform-lock"]
33+
resources = ["arn:aws:dynamodb:*:*:table/${var.resource_prefix}-terraform-lock"]
3434
}
3535
}
3636

0 commit comments

Comments
 (0)