Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-ephemeral-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Sandbox Environment
name: Deploy Ephemeral Sandbox Environment

on:
pull_request:
Expand Down
9 changes: 8 additions & 1 deletion terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ locals {
dynamodb_table = "${local.name_dash}-${local.region}-${local.name_hash}-tflocks"
repo_name = basename(abspath("${get_path_to_repo_root()}"))
state_filename_ephemeral = "${local.account_name}/${coalesce(local.git_branch, local.current_user)}/${local.environment_instance}/terraform.tfstate"
state_filename_persist = "${local.account_name}/${coalesce(local.git_branch, local.current_user)}/${local.environment_instance}/terraform.tfstate"
state_filename_persist = "${local.account_name}/${local.environment_instance}/terraform.tfstate"
}

# Generate the AWS provider settings
Expand All @@ -34,6 +34,7 @@ provider "aws" {
tags = {
Organization = var.organization_tag
Repository = coalesce(var.repository_tag, "${basename(abspath(dirname(find_in_parent_folders("terragrunt.hcl"))))}")
Branch = var.branch_tag
CommitHash = var.commit_hash_tag
}
}
Expand All @@ -47,6 +48,7 @@ provider "aws" {
tags = {
Organization = var.organization_tag
Repository = coalesce(var.repository_tag, "${basename(abspath(dirname(find_in_parent_folders("terragrunt.hcl"))))}")
Branch = var.branch_tag
CommitHash = var.commit_hash_tag
}
}
Expand All @@ -62,6 +64,11 @@ variable "repository_tag" {
default = ""
}

variable "branch_tag" {
type = string
default = "RUN OUTSIDE PIPELINE"
}

variable "commit_hash_tag" {
type = string
default = "RUN OUTSIDE PIPELINE"
Expand Down
Loading