File tree Expand file tree Collapse file tree 7 files changed +106
-9
lines changed
Expand file tree Collapse file tree 7 files changed +106
-9
lines changed Original file line number Diff line number Diff line change 11locals {
2- region = " eu-west-2"
3- project_identifier = " vaccinations-app"
4- environment = " dev"
2+ region = " eu-west-2"
3+ project_identifier = " vaccinations-app"
4+ project_identifier_shortcode = " vita"
5+ environment = " dev"
6+ default_tags = {
7+ ManagedBy = " Terraform"
8+ Project = local.project_identifier
9+ Environment = local.environment
10+ }
511}
Original file line number Diff line number Diff line change 1+ module "deploy" {
2+ source = " ../../modules/deploy_app"
3+
4+ open-next-path = " ../../../.open-next"
5+ prefix = local. project_identifier_shortcode
6+ default_tags = local. default_tags
7+ }
Original file line number Diff line number Diff line change @@ -19,10 +19,6 @@ terraform {
1919provider "aws" {
2020 region = local. region
2121 default_tags {
22- tags = {
23- ManagedBy = " Terraform"
24- Project = local.project_identifier
25- Environment = local.environment
26- }
22+ tags = local. default_tags
2723 }
2824}
Original file line number Diff line number Diff line change 1+ data "aws_caller_identity" "current" {}
2+
3+ module "deploy_app" {
4+ source = " RJPearson94/open-next/aws//modules/tf-aws-open-next-zone"
5+ version = " >= 3.4.0,< 3.5.0"
6+ open_next_version = " v3.5.3"
7+
8+ providers = {
9+ aws.server_function = aws.server_function
10+ aws.iam = aws.iam
11+ aws.dns = aws.dns
12+ aws.global = aws.global
13+ }
14+
15+ prefix = " ${ var . prefix } -${ data . aws_caller_identity . current . account_id } "
16+ folder_path = var. open-next-path
17+ }
Original file line number Diff line number Diff line change 1+ provider "aws" {
2+ alias = " server_function"
3+ default_tags {
4+ tags = var. default_tags
5+ }
6+ }
7+
8+ provider "aws" {
9+ alias = " iam"
10+ default_tags {
11+ tags = var. default_tags
12+ }
13+ }
14+
15+ provider "aws" {
16+ alias = " dns"
17+ default_tags {
18+ tags = var. default_tags
19+ }
20+ }
21+
22+ provider "aws" {
23+ alias = " global"
24+ region = " us-east-1"
25+ default_tags {
26+ tags = var. default_tags
27+ }
28+ }
Original file line number Diff line number Diff line change 1+ variable "prefix" {}
2+ variable "open-next-path" {}
3+ variable "default_tags" {}
You can’t perform that action at this time.
0 commit comments