Skip to content

Commit 893ef94

Browse files
Bump pre-commit tag
2 parents a775884 + 5a67092 commit 893ef94

File tree

16 files changed

+129
-71
lines changed

16 files changed

+129
-71
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Deploy Ephemeral Sandbox Environment
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
branches: [ "**" ]
7+
8+
jobs:
9+
get-tg-versions:
10+
permissions:
11+
contents: read
12+
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-terragrunt-versions.yml@0.1.7
13+
14+
build-matrix:
15+
permissions:
16+
contents: read
17+
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-github-matrix-tg.yml@0.1.7
18+
with:
19+
platform_environment: sandbox
20+
21+
call-terragrunt-deploy:
22+
needs: [get-tg-versions, build-matrix]
23+
permissions:
24+
contents: read
25+
id-token: write
26+
strategy:
27+
fail-fast: false
28+
matrix: ${{ fromJson(needs.build-matrix.outputs.matrix) }}
29+
30+
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-terragrunt-deploy-ephemeral.yml@feature/tg-deploy-without-gh-environment
31+
with:
32+
git_branch: ${{ github.head_ref }}
33+
assume_role_arn: "arn:aws:iam::020127659860:role/github-actions-deploy-role"
34+
tf_version: ${{ needs.get-tg-versions.outputs.tf_version }}
35+
tg_version: ${{ needs.get-tg-versions.outputs.tg_version }}
36+
region: ${{ matrix.terragrunt_environment.region }}
37+
env_id: ${{ matrix.terragrunt_environment.instance }}
38+
secrets: inherit

.github/workflows/deploy-sandbox.yml renamed to .github/workflows/pull-request-ephemeral-destroy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Deploy Sandbox Environment
22

33
on:
44
pull_request:
5+
types: [closed]
56
branches: [ "**" ]
67

78
jobs:
@@ -26,11 +27,12 @@ jobs:
2627
fail-fast: false
2728
matrix: ${{ fromJson(needs.build-matrix.outputs.matrix) }}
2829

29-
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-terragrunt-deploy.yml@0.1.7
30+
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-terragrunt-destroy-ephemeral.yml@feature/tg-deploy-without-gh-environment
3031
with:
32+
git_branch: ${{ github.head_ref }}
33+
assume_role_arn: "arn:aws:iam::020127659860:role/github-actions-deploy-role"
3134
tf_version: ${{ needs.get-tg-versions.outputs.tf_version }}
3235
tg_version: ${{ needs.get-tg-versions.outputs.tg_version }}
33-
environment: ${{ matrix.terragrunt_environment.environment }}
3436
region: ${{ matrix.terragrunt_environment.region }}
3537
env_id: ${{ matrix.terragrunt_environment.instance }}
3638
secrets: inherit

.github/workflows/python-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
1818
with:
1919
python-version: '3.13'
20-
- uses: launchbynttdata/actions-asdf-install_tools@feature/exclude-tools
20+
- uses: launchbynttdata/actions-asdf-install_tools@v0.2.0
2121
with:
2222
exclude_tools: "python"
2323
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
create_package = true
2-
create = true
3-
handler = "app.lambda_handler"
4-
cors = { allow_origins = ["*"] }
5-
source_path = "../../../../../../../src/function/"
6-
name = "platform_sample-useast1-production-000-fn-000"
7-
environment_variables = {
1+
create_package = true
2+
create = true
3+
handler = "app.lambda_handler"
4+
cors = { allow_origins = ["*"] }
5+
source_path = "../../../../../../../src/function/"
6+
environment_variables = {
87
PAYLOAD = "Primary"
98
}

platform/production/us-east-1/000/terragrunt.hcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ include "root" {
33
}
44

55
locals {
6-
git_tag = "1.0.3"
6+
git_tag = "1.0.0"
77
}
88

99
terraform {
10-
source = "tfr://terraform.registry.launch.nttdata.com/module_primitive/lambda_function/aws?version=${local.git_tag}"
10+
source = "tfr://terraform.registry.launch.nttdata.com/module_reference/lambda_function/aws?version=${local.git_tag}"
1111
}
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
create_package = true
2-
create = true
3-
handler = "app.lambda_handler"
4-
cors = { allow_origins = ["*"] }
5-
source_path = "../../../../../../../src/function/"
6-
name = "platform_sample-useast2-production-000-fn-000"
7-
environment_variables = {
1+
create_package = true
2+
create = true
3+
handler = "app.lambda_handler"
4+
cors = { allow_origins = ["*"] }
5+
source_path = "../../../../../../../src/function/"
6+
environment_variables = {
87
PAYLOAD = "Failover"
98
}

platform/production/us-east-2/000/terragrunt.hcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ include "root" {
33
}
44

55
locals {
6-
git_tag = "1.0.3"
6+
git_tag = "1.0.0"
77
}
88

99
terraform {
10-
source = "tfr://terraform.registry.launch.nttdata.com/module_primitive/lambda_function/aws?version=${local.git_tag}"
10+
source = "tfr://terraform.registry.launch.nttdata.com/module_reference/lambda_function/aws?version=${local.git_tag}"
1111
}
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
create_package = true
2-
create = true
3-
handler = "app.lambda_handler"
4-
cors = { allow_origins = ["*"] }
5-
source_path = "../../../../../../../src/function/"
6-
name = "platform_sample-useast2-sandbox-000-fn-000"
7-
environment_variables = {
1+
create_package = true
2+
create = true
3+
handler = "app.lambda_handler"
4+
cors = { allow_origins = ["*"] }
5+
source_path = "../../../../../../../src/function/"
6+
environment_variables = {
87
PAYLOAD = "Primary-East"
98
}

platform/sandbox/us-east-2/000/terragrunt.hcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ include "root" {
33
}
44

55
locals {
6-
git_tag = "1.0.3"
6+
git_tag = "1.0.0"
77
}
88

99
terraform {
10-
source = "tfr://terraform.registry.launch.nttdata.com/module_primitive/lambda_function/aws?version=${local.git_tag}"
10+
source = "tfr://terraform.registry.launch.nttdata.com/module_reference/lambda_function/aws?version=${local.git_tag}"
1111
}
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
create_package = true
2-
create = true
3-
handler = "app.lambda_handler"
4-
cors = { allow_origins = ["*"] }
5-
source_path = "../../../../../../../src/function/"
6-
name = "platform_sample-useast2-sandbox-001-fn-000"
7-
environment_variables = {
1+
create_package = true
2+
create = true
3+
handler = "app.lambda_handler"
4+
cors = { allow_origins = ["*"] }
5+
source_path = "../../../../../../../src/function/"
6+
environment_variables = {
87
PAYLOAD = "Failover-East"
98
}

0 commit comments

Comments
 (0)