From a6ddfc44dd1ada1958e258a613476cd1b13b230b Mon Sep 17 00:00:00 2001 From: nileshgadgi Date: Tue, 20 Jun 2023 15:17:25 +0530 Subject: [PATCH 1/2] feat: enabled preview feature --- main.tf | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/main.tf b/main.tf index d68d01f..c6e4d7f 100644 --- a/main.tf +++ b/main.tf @@ -75,16 +75,17 @@ resource "aws_amplify_backend_environment" "example" { resource "aws_amplify_branch" "main" { count = var.amplify_enabled ? 1 : 0 - app_id = join("", aws_amplify_app.example.*.id) - branch_name = var.branches.branch_name - display_name = var.branches.display_name - description = var.branches.description - framework = var.branches.framework - stage = var.branches.stage - enable_auto_build = var.branches.enable_auto_build - ttl = var.branches.ttl - environment_variables = var.branches.environment_variables - tags = module.labels.tags + app_id = join("", aws_amplify_app.example.*.id) + branch_name = var.branches.branch_name + display_name = var.branches.display_name + description = var.branches.description + framework = var.branches.framework + stage = var.branches.stage + enable_auto_build = var.branches.enable_auto_build + ttl = var.branches.ttl + environment_variables = var.branches.environment_variables + enable_pull_request_preview = var.branches.enable_pull_request_preview + tags = module.labels.tags } resource "aws_amplify_domain_association" "example" { From 2776c54af82c7133f8eb75b2004a12de9025edef Mon Sep 17 00:00:00 2001 From: nileshgadgi Date: Tue, 20 Jun 2023 15:18:36 +0530 Subject: [PATCH 2/2] feat: enabled preview feature --- _example/example.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_example/example.tf b/_example/example.tf index 72d6988..7d3ddef 100644 --- a/_example/example.tf +++ b/_example/example.tf @@ -28,8 +28,8 @@ module "amplify" { ] # domain_name = ["test-example.com", "www.test-example.com"] - amplify_repository = "https://github.com/clouddrove/terraform-aws-amplify" // The repository for the Amplify app - access_token = "ghp_xxxxtjq0xxxxxxxoLIMuxxxxxxBJg70txxxx" // The github access token + amplify_repository = "https://github.com/clouddrove/terraform-aws-amplify" // The repository for the Amplify app + access_token = "ghp_xxxxtjq0xxxxxxxoLIMuxxxxxxBJg70txxxx" // The github access token sub_domain_prefix_name = "scan" deployment_artifacts = "app-example-deployment" ttl = 5