generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate files, var fix for ecs task
- Loading branch information
1 parent
47674bb
commit c2f4670
Showing
6 changed files
with
57 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
terraform { | ||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
} | ||
} | ||
backend "s3" { | ||
region = "us-west-2" | ||
key = "incubator/home-unite-us/dev.tfstate" | ||
bucket = "hlfa-incubator-terragrunt" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
listener_arn = "arn:aws:elasticloadbalancing:us-west-2:035866691871:listener/app/incubator-prod-lb/7451adf77133ef36/390a225766a4daf3" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
resource "aws_ecr_repository" "this" { | ||
image_tag_mutability = "MUTABLE" | ||
name = local.app_name | ||
tags = { | ||
"Organization" = "Hack for LA" | ||
} | ||
|
||
image_scanning_configuration { | ||
scan_on_push = true | ||
} | ||
} | ||
|
||
data "aws_lb_listener" "listener" { | ||
arn = local.listener_arn | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
locals { | ||
root_host_name = "homeunite.us" | ||
app_name = "homeuniteus" | ||
listener_arn = "arn:aws:elasticloadbalancing:us-west-2:035866691871:listener/app/incubator-prod-lb/7451adf77133ef36/390a225766a4daf3" | ||
vpc_id = "vpc-0bec93a4d80243845" | ||
path_pattens = ["/*"] | ||
subdomains = [ | ||
"dev", | ||
"qa", | ||
"incubator" | ||
] | ||
host_names = [for subdomain in local.subdomains : "${subdomain}.${local.app_name}"] | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
resource "aws_route53_zone" "main" { | ||
name = local.root_host_name | ||
} | ||
|
||
resource "aws_route53_record" "root_a_record" { | ||
zone_id = aws_route53_zone.main.zone_id | ||
name = local.root_host_name | ||
type = "A" | ||
ttl = 300 | ||
records = ["18.223.160.58"] | ||
} |