From f5703310ef07bd681ded961ea2d4789d97981474 Mon Sep 17 00:00:00 2001 From: aiordache Date: Mon, 27 Jul 2020 09:44:42 +0200 Subject: [PATCH] Add template description Signed-off-by: aiordache Signed-off-by: Nicolas De Loof --- ecs/pkg/amazon/backend/cloudformation.go | 2 +- .../testdata/simple/simple-cloudformation-conversion.golden | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ecs/pkg/amazon/backend/cloudformation.go b/ecs/pkg/amazon/backend/cloudformation.go index c07f7766d..2d85a8a78 100644 --- a/ecs/pkg/amazon/backend/cloudformation.go +++ b/ecs/pkg/amazon/backend/cloudformation.go @@ -51,7 +51,7 @@ func (b Backend) Convert(project *types.Project) (*cloudformation.Template, erro } template := cloudformation.NewTemplate() - + template.Description = "CloudFormation template created by Docker for deploying applications on Amazon ECS" template.Parameters[ParameterClusterName] = cloudformation.Parameter{ Type: "String", Description: "Name of the ECS cluster to deploy to (optional)", diff --git a/ecs/pkg/amazon/backend/testdata/simple/simple-cloudformation-conversion.golden b/ecs/pkg/amazon/backend/testdata/simple/simple-cloudformation-conversion.golden index 7e8859050..4db597e4d 100644 --- a/ecs/pkg/amazon/backend/testdata/simple/simple-cloudformation-conversion.golden +++ b/ecs/pkg/amazon/backend/testdata/simple/simple-cloudformation-conversion.golden @@ -18,6 +18,7 @@ ] } }, + "Description": "CloudFormation template created by Docker for deploying applications on Amazon ECS", "Parameters": { "ParameterClusterName": { "Description": "Name of the ECS cluster to deploy to (optional)",