Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion align/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,33 @@ resources:

Resources:

AlignmentLaunchTemplate:
Type: AWS::EC2::LaunchTemplate
Properties:
LaunchTemplateName: "${self:custom.stackName}-launch-template"
LaunchTemplateData:
TagSpecifications:
- ResourceType: instance
Tags:
- Key: PROJECT
Value: ${file(../config.yml):config.project}
- Key: VERSION
Value: ${self:custom.version}
- Key: DEVELOPER
Value: ${env:USER}
- Key: STAGE
Value: ${self:provider.stage}
- ResourceType: volume
Tags:
- Key: PROJECT
Value: ${file(../config.yml):config.project}
- Key: VERSION
Value: ${self:custom.version}
- Key: DEVELOPER
Value: ${env:USER}
- Key: STAGE
Value: ${self:provider.stage}

ComputeAlignmentEnv:
Type: AWS::Batch::ComputeEnvironment
Properties:
Expand All @@ -70,7 +97,9 @@ resources:
- !ImportValue 'janelia-neuronbridge-vpc-shared-AppSecurityGroupId'
Ec2KeyPair: ${self:custom.sshKeyPairName}
InstanceRole: ecsInstanceRole
Tags: ${self:provider.stackTags}
LaunchTemplate:
LaunchTemplateId: !Ref AlignmentLaunchTemplate
Version: $Latest

ComputeAlignmentJobQueue:
Type: AWS::Batch::JobQueue
Expand Down