Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgarde committed Nov 6, 2023
1 parent 780b1d2 commit 3bbabf7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
import java.util.List;
import java.util.Map;
import java.util.Optional;

import javax.validation.constraints.Size;

import org.apache.commons.codec.digest.DigestUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -54,7 +52,7 @@ public Mono<ResponseEntity<?>> getAuthorize(
@RequestParam("response_type") String responseType,
@RequestParam("client_id") String clientId,
@RequestParam("redirect_uri") String redirectUri,
@RequestParam("code_challenge") @Size(min=64, max=64) String codeChallenge,
@RequestParam("code_challenge") @Size(min = 64, max = 64) String codeChallenge,
@RequestParam("code_challenge_method") String codeChallengeMethod
) {
return Mono.defer(() -> {
Expand Down
15 changes: 15 additions & 0 deletions terraform/app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,21 @@ resource "aws_iam_role" "app_task" {
]
})
}

inline_policy {
name = "AllowQueryAvailableTiles"
policy = jsonencode({
Version = "2012-10-17",
Statement = [
{
Sid = ""
Effect = "Allow",
Action = ["dynamodb:BatchGetItem", "dynamodb:GetItem"]
Resource = aws_dynamodb_table.available_tiles.arn
}
]
})
}
}

resource "aws_iam_role" "app_task_exec" {
Expand Down

0 comments on commit 3bbabf7

Please sign in to comment.