mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-10-02 01:23:11 +00:00
fix(iam): grant plan role CloudFront DescribeFunction
This commit is contained in:
parent
4682d952a0
commit
7183a793cd
2 changed files with 2 additions and 0 deletions
|
|
@ -634,6 +634,7 @@ resource "aws_iam_role_policy" "hcptf_plan_refresh" {
|
|||
},
|
||||
{
|
||||
Action = [
|
||||
"cloudfront:DescribeFunction",
|
||||
"cloudfront:Get*",
|
||||
"cloudfront:List*",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ def test_cloudfront_forwards_portal_api_paths_without_publish_or_roster():
|
|||
assert "custom_error_response" not in cloudfront
|
||||
assert 'resource "aws_cloudfront_function" "form_spa_rewrite"' in cloudfront
|
||||
assert "function_arn = aws_cloudfront_function.form_spa_rewrite.arn" in cloudfront
|
||||
assert "cloudfront:DescribeFunction" in _read("hcp_iam.tf")
|
||||
assert "AllViewerExceptHostHeader" in locals_tf or (
|
||||
"b689b0a8-53d0-40ab-baf2-68738e2966ac" in locals_tf
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue