Skip to content

Commit

Permalink
feat: add deployment contracts to all components
Browse files Browse the repository at this point in the history
  • Loading branch information
roleyfoley committed Mar 4, 2024
1 parent e36ba17 commit 0538d26
Show file tree
Hide file tree
Showing 56 changed files with 287 additions and 63 deletions.
6 changes: 5 additions & 1 deletion aws/components/adaptor/setup.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@
[/#if]

[@addDefaultGenerationContract
subsets=["pregeneration", "config", "template", "prologue", "epilogue" ]
subsets=["deploymentcontract", "pregeneration", "config", "template", "prologue", "epilogue" ]
converters=converters
/]
[/#macro]

[#macro aws_adaptor_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract prologue=true epilogue=true /]
[/#macro]

[#macro aws_adaptor_cf_deployment_application occurrence ]
[@debug message="Entering" context=occurrence enabled=false /]

Expand Down
6 changes: 5 additions & 1 deletion aws/components/apigateway/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
[#ftl]

[#macro aws_apigateway_cf_deployment_generationcontract_application occurrence ]
[@addDefaultGenerationContract subsets=["pregeneration", "prologue", "template", "epilogue", "config", "cli" ] /]
[@addDefaultGenerationContract subsets=["deploymentcontract", "pregeneration", "prologue", "template", "epilogue", "config", "cli" ] /]
[/#macro]

[#macro aws_apigateway_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract prologue=true epilogue=true /]
[/#macro]

[#macro aws_apigateway_cf_deployment_application occurrence ]
Expand Down
6 changes: 5 additions & 1 deletion aws/components/apiusageplan/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[#ftl]
[#macro aws_apiusageplan_cf_deployment_generationcontract_application occurrence ]
[@addDefaultGenerationContract subsets="template" /]
[@addDefaultGenerationContract subsets=["deploymentcontract", "template"] /]
[/#macro]

[#macro aws_apiusageplan_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract /]
[/#macro]

[#macro aws_apiusageplan_cf_deployment_application occurrence ]
Expand Down
6 changes: 5 additions & 1 deletion aws/components/backupstore/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[#ftl]
[#macro aws_backupstore_cf_deployment_generationcontract_solution occurrence ]
[@addDefaultGenerationContract subsets=["template"] /]
[@addDefaultGenerationContract subsets=["deploymentcontract", "template"] /]
[/#macro]

[#macro aws_backupstore_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract /]
[/#macro]

[#macro aws_backupstore_cf_deployment_solution occurrence ]
Expand Down
6 changes: 5 additions & 1 deletion aws/components/baseline/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[#ftl]
[#macro aws_baseline_cf_deployment_generationcontract_segment occurrence ]
[@addDefaultGenerationContract subsets=["prologue", "template", "epilogue"] /]
[@addDefaultGenerationContract subsets=["deploymentcontract", "prologue", "template", "epilogue"] /]
[/#macro]

[#macro aws_baseline_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract prologue=true epilogue=true /]
[/#macro]

[#macro aws_baseline_cf_deployment_segment occurrence ]
Expand Down
6 changes: 5 additions & 1 deletion aws/components/bastion/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[#ftl]
[#macro aws_bastion_cf_deployment_generationcontract_segment occurrence ]
[@addDefaultGenerationContract
subsets="template"
subsets=["deploymentcontract", "template"]
alternatives=[
"primary",
{ "subset" : "template", "alternative" : "replace1"},
Expand All @@ -10,6 +10,10 @@
/]
[/#macro]

[#macro aws_bastion_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract changeset=true stack=false /]
[/#macro]

[#macro aws_bastion_cf_deployment_segment occurrence ]
[@debug message="Entering" context=occurrence enabled=false /]

Expand Down
8 changes: 6 additions & 2 deletions aws/components/cache/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[#ftl]
[#macro aws_cache_cf_deployment_generationcontract_solution occurrence ]
[@addDefaultGenerationContract subsets="template" /]
[@addDefaultGenerationContract subsets=["deploymentcontract", "template"] /]
[/#macro]

[#macro aws_cache_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract /]
[/#macro]

[#macro aws_cache_cf_deployment_solution occurrence ]
Expand Down Expand Up @@ -219,7 +223,7 @@
}
) +
attributeIfTrue(
"SnapshotRetentionLimit",
"SnapshotRetentionLimit",
solution.Backup.RetentionPeriod > 0,
solution.Backup.RetentionPeriod
)
Expand Down
6 changes: 5 additions & 1 deletion aws/components/cdn/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[#ftl]
[#macro aws_cdn_cf_deployment_generationcontract_solution occurrence ]
[@addDefaultGenerationContract subsets=["prologue", "template", "epilogue", "cli" ] /]
[@addDefaultGenerationContract subsets=["deploymentcontract", "prologue", "template", "epilogue", "cli" ] /]
[/#macro]

[#macro aws_cdn_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract prologue=true epilogue=true /]
[/#macro]

[#macro aws_cdn_cf_deployment_solution occurrence ]
Expand Down
6 changes: 5 additions & 1 deletion aws/components/certificateauthority/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[#ftl]
[#macro aws_certificateauthority_cf_deployment_generationcontract occurrence ]
[@addDefaultGenerationContract subsets=["template" ] /]
[@addDefaultGenerationContract subsets=["deploymentcontract", "template" ] /]
[/#macro]

[#macro aws_certificateauthority_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract /]
[/#macro]

[#macro aws_certificateauthority_cf_deployment_solution occurrence ]
Expand Down
6 changes: 5 additions & 1 deletion aws/components/clientvpn/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[#ftl]
[#macro aws_clientvpn_cf_deployment_generationcontract occurrence ]
[@addDefaultGenerationContract subsets=["template"] /]
[@addDefaultGenerationContract subsets=["deploymentcontract", "template"] /]
[/#macro]

[#macro aws_clientvpn_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract /]
[/#macro]

[#macro aws_clientvpn_cf_deployment occurrence ]
Expand Down
6 changes: 5 additions & 1 deletion aws/components/computecluster/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[#ftl]
[#macro aws_computecluster_cf_deployment_generationcontract_application occurrence ]
[@addDefaultGenerationContract subsets=[ "pregeneration", "template" ] /]
[@addDefaultGenerationContract subsets=["deploymentcontract", "pregeneration", "template" ] /]
[/#macro]

[#macro aws_computecluster_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract /]
[/#macro]

[#macro aws_computecluster_cf_deployment_application occurrence ]
Expand Down
6 changes: 5 additions & 1 deletion aws/components/configstore/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[#ftl]
[#macro aws_configstore_cf_deployment_generationcontract_solution occurrence ]
[@addDefaultGenerationContract subsets=["template", "epilogue", "cli"] /]
[@addDefaultGenerationContract subsets=["deploymentcontract", "template", "epilogue", "cli"] /]
[/#macro]

[#macro aws_configstore_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract epilogue=true /]
[/#macro]

[#macro aws_configstore_cf_deployment occurrence_solution ]
Expand Down
6 changes: 5 additions & 1 deletion aws/components/contenthub/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[#ftl]
[#macro aws_contenthub_cf_deployment_generationcontract_solution occurrence ]
[@addDefaultGenerationContract subsets="prologue" /]
[@addDefaultGenerationContract subsets=["deploymentcontract", "prologue"] /]
[/#macro]

[#macro aws_contenthub_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract prologue=true stack=false /]
[/#macro]

[#macro aws_contenthub_cf_deployment_solution occurrence ]
Expand Down
6 changes: 5 additions & 1 deletion aws/components/contentnode/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[#ftl]
[#macro aws_contentnode_cf_deployment_generationcontract_application occurrence ]
[@addDefaultGenerationContract subsets=[ "pregeneration", "prologue" ] /]
[@addDefaultGenerationContract subsets=["deploymentcontract", "pregeneration", "prologue" ] /]
[/#macro]

[#macro aws_contentnode_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract prologue=true stack=false /]
[/#macro]

[#macro aws_contentnode_cf_deployment_application occurrence ]
Expand Down
6 changes: 5 additions & 1 deletion aws/components/correspondent/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
[#ftl]

[#macro aws_correspondent_cf_deployment_generationcontract occurrence ]
[@addDefaultGenerationContract subsets=["template"] /]
[@addDefaultGenerationContract subsets=["deploymentcontract", "template"] /]
[/#macro]

[#macro aws_correspondent_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract /]
[/#macro]

[#macro aws_correspondent_cf_deployment occurrence ]
Expand Down
6 changes: 5 additions & 1 deletion aws/components/datacatalog/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
[#ftl]

[#macro aws_datacatalog_cf_deployment_generationcontract occurrence ]
[@addDefaultGenerationContract subsets=["template"] /]
[@addDefaultGenerationContract subsets=["deploymentcontract", "template"] /]
[/#macro]

[#macro aws_datacatalog_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract /]
[/#macro]

[#macro aws_datacatalog_cf_deployment occurrence ]
Expand Down
6 changes: 5 additions & 1 deletion aws/components/datafeed/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[#ftl]
[#macro aws_datafeed_cf_deployment_generationcontract_solution occurrence ]
[@addDefaultGenerationContract subsets="template" /]
[@addDefaultGenerationContract subsets=["deploymentcontract", "template"] /]
[/#macro]

[#macro aws_datafeed_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract /]
[/#macro]

[#macro aws_datafeed_cf_deployment_solution occurrence ]
Expand Down
6 changes: 5 additions & 1 deletion aws/components/dataset/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[#ftl]
[#macro aws_dataset_cf_deployment_generationcontract_application occurrence ]
[@addDefaultGenerationContract subsets=[ "pregeneration", "prologue" ] /]
[@addDefaultGenerationContract subsets=[ "deploymentcontract", "pregeneration", "prologue" ] /]
[/#macro]

[#macro aws_dataset_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract prologue=true stack=false /]
[/#macro]

[#macro aws_dataset_cf_deployment_application occurrence ]
Expand Down
6 changes: 5 additions & 1 deletion aws/components/datastream/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[#ftl]
[#macro aws_datastream_cf_deployment_generationcontract_solution occurrence ]
[@addDefaultGenerationContract subsets="template" /]
[@addDefaultGenerationContract subsets=["deploymentcontract", "template"] /]
[/#macro]

[#macro aws_datastream_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract /]
[/#macro]

[#macro aws_datastream_cf_deployment_solution occurrence ]
Expand Down
6 changes: 5 additions & 1 deletion aws/components/datavolume/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[#ftl]
[#macro aws_datavolume_cf_deployment_generationcontract_solution occurrence ]
[@addDefaultGenerationContract subsets=["template", "epilogue"] /]
[@addDefaultGenerationContract subsets=["deploymentcontract", "template", "epilogue"] /]
[/#macro]

[#macro aws_datavolume_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract epilogue=true /]
[/#macro]

[#macro aws_datavolume_cf_deployment_solution occurrence ]
Expand Down
6 changes: 5 additions & 1 deletion aws/components/db/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[#ftl]
[#macro aws_db_cf_deployment_generationcontract_solution occurrence ]
[@addDefaultGenerationContract
subsets=["prologue", "template", "epilogue"]
subsets=["deploymentcontract", "prologue", "template", "epilogue"]
alternatives=[
"primary",
{ "subset" : "template", "alternative" : "replace1"},
Expand All @@ -10,6 +10,10 @@
/]
[/#macro]

[#macro aws_db_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract prologue=true changeset=true stack=false epilogue=true /]
[/#macro]

[#macro aws_db_cf_deployment_solution occurrence ]
[@debug message="Entering" context=occurrence enabled=false /]

Expand Down
6 changes: 5 additions & 1 deletion aws/components/directory/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[#ftl]
[#macro aws_directory_cf_deployment_generationcontract occurrence ]
[@addDefaultGenerationContract subsets=[ "template", "epilogue" ] /]
[@addDefaultGenerationContract subsets=["deploymentcontract", "template", "epilogue" ] /]
[/#macro]

[#macro aws_directory_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract epilogue=true /]
[/#macro]

[#macro aws_directory_cf_deployment occurrence ]
Expand Down
6 changes: 5 additions & 1 deletion aws/components/dnszone/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
[#ftl]
[#macro aws_dnszone_cf_deployment_generationcontract_solution occurrence ]
[@addDefaultGenerationContract
subsets=["template"]
subsets=["deploymentcontract", "template"]
/]
[/#macro]

[#macro aws_dnszone_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract /]
[/#macro]

[#macro aws_dnszone_cf_deployment_solution occurrence ]
[@debug message="Entering" context=occurrence enabled=false /]

Expand Down
6 changes: 5 additions & 1 deletion aws/components/docdb/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[#ftl]
[#macro aws_docdb_cf_deployment_generationcontract_solution occurrence ]
[@addDefaultGenerationContract
subsets=["prologue", "template", "epilogue"]
subsets=["deploymentcontract", "prologue", "template", "epilogue"]
alternatives=[
"primary",
{ "subset" : "template", "alternative" : "replace1"},
Expand All @@ -10,6 +10,10 @@
/]
[/#macro]

[#macro aws_docdb_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract prologue=true stack=false changeset=true epilogue=true /]
[/#macro]

[#macro aws_docdb_cf_deployment_solution occurrence ]
[@debug message="Entering" context=occurrence enabled=false /]

Expand Down
6 changes: 5 additions & 1 deletion aws/components/ec2/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[#ftl]
[#macro aws_ec2_cf_deployment_generationcontract_solution occurrence ]
[@addDefaultGenerationContract
subsets=[ "template" ]
subsets=[ "deploymentcontract", "template" ]
alternatives=[
"primary",
{ "subset" : "template", "alternative" : "replace1" },
Expand All @@ -10,6 +10,10 @@
/]
[/#macro]

[#macro aws_ec2_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract stack=false changeset=true /]
[/#macro]

[#macro aws_ec2_cf_deployment_solution occurrence ]
[@debug message="Entering" context=occurrence enabled=false /]

Expand Down
6 changes: 5 additions & 1 deletion aws/components/ecs/setup.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[#ftl]
[#macro aws_ecs_cf_deployment_generationcontract_solution occurrence ]
[@addDefaultGenerationContract subsets=[ "prologue", "template" ] /]
[@addDefaultGenerationContract subsets=[ "deploymentcontract", "prologue", "template" ] /]
[/#macro]

[#macro aws_ecs_cf_deployment_deploymentcontract occurrence ]
[@addDefaultAWSDeploymentContract prologue=true /]
[/#macro]

[#macro aws_ecs_cf_deployment_solution occurrence ]
Expand Down
Loading

0 comments on commit 0538d26

Please sign in to comment.