File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -47,3 +47,8 @@ output "info_lambda_name" {
4747 description = " Lambda Name"
4848 value = module. resources . info_lambda_name
4949}
50+
51+ output "bucket" {
52+ description = " Storage bucket"
53+ value = module. resources . bucket
54+ }
Original file line number Diff line number Diff line change @@ -31,9 +31,14 @@ data "aws_iam_policy_document" "iam_for_lambda_policy_document" {
3131 statement {
3232 actions = [
3333 " s3:GetObject" ,
34+ " s3:GetBucketTagging" ,
35+ " s3:PutObjectTagging" ,
36+ " s3:PutObject" ,
37+ " s3:ListBucket" ,
38+ " s3:DeleteObject" ,
3439 ]
3540 effect = " Allow"
36- resources = [" * " ]
41+ resources = [aws_s3_bucket . storage . arn ]
3742 sid = " ReadS3"
3843 }
3944
Original file line number Diff line number Diff line change @@ -33,3 +33,4 @@ output "prefix" {
3333}
3434
3535
36+
You can’t perform that action at this time.
0 commit comments