From 7c1afc4c37dca7be162eb68aae0c99fcb995e308 Mon Sep 17 00:00:00 2001 From: Alex Pickering Date: Sat, 14 Dec 2024 14:40:19 -0800 Subject: [PATCH] try get lt --- cf/batch.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cf/batch.yaml b/cf/batch.yaml index 6b5f582f55..d6b97fa074 100644 --- a/cf/batch.yaml +++ b/cf/batch.yaml @@ -19,6 +19,7 @@ Resources: # Define the Launch Template with Metadata Options BatchLaunchTemplate: Type: AWS::EC2::LaunchTemplate + DeletionPolicy: Retain Properties: LaunchTemplateName: !Sub "batch-${Environment}-launch-template" LaunchTemplateData: @@ -28,6 +29,7 @@ Resources: BatchComputeEnvironment: Type: AWS::Batch::ComputeEnvironment + DeletionPolicy: Delete Properties: ComputeEnvironmentName: !Sub "compute-env-${Environment}" State: ENABLED @@ -69,6 +71,7 @@ Resources: BatchJobQueue: Type: AWS::Batch::JobQueue DependsOn: BatchComputeEnvironment + DeletionPolicy: Delete Properties: JobQueueName: !Sub "queue-pipeline-${Environment}" Priority: 1 @@ -76,4 +79,3 @@ Resources: - ComputeEnvironment: !Sub "compute-env-${Environment}" Order: 1 State: ENABLED - \ No newline at end of file