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:
44
cloudformation/grafana/dns.yaml
Normal file
44
cloudformation/grafana/dns.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
AWSTemplateFormatVersion: "2010-09-09"
|
||||
Description: Grafana DNS stack
|
||||
Parameters:
|
||||
#------------------------
|
||||
# Deployment Information
|
||||
#------------------------
|
||||
environment:
|
||||
Type: String
|
||||
Description: Name of the environment
|
||||
Default: production
|
||||
|
||||
#-----------------------
|
||||
# Route53 Configuration
|
||||
#-----------------------
|
||||
Domain:
|
||||
Type: String
|
||||
Description: The HostedZoneName to create the endpoint on
|
||||
SubDomain:
|
||||
Type: String
|
||||
Description: The subdomain to be used by grafana
|
||||
|
||||
#-----------
|
||||
# Resources
|
||||
#-----------
|
||||
GrafanaDns:
|
||||
Type: String
|
||||
Description: Load balancer dns endpoint for Grafana
|
||||
|
||||
Resources:
|
||||
GrafanaEndpoint:
|
||||
Type: AWS::Route53::RecordSet
|
||||
Properties:
|
||||
HostedZoneName: !Sub "${Domain}."
|
||||
Comment: 'DNS name for nakama'
|
||||
Name: !Sub "${SubDomain}.${Domain}."
|
||||
Type: CNAME
|
||||
TTL: '300'
|
||||
ResourceRecords:
|
||||
- !Ref GrafanaDns
|
||||
|
||||
Outputs:
|
||||
GrafanaEndpoint:
|
||||
Description: 'DNS name for Grafana'
|
||||
Value: !Sub "${SubDomain}.${Domain}."
|
||||
Reference in New Issue
Block a user