-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto generate deployment policy (#939)
- Loading branch information
1 parent
2dbc5bc
commit 18cc396
Showing
93 changed files
with
5,927 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
{ | ||
"Statement": [ | ||
{ | ||
"Action": [ | ||
"apigateway:CreateStage", | ||
"apigateway:DeleteStage", | ||
"apigateway:UpdateStage" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"apigateway:CreateDeployment", | ||
"apigateway:DeleteDeployment", | ||
"apigateway:UpdateDeployment" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"apigateway:CreateRestApi", | ||
"apigateway:DeleteRestApi", | ||
"apigateway:UpdateRestApi" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"apigateway:CreateResource", | ||
"apigateway:DeleteResource", | ||
"apigateway:UpdateResource" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"apigateway:PutMethod", | ||
"apigateway:DeleteMethod", | ||
"apigateway:UpdateMethod" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"apigateway:PutIntegration", | ||
"apigateway:DeleteIntegration", | ||
"apigateway:UpdateIntegration" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"lambda:AddPermission", | ||
"lambda:RemovePermission", | ||
"lambda:AddPermission" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"lambda:CreateFunction", | ||
"lambda:DeleteFunction", | ||
"lambda:UpdateFunctionConfiguration" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"ecr:PutImage", | ||
"ecr:BatchDeleteImage", | ||
"ecr:PutImage" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"iam:CreateRole", | ||
"iam:DeleteRole", | ||
"iam:UpdateAssumeRolePolicy" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": null, | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"ecr:CreateRepository", | ||
"ecr:DeleteRepository", | ||
"ecr:PutLifecyclePolicy" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"logs:CreateLogGroup", | ||
"logs:DeleteLogGroup", | ||
"logs:PutRetentionPolicy" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
} |
55 changes: 55 additions & 0 deletions
55
pkg/engine/testdata/cf_distribution.deployment-policy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"Statement": [ | ||
{ | ||
"Action": null, | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"apigateway:CreateStage", | ||
"apigateway:DeleteStage", | ||
"apigateway:UpdateStage" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"apigateway:CreateDeployment", | ||
"apigateway:DeleteDeployment", | ||
"apigateway:UpdateDeployment" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"s3:PutBucketPolicy", | ||
"s3:DeleteBucketPolicy", | ||
"s3:PutBucketPolicy" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"apigateway:CreateRestApi", | ||
"apigateway:DeleteRestApi", | ||
"apigateway:UpdateRestApi" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"s3:CreateBucket", | ||
"s3:DeleteBucket", | ||
"s3:PutBucketAcl" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
} |
109 changes: 109 additions & 0 deletions
109
pkg/engine/testdata/delete_api_to_lambda_edge.deployment-policy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
{ | ||
"Statement": [ | ||
{ | ||
"Action": [ | ||
"apigateway:CreateStage", | ||
"apigateway:DeleteStage", | ||
"apigateway:UpdateStage" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"lambda:CreateFunction", | ||
"lambda:DeleteFunction", | ||
"lambda:UpdateFunctionConfiguration" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"apigateway:CreateDeployment", | ||
"apigateway:DeleteDeployment", | ||
"apigateway:UpdateDeployment" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": null, | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"ecr:PutImage", | ||
"ecr:BatchDeleteImage", | ||
"ecr:PutImage" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"iam:CreateRole", | ||
"iam:DeleteRole", | ||
"iam:UpdateAssumeRolePolicy" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"apigateway:CreateRestApi", | ||
"apigateway:DeleteRestApi", | ||
"apigateway:UpdateRestApi" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"ecr:CreateRepository", | ||
"ecr:DeleteRepository", | ||
"ecr:PutLifecyclePolicy" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"logs:CreateLogGroup", | ||
"logs:DeleteLogGroup", | ||
"logs:PutRetentionPolicy" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"apigateway:CreateResource", | ||
"apigateway:DeleteResource", | ||
"apigateway:UpdateResource" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"apigateway:PutMethod", | ||
"apigateway:DeleteMethod", | ||
"apigateway:UpdateMethod" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
}, | ||
{ | ||
"Action": [ | ||
"apigateway:PutIntegration", | ||
"apigateway:DeleteIntegration", | ||
"apigateway:UpdateIntegration" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
} |
Oops, something went wrong.