Implement stage
This commit is contained in:
		@ -6,13 +6,23 @@ Parameters:
 | 
			
		||||
    Description: The AWS CloudWatch log group to output logs to.
 | 
			
		||||
    Default: "/ecs/dt"
 | 
			
		||||
 | 
			
		||||
  environment:
 | 
			
		||||
    Type: String
 | 
			
		||||
    Description: Name of the environment to use in naming.
 | 
			
		||||
    Default: production
 | 
			
		||||
 | 
			
		||||
  DockerTag:
 | 
			
		||||
    Description: Tag in DockerHub to deploy
 | 
			
		||||
    Type: String
 | 
			
		||||
    Default: "latest"
 | 
			
		||||
 | 
			
		||||
Resources:
 | 
			
		||||
 | 
			
		||||
  LogGroup:
 | 
			
		||||
    Type: AWS::Logs::LogGroup
 | 
			
		||||
    Properties:
 | 
			
		||||
      RetentionInDays: 7
 | 
			
		||||
      LogGroupName: !Ref LogGroupName
 | 
			
		||||
      LogGroupName: !Sub "${LogGroupName}/${environment}"
 | 
			
		||||
 | 
			
		||||
  TaskDefinition:
 | 
			
		||||
    Type: AWS::ECS::TaskDefinition
 | 
			
		||||
@ -20,7 +30,7 @@ Resources:
 | 
			
		||||
      ContainerDefinitions:
 | 
			
		||||
      - Name: defend-together
 | 
			
		||||
        Essential: 'true'
 | 
			
		||||
        Image: "josephbmanley/defend-together:latest"
 | 
			
		||||
        Image: !Sub "josephbmanley/defend-together:${DockerTag}"
 | 
			
		||||
        MemoryReservation: 800
 | 
			
		||||
        PortMappings:
 | 
			
		||||
        - HostPort: 0
 | 
			
		||||
 | 
			
		||||
@ -12,11 +12,15 @@ Parameters:
 | 
			
		||||
    Type: String
 | 
			
		||||
    Description: Name of the release name of the stack version to use.
 | 
			
		||||
    Default: production
 | 
			
		||||
    AllowedValues: ['develop', 'production']
 | 
			
		||||
    AllowedValues: ['develop', 'stage', 'production']
 | 
			
		||||
    ConstraintDescription: "Must be a possible release version."
 | 
			
		||||
  VpcId:
 | 
			
		||||
    Description: ID of the VPC
 | 
			
		||||
    Type: AWS::EC2::VPC::Id
 | 
			
		||||
  DockerTag:
 | 
			
		||||
    Description: Tag in DockerHub to deploy
 | 
			
		||||
    Type: String
 | 
			
		||||
    Default: "latest"
 | 
			
		||||
  
 | 
			
		||||
  #-----------------
 | 
			
		||||
  # Load Balancing 
 | 
			
		||||
@ -95,7 +99,9 @@ Resources:
 | 
			
		||||
    Properties:
 | 
			
		||||
      TemplateURL: !Sub 'https://s3.${AWS::Region}.amazonaws.com/sumu-stacks/dt/${release}/cloudformation/dt/task.yaml'
 | 
			
		||||
      Parameters:
 | 
			
		||||
        environment: !Ref environment
 | 
			
		||||
        LogGroupName: !Ref LogGroup
 | 
			
		||||
        DockerTag: !Ref DockerTag
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  EcsService:
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user