mirror of
https://github.com/sidpalas/devops-directive-terraform-course.git
synced 2025-12-11 13:21:14 +00:00
update domain
This commit is contained in:
7
.github/workflows/terraform.yml
vendored
7
.github/workflows/terraform.yml
vendored
@@ -1,10 +1,9 @@
|
|||||||
name: "Terraform"
|
name: "Terraform"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# Uncomment to enable staging deployment
|
push:
|
||||||
# push:
|
branches:
|
||||||
# branches:
|
- main
|
||||||
# - main
|
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|||||||
@@ -182,12 +182,12 @@ resource "aws_lb" "load_balancer" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_route53_zone" "primary" {
|
resource "aws_route53_zone" "primary" {
|
||||||
name = "mysuperawesomesite.com"
|
name = "devopsdeployed.com"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_route53_record" "root" {
|
resource "aws_route53_record" "root" {
|
||||||
zone_id = aws_route53_zone.primary.zone_id
|
zone_id = aws_route53_zone.primary.zone_id
|
||||||
name = "mysuperawesomesite.com"
|
name = "devopsdeployed.com"
|
||||||
type = "A"
|
type = "A"
|
||||||
|
|
||||||
alias {
|
alias {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
bucket_name = "devops-directive-web-app-data"
|
bucket_name = "devops-directive-web-app-data"
|
||||||
domain = "mysuperawesomesite.com"
|
domain = "devopsdeployed.com"
|
||||||
db_name = "mydb"
|
db_name = "mydb"
|
||||||
db_user = "foo"
|
db_user = "foo"
|
||||||
# db_pass = "foobarbaz"
|
# db_pass = "foobarbaz"
|
||||||
@@ -22,7 +22,7 @@ provider "aws" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
variable "db_pass_1" {
|
variable "db_pass_1" {
|
||||||
description = "password for database #2"
|
description = "password for database #1"
|
||||||
type = string
|
type = string
|
||||||
sensitive = true
|
sensitive = true
|
||||||
}
|
}
|
||||||
@@ -38,7 +38,7 @@ module "web_app_1" {
|
|||||||
|
|
||||||
# Input Variables
|
# Input Variables
|
||||||
bucket_name = "web-app-1-devops-directive-web-app-data"
|
bucket_name = "web-app-1-devops-directive-web-app-data"
|
||||||
domain = "mysuperawesomesite.com"
|
domain = "devopsdeployed.com"
|
||||||
app_name = "web-app-1"
|
app_name = "web-app-1"
|
||||||
environment_name = "production"
|
environment_name = "production"
|
||||||
instance_type = "t2.small"
|
instance_type = "t2.small"
|
||||||
@@ -53,7 +53,7 @@ module "web_app_2" {
|
|||||||
|
|
||||||
# Input Variables
|
# Input Variables
|
||||||
bucket_name = "web-app-2-devops-directive-web-app-data"
|
bucket_name = "web-app-2-devops-directive-web-app-data"
|
||||||
domain = "myothersuperawesomesite.com"
|
domain = "anotherdevopsdeployed.com"
|
||||||
app_name = "web-app-2"
|
app_name = "web-app-2"
|
||||||
environment_name = "production"
|
environment_name = "production"
|
||||||
instance_type = "t2.small"
|
instance_type = "t2.small"
|
||||||
|
|||||||
@@ -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?
|
- Cover this in advanced section?
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -23,5 +23,5 @@ provider "aws" {
|
|||||||
|
|
||||||
# Route53 zone is shared across staging and production
|
# Route53 zone is shared across staging and production
|
||||||
resource "aws_route53_zone" "primary" {
|
resource "aws_route53_zone" "primary" {
|
||||||
name = "mysuperawesomesite.com"
|
name = "devopsdeployed.com"
|
||||||
}
|
}
|
||||||
@@ -36,7 +36,7 @@ module "web_app" {
|
|||||||
|
|
||||||
# Input Variables
|
# Input Variables
|
||||||
bucket_name = "devops-directive-web-app-data-${local.environment_name}"
|
bucket_name = "devops-directive-web-app-data-${local.environment_name}"
|
||||||
domain = "mysuperawesomesite.com"
|
domain = "devopsdeployed.com"
|
||||||
environment_name = local.environment_name
|
environment_name = local.environment_name
|
||||||
instance_type = "t2.small"
|
instance_type = "t2.small"
|
||||||
create_dns_zone = false
|
create_dns_zone = false
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ module "web_app" {
|
|||||||
|
|
||||||
# Input Variables
|
# Input Variables
|
||||||
bucket_name = "devops-directive-web-app-data-${local.environment_name}"
|
bucket_name = "devops-directive-web-app-data-${local.environment_name}"
|
||||||
domain = "mysuperawesomesite.com"
|
domain = "devopsdeployed.com"
|
||||||
environment_name = local.environment_name
|
environment_name = local.environment_name
|
||||||
instance_type = "t2.micro"
|
instance_type = "t2.micro"
|
||||||
create_dns_zone = false
|
create_dns_zone = false
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ module "web_app" {
|
|||||||
|
|
||||||
# Input Variables
|
# Input Variables
|
||||||
bucket_name = "devops-directive-web-app-data-${local.environment_name}"
|
bucket_name = "devops-directive-web-app-data-${local.environment_name}"
|
||||||
domain = "mysuperawesomesite.com"
|
domain = "devopsdeployed.com"
|
||||||
environment_name = local.environment_name
|
environment_name = local.environment_name
|
||||||
instance_type = "t2.small"
|
instance_type = "t2.small"
|
||||||
create_dns_zone = terraform.workspace == "production" ? true : false
|
create_dns_zone = terraform.workspace == "production" ? true : false
|
||||||
|
|||||||
Reference in New Issue
Block a user