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

Commit

Permalink
Merge pull request #4 from cmdlabs/fix-dynamodb-iam
Browse files Browse the repository at this point in the history
Fix dynamodb iam
  • Loading branch information
fahad-tariq authored Aug 13, 2019
2 parents 85fc788 + 65793f4 commit 2f10b52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.0] - 2019-08-13
### Fixed
- Fixed IAM permission to dynamoDB table (added expected prefix)

## [0.3.0] - 2019-06-03
### Breaking
- Updated code to terraform 0.12.0
Expand Down
2 changes: 1 addition & 1 deletion iam_policy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ data "aws_iam_policy_document" "iam-role-policy" {

statement {
actions = ["dynamodb:GetItem", "dynamodb:PutItem", "dynamodb:DeleteItem"]
resources = ["arn:aws:dynamodb:*:*:table/terraform-lock"]
resources = ["arn:aws:dynamodb:*:*:table/${var.resource_prefix}-terraform-lock"]
}
}

Expand Down

0 comments on commit 2f10b52

Please sign in to comment.