From f6822ec06896b92eb1b018c8bbb5fa7a9506fa66 Mon Sep 17 00:00:00 2001 From: Schparky <3172830+Schparky@users.noreply.github.com> Date: Thu, 17 Mar 2022 14:44:24 -0600 Subject: [PATCH] use module version 0.1.1 with included GetBucketPolicy permission --- terraform/main.tf | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/terraform/main.tf b/terraform/main.tf index 0076978..fddd01e 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -4,13 +4,11 @@ */ module "serverless-user" { source = "silinternational/serverless-user/aws" - version = "0.1.0" + version = "0.1.1" app_name = "mfa-api" aws_region = var.aws_region enable_api_gateway = true - - extra_policies = [local.s3_policy] } output "serverless-access-key-id" { @@ -20,21 +18,3 @@ output "serverless-secret-access-key" { value = module.serverless-user.aws_secret_access_key sensitive = true } - - -locals { - s3_policy = jsonencode({ - "Version" : "2012-10-17", - "Statement" : [ - { - "Effect" : "Allow", - "Action" : [ - "s3:GetBucketPolicy", - ], - "Resource" : [ - "arn:aws:s3:::mfa-api-*-serverlessdeploymentbucket*", - ] - }, - ] - }) -}