Skip to content

Commit

Permalink
Whitelabel namespace, tags and DNS names (#30)
Browse files Browse the repository at this point in the history
Co-authored-by: Aaron Carlucci <[email protected]>
  • Loading branch information
aaroncarlucci and Aaron Carlucci authored Oct 2, 2024
1 parent 41212d4 commit 9fa503b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
aws_region: us-east-1
aws_replication_region: us-west-2
aws_s3_terraform_state_object_key: development.tfstate
dns_name: dev.aws-ecs-demo.carlucci.network
dns_name: dev.aws-ecs-fargate-demo.carlucci.network
environment_name: dev
vpc_cidr_index: 1
secrets:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
aws_region: us-east-1
aws_replication_region: us-west-2
aws_s3_terraform_state_object_key: production.tfstate
dns_name: prod.aws-ecs-demo.carlucci.network
dns_name: prod.aws-ecs-fargate-demo.carlucci.network
environment_name: prod
vpc_cidr_index: 0
secrets:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ A demo project featuring deployment and CI/CD for a Hello World application on A

## Environments

* Production: https://aws-ecs-demo.carlucci.network
* Development: https://dev.aws-ecs-demo.carlucci.network
* Production: https://aws-ecs-fargate-demo.carlucci.network
* Development: https://dev.aws-ecs-fargate-demo.carlucci.network

Route53 hosted zones are provisioned for each environment and DNS name servers are delegated to from the parent domain.

Expand Down
4 changes: 2 additions & 2 deletions terraform/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ locals {
account_id = data.aws_caller_identity.current.account_id
alb_ips = [for v in aws_lb.alb.subnet_mapping : v.private_ipv4_address]
default_tags = {
Application = "aws-swan-demo"
Application = "aws-ecs-fargate-demo"
Environment = var.environment
}
namespace = "aws-swan-demo-${var.environment}"
namespace = "aws-ecs-fargate-demo-${var.environment}"
private_subnet_ids = [aws_subnet.private_1.id, aws_subnet.private_2.id]
public_subnet_ids = [aws_subnet.public_1.id, aws_subnet.public_2.id]
}

0 comments on commit 9fa503b

Please sign in to comment.