Update parameters
This commit is contained in:
parent
5da8dbc0c4
commit
112f51f7a1
@ -15,7 +15,7 @@ Parameters:
|
|||||||
AllowedValues: ['develop', 'production']
|
AllowedValues: ['develop', 'production']
|
||||||
ConstraintDescription: "Must be a possible release version."
|
ConstraintDescription: "Must be a possible release version."
|
||||||
VpcId:
|
VpcId:
|
||||||
Description: ID of the VPC
|
Description: ID of the VPC to deploy resources.
|
||||||
Type: AWS::EC2::VPC::Id
|
Type: AWS::EC2::VPC::Id
|
||||||
|
|
||||||
#-------------------
|
#-------------------
|
||||||
@ -23,7 +23,7 @@ Parameters:
|
|||||||
#-------------------
|
#-------------------
|
||||||
EcsClusterOverride:
|
EcsClusterOverride:
|
||||||
Type: String
|
Type: String
|
||||||
Description: The cluster to run the Nakama service on, if empty will create new cluster
|
Description: The cluster to run the Nakama service on, if empty will create new cluster.
|
||||||
Default: ""
|
Default: ""
|
||||||
|
|
||||||
#-----------------
|
#-----------------
|
||||||
@ -33,7 +33,7 @@ Parameters:
|
|||||||
Description: The public subnets for the ALB to run in. (Seperate by spaces)
|
Description: The public subnets for the ALB to run in. (Seperate by spaces)
|
||||||
Type: String
|
Type: String
|
||||||
PortalCertificate:
|
PortalCertificate:
|
||||||
Description: Arn of AWS Certificate
|
Description: Arn of AWS Certificate in ACM
|
||||||
Type: String
|
Type: String
|
||||||
|
|
||||||
#----------------------
|
#----------------------
|
||||||
@ -51,6 +51,7 @@ Parameters:
|
|||||||
Type: String
|
Type: String
|
||||||
Description: Override Nakama admin portal password. Leave blank for random password.
|
Description: Override Nakama admin portal password. Leave blank for random password.
|
||||||
Default: ""
|
Default: ""
|
||||||
|
NoEcho: true
|
||||||
|
|
||||||
#------------------------
|
#------------------------
|
||||||
# Database Configuration
|
# Database Configuration
|
||||||
@ -58,24 +59,26 @@ Parameters:
|
|||||||
CreateDatabase:
|
CreateDatabase:
|
||||||
Type: String
|
Type: String
|
||||||
Default: "true"
|
Default: "true"
|
||||||
|
Description: If
|
||||||
AllowedValues: ["true", "false"]
|
AllowedValues: ["true", "false"]
|
||||||
|
|
||||||
# Manual Database Configuration
|
# Manual Database Configuration
|
||||||
DatabaseUsername:
|
DatabaseUsername:
|
||||||
Type: String
|
Type: String
|
||||||
Description: Username of the Postgres server
|
Description: Manual username of the Postgres server
|
||||||
Default: postgres
|
Default: postgres
|
||||||
DatabasePassword:
|
DatabasePassword:
|
||||||
Type: String
|
Type: String
|
||||||
Description: Password for the Postgres server
|
Description: Manual password for the Postgres server
|
||||||
Default: ""
|
Default: ""
|
||||||
|
NoEcho: true
|
||||||
DatabaseEndpoint:
|
DatabaseEndpoint:
|
||||||
Type: String
|
Type: String
|
||||||
Description: Endpoint for the Postgres server
|
Description: Manual endpoint for the Postgres server
|
||||||
Default: ""
|
Default: ""
|
||||||
DatabasePort:
|
DatabasePort:
|
||||||
Type: Number
|
Type: Number
|
||||||
Description: Port for the Postgres server
|
Description: Manual port for the Postgres server
|
||||||
Default: 5432
|
Default: 5432
|
||||||
|
|
||||||
# Advanced RDS Configuration
|
# Advanced RDS Configuration
|
||||||
@ -87,7 +90,7 @@ Parameters:
|
|||||||
Type: String
|
Type: String
|
||||||
Description: Database engine for the database to use
|
Description: Database engine for the database to use
|
||||||
Default: postgres
|
Default: postgres
|
||||||
AllowedValues: ["aurora", "aurora-mysql", "aurora-postgresql", "mariadb", "mysql", "oracle-ee", "oracle-se2", "oracle-se1", "oracle-se", "postgres", "sqlserver-ee", "sqlserver-se", "sqlserver-ex", "sqlserver-web"]
|
AllowedValues: ["aurora-postgresql", "postgres"]
|
||||||
RdsUsername:
|
RdsUsername:
|
||||||
Type: String
|
Type: String
|
||||||
Description: Master account's username for database
|
Description: Master account's username for database
|
||||||
@ -104,6 +107,10 @@ Parameters:
|
|||||||
Type: String
|
Type: String
|
||||||
Description: The CIDR used in the security group to secure the database
|
Description: The CIDR used in the security group to secure the database
|
||||||
Default: "0.0.0.0/0"
|
Default: "0.0.0.0/0"
|
||||||
|
|
||||||
|
#-----
|
||||||
|
# DNS
|
||||||
|
#-----
|
||||||
Domain:
|
Domain:
|
||||||
Type: String
|
Type: String
|
||||||
Description: The domain to create the endpoint on (Must have an existing hosted zone ex. `example.com`) Leave blank to skip DNS.
|
Description: The domain to create the endpoint on (Must have an existing hosted zone ex. `example.com`) Leave blank to skip DNS.
|
||||||
@ -113,6 +120,100 @@ Parameters:
|
|||||||
Description: The subdomain to be used by nakama. (ex. `nakama.example.com`)
|
Description: The subdomain to be used by nakama. (ex. `nakama.example.com`)
|
||||||
Default: nakama
|
Default: nakama
|
||||||
|
|
||||||
|
Metadata:
|
||||||
|
AWS::CloudFormation::Interface:
|
||||||
|
ParameterGroups:
|
||||||
|
- Label:
|
||||||
|
default: "Deployment Information"
|
||||||
|
Parameters:
|
||||||
|
- environment
|
||||||
|
- release
|
||||||
|
- VpcId
|
||||||
|
- PublicSubnets
|
||||||
|
- Label:
|
||||||
|
default: "DNS"
|
||||||
|
Parameters:
|
||||||
|
- Domain
|
||||||
|
- SubDomain
|
||||||
|
- Label:
|
||||||
|
default: "Nakama Configuration"
|
||||||
|
Parameters:
|
||||||
|
- NakamaContainer
|
||||||
|
- NakamaUsername
|
||||||
|
- NakamaPasswordOverride
|
||||||
|
- Label:
|
||||||
|
default: "Load Balancing"
|
||||||
|
Parameters:
|
||||||
|
- PortalCertificate
|
||||||
|
- Label:
|
||||||
|
default: "ECS Configuration"
|
||||||
|
Parameters:
|
||||||
|
- EcsClusterOverride
|
||||||
|
- Label:
|
||||||
|
default: "Database Configuration"
|
||||||
|
Parameters:
|
||||||
|
- CreateDatabase
|
||||||
|
- Label:
|
||||||
|
default: "Manual Database Configuration"
|
||||||
|
Parameters:
|
||||||
|
- DatabaseUsername
|
||||||
|
- DatabasePassword
|
||||||
|
- DatabaseEndpoint
|
||||||
|
- DatabasePort
|
||||||
|
- Label:
|
||||||
|
default: "RDS Configuration"
|
||||||
|
Parameters:
|
||||||
|
- RdsInstanceClass
|
||||||
|
- RdsEngine
|
||||||
|
- RdsUsername
|
||||||
|
- RdsPort
|
||||||
|
- RdsStorage
|
||||||
|
- RdsAccessCidr
|
||||||
|
ParameterLabels:
|
||||||
|
environment:
|
||||||
|
default: "Environment"
|
||||||
|
release:
|
||||||
|
default: "Release"
|
||||||
|
VpcId:
|
||||||
|
default: "Vpc Id"
|
||||||
|
EcsClusterOverride:
|
||||||
|
default: "Optional ECS Cluster Override"
|
||||||
|
PublicSubnets:
|
||||||
|
default: "Public Subnets"
|
||||||
|
PortalCertificate:
|
||||||
|
default: "Admin Portal ACM Certificate"
|
||||||
|
Domain:
|
||||||
|
default: "Route53 Domain"
|
||||||
|
NakamaContainer:
|
||||||
|
default: "Nakama Container Image"
|
||||||
|
NakamaUsername:
|
||||||
|
default: "Nakama Username"
|
||||||
|
NakamaPasswordOverride:
|
||||||
|
default: "Nakama Password Override"
|
||||||
|
CreateDatabase:
|
||||||
|
default: "Create RDS database?"
|
||||||
|
DatabaseUsername:
|
||||||
|
default: "Remote Database Username"
|
||||||
|
DatabasePassword:
|
||||||
|
default: "Remote Database Password"
|
||||||
|
DatabaseEndpoint:
|
||||||
|
default: "Remote Database Endpoint"
|
||||||
|
DatabasePort:
|
||||||
|
default: "Remote Database Port"
|
||||||
|
RdsInstanceClass:
|
||||||
|
default: "RDS Instance Class"
|
||||||
|
RdsEngine:
|
||||||
|
default: "RDS Engine"
|
||||||
|
RdsUsername:
|
||||||
|
default: "RDS Username"
|
||||||
|
RdsPort:
|
||||||
|
default: "RDS Port"
|
||||||
|
RdsStorage:
|
||||||
|
default: "RDS Storage"
|
||||||
|
RdsAccessCidr:
|
||||||
|
default: "RDS Allow Access CIDR"
|
||||||
|
|
||||||
|
|
||||||
Conditions:
|
Conditions:
|
||||||
CreateRdsStack: !Equals [!Ref CreateDatabase, "true"]
|
CreateRdsStack: !Equals [!Ref CreateDatabase, "true"]
|
||||||
CreateDns: !Not [!Equals [!Ref Domain, ""]]
|
CreateDns: !Not [!Equals [!Ref Domain, ""]]
|
||||||
|
Loading…
Reference in New Issue
Block a user