mirror of
https://github.com/yeslayla/aws-ecs-grafana.git
synced 2025-12-06 09:23:23 +01:00
Intial grafana stack
Move workflows into .github directory Fix directory structure Fix container name Fix directory structure Fix parameter names Remove health check temp Health check work plz Working version
This commit is contained in:
39
cloudformation/grafana/task.yaml
Normal file
39
cloudformation/grafana/task.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
AWSTemplateFormatVersion: '2010-09-09'
|
||||
Description: Grafana ECS Task
|
||||
Parameters:
|
||||
LogGroupName:
|
||||
Type: String
|
||||
Description: The AWS CloudWatch log group to output logs to.
|
||||
Default: "/ecs/grafana"
|
||||
|
||||
Resources:
|
||||
|
||||
|
||||
LogGroup:
|
||||
Type: AWS::Logs::LogGroup
|
||||
Properties:
|
||||
RetentionInDays: 7
|
||||
LogGroupName: !Ref LogGroupName
|
||||
|
||||
TaskDefinition:
|
||||
Type: AWS::ECS::TaskDefinition
|
||||
Properties:
|
||||
ContainerDefinitions:
|
||||
- Name: grafana
|
||||
Essential: 'true'
|
||||
Image: "grafana/grafana:6.7.3"
|
||||
MemoryReservation: 800
|
||||
PortMappings:
|
||||
- HostPort: 0
|
||||
ContainerPort: 3000
|
||||
LogConfiguration:
|
||||
LogDriver: awslogs
|
||||
Options:
|
||||
awslogs-region:
|
||||
Ref: AWS::Region
|
||||
awslogs-group:
|
||||
Ref: LogGroup
|
||||
Outputs:
|
||||
TaskArn:
|
||||
Description: ARN of the TaskDefinition
|
||||
Value: !Ref TaskDefinition
|
||||
Reference in New Issue
Block a user