deploy frontend from the ec2 at the end of the pipeline
This commit is contained in:
parent
8d62832c1d
commit
8e3907505f
4 changed files with 60 additions and 10 deletions
|
|
@ -190,6 +190,11 @@ resource "aws_iam_role_policy" "s3_access" {
|
|||
"arn:aws:s3:::commoncrawl",
|
||||
"arn:aws:s3:::commoncrawl/*",
|
||||
]
|
||||
},
|
||||
{
|
||||
Effect = "Allow"
|
||||
Action = ["cloudfront:CreateInvalidation", "cloudfront:ListDistributions"]
|
||||
Resource = "*"
|
||||
}
|
||||
]
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue