Skip to content

Commit

Permalink
use module version 0.1.1 with included GetBucketPolicy permission
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Mar 17, 2022
1 parent 026af09 commit f6822ec
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand All @@ -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*",
]
},
]
})
}

0 comments on commit f6822ec

Please sign in to comment.