-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use TopologicalSort for viz yaml same as resources.yaml
- Loading branch information
1 parent
f11da88
commit 24f68e6
Showing
32 changed files
with
897 additions
and
897 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,3 +48,4 @@ go.work.sum | |
*.key | ||
|
||
/logs | ||
__debug_bin* |
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 |
---|---|---|
@@ -1,87 +1,87 @@ | ||
provider: aws | ||
resources: | ||
ecr_repo/lambda_function_0-image-ecr_repo: | ||
|
||
ecr_repo/lambda_function_1-image-ecr_repo: | ||
|
||
log_group/lambda_function_0-log-group: | ||
aws:api_stage:rest_api_1/api_stage-0: | ||
|
||
log_group/lambda_function_1-log-group: | ||
aws:api_stage:rest_api_1/api_stage-0 -> aws:api_deployment:rest_api_1/api_deployment-0: | ||
aws:api_stage:rest_api_1/api_stage-0 -> rest_api/rest_api_1: | ||
aws:api_deployment:rest_api_1/api_deployment-0: | ||
|
||
rest_api/rest_api_1: | ||
aws:api_deployment:rest_api_1/api_deployment-0 -> aws:api_integration:rest_api_1/integ0: | ||
aws:api_deployment:rest_api_1/api_deployment-0 -> aws:api_integration:rest_api_1/integ1: | ||
aws:api_deployment:rest_api_1/api_deployment-0 -> aws:api_method:rest_api_1/integ0-api_method: | ||
aws:api_deployment:rest_api_1/api_deployment-0 -> aws:api_method:rest_api_1/integ1-api_method: | ||
aws:api_deployment:rest_api_1/api_deployment-0 -> rest_api/rest_api_1: | ||
aws:api_integration:rest_api_1/integ0: | ||
|
||
ecr_image/lambda_function_0-image: | ||
aws:api_integration:rest_api_1/integ0 -> aws:api_method:rest_api_1/integ0-api_method: | ||
aws:api_integration:rest_api_1/integ0 -> aws:api_resource:rest_api_1/api_resource-0: | ||
aws:api_integration:rest_api_1/integ0 -> lambda_function/lambda_function_0: | ||
aws:api_integration:rest_api_1/integ0 -> lambda_permission/integ0-lambda_function_0: | ||
aws:api_integration:rest_api_1/integ0 -> rest_api/rest_api_1: | ||
aws:api_integration:rest_api_1/integ1: | ||
|
||
ecr_image/lambda_function_0-image -> ecr_repo/lambda_function_0-image-ecr_repo: | ||
ecr_image/lambda_function_1-image: | ||
aws:api_integration:rest_api_1/integ1 -> aws:api_method:rest_api_1/integ1-api_method: | ||
aws:api_integration:rest_api_1/integ1 -> aws:api_resource:rest_api_1/api_resource-1: | ||
aws:api_integration:rest_api_1/integ1 -> lambda_function/lambda_function_1: | ||
aws:api_integration:rest_api_1/integ1 -> lambda_permission/integ1-lambda_function_1: | ||
aws:api_integration:rest_api_1/integ1 -> rest_api/rest_api_1: | ||
aws:api_method:rest_api_1/integ0-api_method: | ||
|
||
ecr_image/lambda_function_1-image -> ecr_repo/lambda_function_1-image-ecr_repo: | ||
iam_role/lambda_function_0-executionrole: | ||
aws:api_method:rest_api_1/integ0-api_method -> aws:api_resource:rest_api_1/api_resource-0: | ||
aws:api_method:rest_api_1/integ0-api_method -> rest_api/rest_api_1: | ||
lambda_permission/integ0-lambda_function_0: | ||
|
||
iam_role/lambda_function_0-executionrole -> log_group/lambda_function_0-log-group: | ||
iam_role/lambda_function_1-executionrole: | ||
lambda_permission/integ0-lambda_function_0 -> lambda_function/lambda_function_0: | ||
lambda_permission/integ0-lambda_function_0 -> rest_api/rest_api_1: | ||
aws:api_method:rest_api_1/integ1-api_method: | ||
|
||
iam_role/lambda_function_1-executionrole -> log_group/lambda_function_1-log-group: | ||
aws:api_resource:rest_api_1/lambda0: | ||
aws:api_method:rest_api_1/integ1-api_method -> aws:api_resource:rest_api_1/api_resource-1: | ||
aws:api_method:rest_api_1/integ1-api_method -> rest_api/rest_api_1: | ||
lambda_permission/integ1-lambda_function_1: | ||
|
||
aws:api_resource:rest_api_1/lambda0 -> rest_api/rest_api_1: | ||
aws:api_resource:rest_api_1/lambda1: | ||
lambda_permission/integ1-lambda_function_1 -> lambda_function/lambda_function_1: | ||
lambda_permission/integ1-lambda_function_1 -> rest_api/rest_api_1: | ||
aws:api_resource:rest_api_1/api_resource-0: | ||
|
||
aws:api_resource:rest_api_1/lambda1 -> rest_api/rest_api_1: | ||
aws:api_resource:rest_api_1/api_resource-0 -> aws:api_resource:rest_api_1/lambda0: | ||
aws:api_resource:rest_api_1/api_resource-0 -> rest_api/rest_api_1: | ||
lambda_function/lambda_function_0: | ||
|
||
lambda_function/lambda_function_0 -> ecr_image/lambda_function_0-image: | ||
lambda_function/lambda_function_0 -> iam_role/lambda_function_0-executionrole: | ||
aws:api_resource:rest_api_1/api_resource-1: | ||
|
||
aws:api_resource:rest_api_1/api_resource-1 -> aws:api_resource:rest_api_1/lambda1: | ||
aws:api_resource:rest_api_1/api_resource-1 -> rest_api/rest_api_1: | ||
lambda_function/lambda_function_1: | ||
|
||
lambda_function/lambda_function_1 -> ecr_image/lambda_function_1-image: | ||
lambda_function/lambda_function_1 -> iam_role/lambda_function_1-executionrole: | ||
aws:api_resource:rest_api_1/api_resource-0: | ||
aws:api_resource:rest_api_1/lambda0: | ||
|
||
aws:api_resource:rest_api_1/api_resource-0 -> aws:api_resource:rest_api_1/lambda0: | ||
aws:api_resource:rest_api_1/api_resource-0 -> rest_api/rest_api_1: | ||
aws:api_resource:rest_api_1/api_resource-1: | ||
aws:api_resource:rest_api_1/lambda0 -> rest_api/rest_api_1: | ||
ecr_image/lambda_function_0-image: | ||
|
||
aws:api_resource:rest_api_1/api_resource-1 -> aws:api_resource:rest_api_1/lambda1: | ||
aws:api_resource:rest_api_1/api_resource-1 -> rest_api/rest_api_1: | ||
lambda_permission/integ0-lambda_function_0: | ||
ecr_image/lambda_function_0-image -> ecr_repo/lambda_function_0-image-ecr_repo: | ||
iam_role/lambda_function_0-executionrole: | ||
|
||
lambda_permission/integ0-lambda_function_0 -> lambda_function/lambda_function_0: | ||
lambda_permission/integ0-lambda_function_0 -> rest_api/rest_api_1: | ||
lambda_permission/integ1-lambda_function_1: | ||
iam_role/lambda_function_0-executionrole -> log_group/lambda_function_0-log-group: | ||
aws:api_resource:rest_api_1/lambda1: | ||
|
||
lambda_permission/integ1-lambda_function_1 -> lambda_function/lambda_function_1: | ||
lambda_permission/integ1-lambda_function_1 -> rest_api/rest_api_1: | ||
aws:api_method:rest_api_1/integ0-api_method: | ||
aws:api_resource:rest_api_1/lambda1 -> rest_api/rest_api_1: | ||
ecr_image/lambda_function_1-image: | ||
|
||
aws:api_method:rest_api_1/integ0-api_method -> aws:api_resource:rest_api_1/api_resource-0: | ||
aws:api_method:rest_api_1/integ0-api_method -> rest_api/rest_api_1: | ||
aws:api_method:rest_api_1/integ1-api_method: | ||
ecr_image/lambda_function_1-image -> ecr_repo/lambda_function_1-image-ecr_repo: | ||
iam_role/lambda_function_1-executionrole: | ||
|
||
aws:api_method:rest_api_1/integ1-api_method -> aws:api_resource:rest_api_1/api_resource-1: | ||
aws:api_method:rest_api_1/integ1-api_method -> rest_api/rest_api_1: | ||
aws:api_integration:rest_api_1/integ0: | ||
iam_role/lambda_function_1-executionrole -> log_group/lambda_function_1-log-group: | ||
ecr_repo/lambda_function_0-image-ecr_repo: | ||
|
||
aws:api_integration:rest_api_1/integ0 -> aws:api_method:rest_api_1/integ0-api_method: | ||
aws:api_integration:rest_api_1/integ0 -> aws:api_resource:rest_api_1/api_resource-0: | ||
aws:api_integration:rest_api_1/integ0 -> lambda_function/lambda_function_0: | ||
aws:api_integration:rest_api_1/integ0 -> lambda_permission/integ0-lambda_function_0: | ||
aws:api_integration:rest_api_1/integ0 -> rest_api/rest_api_1: | ||
aws:api_integration:rest_api_1/integ1: | ||
log_group/lambda_function_0-log-group: | ||
|
||
aws:api_integration:rest_api_1/integ1 -> aws:api_method:rest_api_1/integ1-api_method: | ||
aws:api_integration:rest_api_1/integ1 -> aws:api_resource:rest_api_1/api_resource-1: | ||
aws:api_integration:rest_api_1/integ1 -> lambda_function/lambda_function_1: | ||
aws:api_integration:rest_api_1/integ1 -> lambda_permission/integ1-lambda_function_1: | ||
aws:api_integration:rest_api_1/integ1 -> rest_api/rest_api_1: | ||
aws:api_deployment:rest_api_1/api_deployment-0: | ||
rest_api/rest_api_1: | ||
|
||
aws:api_deployment:rest_api_1/api_deployment-0 -> aws:api_integration:rest_api_1/integ0: | ||
aws:api_deployment:rest_api_1/api_deployment-0 -> aws:api_integration:rest_api_1/integ1: | ||
aws:api_deployment:rest_api_1/api_deployment-0 -> aws:api_method:rest_api_1/integ0-api_method: | ||
aws:api_deployment:rest_api_1/api_deployment-0 -> aws:api_method:rest_api_1/integ1-api_method: | ||
aws:api_deployment:rest_api_1/api_deployment-0 -> rest_api/rest_api_1: | ||
aws:api_stage:rest_api_1/api_stage-0: | ||
ecr_repo/lambda_function_1-image-ecr_repo: | ||
|
||
log_group/lambda_function_1-log-group: | ||
|
||
aws:api_stage:rest_api_1/api_stage-0 -> aws:api_deployment:rest_api_1/api_deployment-0: | ||
aws:api_stage:rest_api_1/api_stage-0 -> rest_api/rest_api_1: |
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
52 changes: 26 additions & 26 deletions
52
pkg/engine/testdata/delete_api_to_lambda_edge.iac-viz.yaml
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 |
---|---|---|
@@ -1,41 +1,41 @@ | ||
provider: aws | ||
resources: | ||
ecr_repo/ecr_repo-0: | ||
|
||
log_group/lambda_function_2-log-group: | ||
|
||
rest_api/rest_api_0: | ||
aws:api_stage:rest_api_0/api_stage-0: | ||
|
||
ecr_image/lambda_function_2-image: | ||
aws:api_stage:rest_api_0/api_stage-0 -> aws:api_deployment:rest_api_0/api_deployment-0: | ||
aws:api_stage:rest_api_0/api_stage-0 -> rest_api/rest_api_0: | ||
aws:api_deployment:rest_api_0/api_deployment-0: | ||
|
||
ecr_image/lambda_function_2-image -> ecr_repo/ecr_repo-0: | ||
iam_role/lambda_function_2-executionrole: | ||
aws:api_deployment:rest_api_0/api_deployment-0 -> aws:api_integration:rest_api_0/rest_api_0_integration_0: | ||
aws:api_deployment:rest_api_0/api_deployment-0 -> aws:api_method:rest_api_0/rest_api_0_integration_0_method: | ||
aws:api_deployment:rest_api_0/api_deployment-0 -> rest_api/rest_api_0: | ||
aws:api_integration:rest_api_0/rest_api_0_integration_0: | ||
|
||
iam_role/lambda_function_2-executionrole -> log_group/lambda_function_2-log-group: | ||
aws:api_resource:rest_api_0/api_resource-0: | ||
aws:api_integration:rest_api_0/rest_api_0_integration_0 -> aws:api_method:rest_api_0/rest_api_0_integration_0_method: | ||
aws:api_integration:rest_api_0/rest_api_0_integration_0 -> aws:api_resource:rest_api_0/api_resource-0: | ||
aws:api_integration:rest_api_0/rest_api_0_integration_0 -> lambda_function/lambda_function_2: | ||
aws:api_integration:rest_api_0/rest_api_0_integration_0 -> rest_api/rest_api_0: | ||
aws:api_method:rest_api_0/rest_api_0_integration_0_method: | ||
|
||
aws:api_resource:rest_api_0/api_resource-0 -> rest_api/rest_api_0: | ||
aws:api_method:rest_api_0/rest_api_0_integration_0_method -> aws:api_resource:rest_api_0/api_resource-0: | ||
aws:api_method:rest_api_0/rest_api_0_integration_0_method -> rest_api/rest_api_0: | ||
lambda_function/lambda_function_2: | ||
|
||
lambda_function/lambda_function_2 -> ecr_image/lambda_function_2-image: | ||
lambda_function/lambda_function_2 -> iam_role/lambda_function_2-executionrole: | ||
lambda_function/lambda_function_2 -> log_group/lambda_function_2-log-group: | ||
aws:api_method:rest_api_0/rest_api_0_integration_0_method: | ||
aws:api_resource:rest_api_0/api_resource-0: | ||
|
||
aws:api_method:rest_api_0/rest_api_0_integration_0_method -> aws:api_resource:rest_api_0/api_resource-0: | ||
aws:api_method:rest_api_0/rest_api_0_integration_0_method -> rest_api/rest_api_0: | ||
aws:api_integration:rest_api_0/rest_api_0_integration_0: | ||
aws:api_resource:rest_api_0/api_resource-0 -> rest_api/rest_api_0: | ||
ecr_image/lambda_function_2-image: | ||
|
||
aws:api_integration:rest_api_0/rest_api_0_integration_0 -> aws:api_method:rest_api_0/rest_api_0_integration_0_method: | ||
aws:api_integration:rest_api_0/rest_api_0_integration_0 -> aws:api_resource:rest_api_0/api_resource-0: | ||
aws:api_integration:rest_api_0/rest_api_0_integration_0 -> lambda_function/lambda_function_2: | ||
aws:api_integration:rest_api_0/rest_api_0_integration_0 -> rest_api/rest_api_0: | ||
aws:api_deployment:rest_api_0/api_deployment-0: | ||
ecr_image/lambda_function_2-image -> ecr_repo/ecr_repo-0: | ||
iam_role/lambda_function_2-executionrole: | ||
|
||
aws:api_deployment:rest_api_0/api_deployment-0 -> aws:api_integration:rest_api_0/rest_api_0_integration_0: | ||
aws:api_deployment:rest_api_0/api_deployment-0 -> aws:api_method:rest_api_0/rest_api_0_integration_0_method: | ||
aws:api_deployment:rest_api_0/api_deployment-0 -> rest_api/rest_api_0: | ||
aws:api_stage:rest_api_0/api_stage-0: | ||
iam_role/lambda_function_2-executionrole -> log_group/lambda_function_2-log-group: | ||
rest_api/rest_api_0: | ||
|
||
ecr_repo/ecr_repo-0: | ||
|
||
log_group/lambda_function_2-log-group: | ||
|
||
aws:api_stage:rest_api_0/api_stage-0 -> aws:api_deployment:rest_api_0/api_deployment-0: | ||
aws:api_stage:rest_api_0/api_stage-0 -> rest_api/rest_api_0: |
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
provider: aws | ||
resources: | ||
ecr_repo/ecr_repo-0: | ||
|
||
log_group/lambda_function_2-log-group: | ||
lambda_function/lambda_function_2: | ||
|
||
lambda_function/lambda_function_2 -> ecr_image/lambda_function_2-image: | ||
lambda_function/lambda_function_2 -> iam_role/lambda_function_2-executionrole: | ||
lambda_function/lambda_function_2 -> log_group/lambda_function_2-log-group: | ||
ecr_image/lambda_function_2-image: | ||
|
||
ecr_image/lambda_function_2-image -> ecr_repo/ecr_repo-0: | ||
iam_role/lambda_function_2-executionrole: | ||
|
||
iam_role/lambda_function_2-executionrole -> log_group/lambda_function_2-log-group: | ||
lambda_function/lambda_function_2: | ||
ecr_repo/ecr_repo-0: | ||
|
||
log_group/lambda_function_2-log-group: | ||
|
||
lambda_function/lambda_function_2 -> ecr_image/lambda_function_2-image: | ||
lambda_function/lambda_function_2 -> iam_role/lambda_function_2-executionrole: | ||
lambda_function/lambda_function_2 -> log_group/lambda_function_2-log-group: |
Oops, something went wrong.