Skip to content

Commit

Permalink
Merge pull request #11 from dupontz/master
Browse files Browse the repository at this point in the history
removing string interpolation
  • Loading branch information
Guslington authored Mar 7, 2023
2 parents 3bde453 + eceef4e commit e01c896
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ecs-task.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
log_group_name = external_parameters.fetch(:log_group_name, Ref('AWS::StackName'))
Logs_LogGroup('LogGroup') {
LogGroupName log_group_name
RetentionInDays "#{log_retention}"
RetentionInDays log_retention
}

definitions, task_volumes, secrets = Array.new(4){[]}
Expand Down
12 changes: 12 additions & 0 deletions tests/retention_policy.test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
test_metadata:
type: config
name: ec2
description: Provision a ec2 based ecs task

task_definition:
schema:
repo: myrepo
image: backend
tag_param: SchemaTag

log_retention: "30"

0 comments on commit e01c896

Please sign in to comment.