Skip to content

Commit

Permalink
Merge pull request #7 from clouddrove/Feat/preview
Browse files Browse the repository at this point in the history
Feat/preview
  • Loading branch information
yadavprakash committed Jun 20, 2023
2 parents 61a04ec + 2776c54 commit 8d20617
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions _example/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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 8d20617

Please sign in to comment.