Skip to content

Commit

Permalink
allows overriding the task export prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronwalker committed Dec 15, 2023
1 parent 8e86f9d commit e8e8ca3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ecs-task.cfndsl.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
CloudFormation do

export = external_parameters.fetch(:export_name, external_parameters[:component_name])

export = external_parameters.fetch(:task_export_name, nil)
export = external_parameters.fetch(:export_name, external_parameters[:component_name]) if export.nil?

task_tags = []
task_tags << { Key: "Name", Value: external_parameters[:component_name] }
task_tags << { Key: "Environment", Value: Ref("EnvironmentName") }
Expand Down

0 comments on commit e8e8ca3

Please sign in to comment.