Skip to content

Commit

Permalink
feat: enabled preview feature
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgadgi committed Jun 20, 2023
1 parent 61a04ec commit a6ddfc4
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit a6ddfc4

Please sign in to comment.