|
1 | 1 | # Provide these variables in a terraform.tfvars file. |
2 | 2 |
|
| 3 | +# The AWS region determines where your resources will be created. |
| 4 | +# There is a list of available regions here: |
| 5 | +# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions |
3 | 6 | variable "aws_region" { |
4 | 7 | type = string |
5 | 8 | } |
6 | 9 |
|
| 10 | +# By default, we use Amazon's ECS-Optimized AMI. |
| 11 | +# You may want to use a custom image for a variety of reasons, such as reducing |
| 12 | +# the default disk size of 30GB. |
| 13 | +# To create custom AMIs, use Amazon's open source tool here: |
| 14 | +# https://github.com/aws/amazon-ecs-ami/ |
| 15 | +variable "custom_ami_id" { |
| 16 | + type = string |
| 17 | + default = "" |
| 18 | +} |
| 19 | + |
| 20 | +# The AWS Access Key ID for your Terraform IAM user. |
| 21 | +# This is only used in the provider configuration, and will not be stored in |
| 22 | +# the Terraform state. |
7 | 23 | variable "aws_access_key" { |
8 | 24 | type = string |
9 | 25 | } |
10 | 26 |
|
| 27 | +# The AWS Secret Access Key for your Terraform IAM user. |
| 28 | +# This is only used in the provider configuration, and will not be stored in |
| 29 | +# the Terraform state. |
11 | 30 | variable "aws_secret_key" { |
12 | 31 | type = string |
13 | 32 | } |
14 | 33 |
|
| 34 | +# The SSH public key to attach to your ECS-EC2 instances. |
15 | 35 | variable "ssh_public_key" { |
16 | 36 | type = string |
17 | 37 | } |
18 | 38 |
|
| 39 | +# The S3 bucket name for storing Duelyst static assets. |
| 40 | +# This name must be globally unique across all of AWS. |
19 | 41 | variable "assets_bucket_name" { |
20 | 42 | type = string |
21 | 43 | } |
22 | 44 |
|
| 45 | +# The S3 bucket name for storing Duelyst game replays. |
| 46 | +# This name must be globally unique across all of AWS. |
23 | 47 | variable "replays_bucket_name" { |
24 | 48 | type = string |
25 | 49 | } |
26 | 50 |
|
| 51 | +# The domain name for the staging API service, e.g. play.duelyst.com. |
27 | 52 | variable "staging_domain_name" { |
28 | 53 | type = string |
29 | 54 | } |
30 | 55 |
|
| 56 | +# The domain name for the CDN, e.g. cdn.duelyst.com. |
31 | 57 | variable "cdn_domain_name" { |
32 | 58 | type = string |
33 | 59 | } |
34 | 60 |
|
| 61 | +# The first of three availability zones to use when creating AWS resources. |
| 62 | +# You can find a list of Availability Zones you can use by following these |
| 63 | +# instructions: |
| 64 | +# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#availability-zones-describe |
| 65 | +# Note that availability zones are randomized for each AWS account. In other |
| 66 | +# words, us-east-1a in one account may not be the same datacenter as us-east-1a |
| 67 | +# in another AWS account. |
35 | 68 | variable "first_availability_zone" { |
36 | 69 | type = string |
37 | 70 | } |
38 | 71 |
|
| 72 | +# The second of three availability zones to use when creating AWS resources. |
| 73 | +# You can find a list of Availability Zones you can use by following these |
| 74 | +# instructions: |
| 75 | +# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#availability-zones-describe |
| 76 | +# Note that availability zones are randomized for each AWS account. In other |
| 77 | +# words, us-east-1a in one account may not be the same datacenter as us-east-1a |
| 78 | +# in another AWS account. |
39 | 79 | variable "second_availability_zone" { |
40 | 80 | type = string |
41 | 81 | } |
42 | 82 |
|
| 83 | +# The third of three availability zones to use when creating AWS resources. |
| 84 | +# You can find a list of Availability Zones you can use by following these |
| 85 | +# instructions: |
| 86 | +# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#availability-zones-describe |
| 87 | +# Note that availability zones are randomized for each AWS account. In other |
| 88 | +# words, us-east-1a in one account may not be the same datacenter as us-east-1a |
| 89 | +# in another AWS account. |
43 | 90 | variable "third_availability_zone" { |
44 | 91 | type = string |
45 | 92 | } |
46 | 93 |
|
| 94 | +# The name of your Firebase project. |
| 95 | +# This is not the URL, but the shorthand project name e.g. "duelyst-12345". |
| 96 | +# This is used for Firebase authentication flows in the backend services. |
47 | 97 | variable "firebase_project" { |
48 | 98 | type = string |
49 | 99 | } |
50 | 100 |
|
| 101 | +# The URL of your Firebase Realtime Database. |
| 102 | +# This must end in ".firebaseio.com/", including the trailing slash. |
51 | 103 | variable "firebase_url" { |
52 | 104 | type = string |
53 | 105 | } |
54 | 106 |
|
| 107 | +# The name of the user to create in the RDS Postgres database instance. |
| 108 | +# This should match the username used in the "postgres_connection_string" |
| 109 | +# config value in the app. |
55 | 110 | variable "database_user" { |
56 | 111 | type = string |
57 | 112 | } |
58 | 113 |
|
| 114 | +# The 8-character, alphanumeric ID for your public ECR registry. |
| 115 | +# This is used to tell ECS services where to obtain container images. |
59 | 116 | variable "ecr_registry_id" { |
60 | 117 | type = string |
61 | 118 | } |
62 | 119 |
|
| 120 | +# Cloudwatch Alarms will be routed to this email address. |
63 | 121 | variable "email_address_for_alarms" { |
64 | 122 | type = string |
65 | 123 | } |
0 commit comments