update domain

This commit is contained in:
sid palas
2022-02-13 12:00:39 -08:00
parent d276ae7b6e
commit 0fdc55db8e
9 changed files with 16 additions and 17 deletions

View File

@@ -1,10 +1,9 @@
name: "Terraform"
on:
# Uncomment to enable staging deployment
# push:
# branches:
# - main
push:
branches:
- main
release:
types: [published]
pull_request:

View File

@@ -182,12 +182,12 @@ resource "aws_lb" "load_balancer" {
}
resource "aws_route53_zone" "primary" {
name = "mysuperawesomesite.com"
name = "devopsdeployed.com"
}
resource "aws_route53_record" "root" {
zone_id = aws_route53_zone.primary.zone_id
name = "mysuperawesomesite.com"
name = "devopsdeployed.com"
type = "A"
alias {

View File

@@ -1,5 +1,5 @@
bucket_name = "devops-directive-web-app-data"
domain = "mysuperawesomesite.com"
domain = "devopsdeployed.com"
db_name = "mydb"
db_user = "foo"
# db_pass = "foobarbaz"
# db_pass = "foobarbaz"

View File

@@ -22,7 +22,7 @@ provider "aws" {
}
variable "db_pass_1" {
description = "password for database #2"
description = "password for database #1"
type = string
sensitive = true
}
@@ -38,7 +38,7 @@ module "web_app_1" {
# Input Variables
bucket_name = "web-app-1-devops-directive-web-app-data"
domain = "mysuperawesomesite.com"
domain = "devopsdeployed.com"
app_name = "web-app-1"
environment_name = "production"
instance_type = "t2.small"
@@ -53,7 +53,7 @@ module "web_app_2" {
# Input Variables
bucket_name = "web-app-2-devops-directive-web-app-data"
domain = "myothersuperawesomesite.com"
domain = "anotherdevopsdeployed.com"
app_name = "web-app-2"
environment_name = "production"
instance_type = "t2.small"

View File

@@ -1,4 +1,4 @@
- Note about using separate AWS projects (avoids prefix issues, improved IAM control)
- Note about using separate AWS accounts (avoids prefix issues, improved IAM control)
- Cover this in advanced section?
```

View File

@@ -23,5 +23,5 @@ provider "aws" {
# Route53 zone is shared across staging and production
resource "aws_route53_zone" "primary" {
name = "mysuperawesomesite.com"
}
name = "devopsdeployed.com"
}

View File

@@ -36,7 +36,7 @@ module "web_app" {
# Input Variables
bucket_name = "devops-directive-web-app-data-${local.environment_name}"
domain = "mysuperawesomesite.com"
domain = "devopsdeployed.com"
environment_name = local.environment_name
instance_type = "t2.small"
create_dns_zone = false

View File

@@ -36,7 +36,7 @@ module "web_app" {
# Input Variables
bucket_name = "devops-directive-web-app-data-${local.environment_name}"
domain = "mysuperawesomesite.com"
domain = "devopsdeployed.com"
environment_name = local.environment_name
instance_type = "t2.micro"
create_dns_zone = false

View File

@@ -36,7 +36,7 @@ module "web_app" {
# Input Variables
bucket_name = "devops-directive-web-app-data-${local.environment_name}"
domain = "mysuperawesomesite.com"
domain = "devopsdeployed.com"
environment_name = local.environment_name
instance_type = "t2.small"
create_dns_zone = terraform.workspace == "production" ? true : false