Select Git revision
UserInterfaceState.xcuserstate
aws-stack.yml 5.26 KiB
AWSTemplateFormatVersion: 2010-09-09
Description: spiceql
Resources:
SpiceQLECSLaunchTemplate:
Type: AWS::EC2::LaunchTemplate
DependsOn: ECSCluster
Properties:
LaunchTemplateData:
ImageId: /aws/service/ecs/optimized-ami/amazon-linux-2/kernel-5.10/recommended/image_id
KeyName: AscEc2DevKey
IamInstanceProfile:
Arn: !Ref 'IamRoleInstanceProfile'
BlockDeviceMappings:
- DeviceName: /dev/xvda
Ebs:
VolumeSize: '5000'
UserData: !Base64
Fn::Sub:
- "#!/bin/bash \necho ECS_CLUSTER=${ClusterName} >> /etc/ecs/ecs.config;"
- ClusterName: !Ref 'ECSClusterName'
SpiceQLProdLogGroupSlot1:
Type: 'AWS::Logs::LogGroup'
Properties:
LogGroupName: spiceql_prod_slot1_log_group
Metadata:
'AWS::CloudFormation::Designer':
id: e9e7c015-1dda-480c-98e4-c4795d48e148
SpiceQLProdTaskDefSlot1:
Type: 'AWS::ECS::TaskDefinition'
Properties:
RequiresCompatibilities:
- EC2 #FARGATE
ExecutionRoleArn: 'arn:aws:iam::950438895271:role/csr-EcsTask-Role'
Cpu: 4096
Memory: 8192
NetworkMode: awsvpc
Volumes:
- Name: spiceql-ebs
ConfiguredAtLaunch: true
DockerVolumeConfiguration:
Scope: shared
ContainerDefinitions:
- Name: spiceql_prod_slot1_container
Image: 950438895271.dkr.ecr.us-west-2.amazonaws.com/spiceql:latest'
MountPoints:
- SourceVolume: spiceql-ebs
ContainerPath: /mnt/isis_data
ReadOnly: true
PortMappings:
- ContainerPort: 80
LogConfiguration:
LogDriver: awslogs
Options:
awslogs-region: !Ref 'AWS::Region'
awslogs-group: !Ref SpiceQLProdLogGroupSlot1
awslogs-stream-prefix: ecs
Environment:
- Name: SPICEROOT
Value: /mnt/isis_data
- Name: SPICEQL_LOG_LEVEL
Value: DEBUG
- Name: SSPICE_DEBUG
Value: TRUE
SpiceQLProdECSClusterSlot1:
Type: 'AWS::ECS::Cluster'
Properties:
ClusterName: spiceqlProdCluster_slot1
ClusterSettings:
- Name: containerInsights
Value: enabled