Skip to content

Commit ad72497

Browse files
authored
Merge pull request #105 from aws-ia/ephemeral_project-updates
Updates from project type
2 parents 564b7e9 + 8c42ef4 commit ad72497

15 files changed

+233
-99
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
## NOTE: this script runs at the end of functional test
3+
## Use this to load any configurations after the functional test
4+
## TIPS: avoid modifying the .project_automation/functional_test/entrypoint.sh
5+
## migrate any customization you did on entrypoint.sh to this helper script
6+
echo "Executing Post-Entrypoint Helpers"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
## NOTE: this script runs at the start of functional test
3+
## use this to load any configuration before the functional test
4+
## TIPS: avoid modifying the .project_automation/functional_test/entrypoint.sh
5+
## migrate any customization you did on entrypoint.sh to this helper script
6+
echo "Executing Pre-Entrypoint Helpers"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
## NOTE: this script runs at the end of static test
3+
## Use this to load any configurations after the static test
4+
## TIPS: avoid modifying the .project_automation/static_test/entrypoint.sh
5+
## migrate any customization you did on entrypoint.sh to this helper script
6+
echo "Executing Post-Entrypoint Helpers"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
## NOTE: this script runs at the start of static test
3+
## use this to load any configuration before the static test
4+
## TIPS: avoid modifying the .project_automation/static_test/entrypoint.sh
5+
## migrate any customization you did on entrypoint.sh to this helper script
6+
echo "Executing Pre-Entrypoint Helpers"
7+
8+
#********** TFC Env Vars *************
9+
export AWS_DEFAULT_REGION=us-east-1
10+
export TFE_TOKEN=`aws secretsmanager get-secret-value --secret-id abp/tfc/token | jq -r ".SecretString"`
11+
export TF_TOKEN_app_terraform_io=`aws secretsmanager get-secret-value --secret-id abp/tfc/token | jq -r ".SecretString"`
12+
13+
#********** MAKEFILE *************
14+
echo "Build the lambda function packages"
15+
make all
16+
17+
#********** Get tfvars from SSM *************
18+
echo "Get *.tfvars from SSM parameter"
19+
aws ssm get-parameter \
20+
--name "/abp/tfc/functional/tfvars" \
21+
--with-decryption \
22+
--query "Parameter.Value" \
23+
--output "text" \
24+
--region "us-east-1" >> functional_test.tfvars

.copier-answers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is auto-generated, changes will be overwritten
2-
_commit: v0.1.2
3-
_src_path: /task/fda2926f-d695-11ee-a46e-46fb9214c7b7/projecttype
2+
_commit: v0.1.3
3+
_src_path: /task/8be08035-e60c-11ee-ab69-16475233b5d9/projecttype
44
starting_version: v0.0.0
55
version_file: VERSION
66

0 commit comments

Comments
 (0)