Skip to content

Commit 40cb97f

Browse files
authored
First release v0.0.1 (#2)
Introducing first release v0.0.1 --------- Co-authored-by: albsilv@amazon.com, wellsiau@amazon.com
1 parent 4e8db29 commit 40cb97f

File tree

130 files changed

+7564
-186
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+7564
-186
lines changed

.config/.checkov.yml

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ skip-check:
99
- CKV_AZURE*
1010
- CKV2_AZURE*
1111
- CKV_TF_1 # default to Terraform registry instead of Git
12+
- CKV2_AWS_62 # bucket notification not required
13+
- CKV2_AWS_61 # bucket lifecycle is not required
14+
- CKV_AWS_144 # bucket cross region replication is not required
1215
summary-position: bottom
1316
output: 'cli'
1417
compact: True

.config/.tflint.hcl

+6-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ rule "terraform_required_version" {
2121
}
2222

2323
rule "terraform_naming_convention" {
24-
enabled = true
24+
enabled = false
2525
format = "snake_case"
2626
}
2727

@@ -58,9 +58,13 @@ rule "terraform_module_pinned_source" {
5858
}
5959

6060
rule "terraform_standard_module_structure" {
61-
enabled = true
61+
enabled = false
6262
}
6363

6464
rule "terraform_workspace_remote" {
6565
enabled = true
6666
}
67+
68+
rule "aws_lambda_function_invalid_runtime" {
69+
enabled = false
70+
}

.config/functional_tests/post-entrypoint-helpers.sh

+11-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,14 @@
33
## Use this to load any configurations after the functional test
44
## TIPS: avoid modifying the .project_automation/functional_test/entrypoint.sh
55
## migrate any customization you did on entrypoint.sh to this helper script
6-
echo "Executing Post-Entrypoint Helpers"
6+
echo "Executing Post-Entrypoint Helpers"
7+
8+
#********** Project Path *************
9+
PROJECT_PATH=${BASE_PATH}/project
10+
PROJECT_TYPE_PATH=${BASE_PATH}/projecttype
11+
cd ${PROJECT_PATH}
12+
13+
#********** CLEANUP *************
14+
echo "Cleaning up all temp files and artifacts"
15+
cd ${PROJECT_PATH}
16+
make -s clean

.config/functional_tests/pre-entrypoint-helpers.sh

+21-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,24 @@
33
## use this to load any configuration before the functional test
44
## TIPS: avoid modifying the .project_automation/functional_test/entrypoint.sh
55
## migrate any customization you did on entrypoint.sh to this helper script
6-
echo "Executing Pre-Entrypoint Helpers"
6+
echo "Executing Pre-Entrypoint Helpers"
7+
8+
#********** Project Path *************
9+
PROJECT_PATH=${BASE_PATH}/project
10+
PROJECT_TYPE_PATH=${BASE_PATH}/projecttype
11+
cd ${PROJECT_PATH}
12+
13+
#********** GitHub SSH Key *************
14+
export AWS_DEFAULT_REGION=us-east-1
15+
GITHUB_SSH_KEY=`aws secretsmanager get-secret-value --secret-id /abp/github/functional/ssh_key | jq -r ".SecretString"`
16+
mkdir -p ~/.ssh
17+
echo "Host *" >> ~/.ssh/config
18+
echo "StrictHostKeyChecking no" >> ~/.ssh/config
19+
echo "UserKnownHostsFile=/dev/null" >> ~/.ssh/config
20+
echo "$GITHUB_SSH_KEY" > ~/.ssh/ssh_key
21+
echo -e "\n\n" >> ~/.ssh/ssh_key
22+
chmod 600 ~/.ssh/ssh_key
23+
eval "$(ssh-agent -s)"
24+
ssh-add ~/.ssh/ssh_key
25+
ssh -T git@github.com
26+
echo "SSH Key Added"

.config/static_tests/pre-entrypoint-helpers.sh

+22-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,25 @@
33
## use this to load any configuration before the static test
44
## TIPS: avoid modifying the .project_automation/static_test/entrypoint.sh
55
## migrate any customization you did on entrypoint.sh to this helper script
6-
echo "Executing Pre-Entrypoint Helpers"
6+
echo "Executing Pre-Entrypoint Helpers"
7+
8+
#********** Project Path *************
9+
PROJECT_PATH=${BASE_PATH}/project
10+
PROJECT_TYPE_PATH=${BASE_PATH}/projecttype
11+
cd ${PROJECT_PATH}
12+
13+
#********** GitHub SSH Key *************
14+
if [ -f ${PROJECT_PATH}/.config/static_tests/ssh_key ]; then
15+
GITHUB_SSH_KEY=`cat ./.config/static_tests/ssh_key`
16+
mkdir -p ~/.ssh
17+
echo "Host *" >> ~/.ssh/config
18+
echo "StrictHostKeyChecking no" >> ~/.ssh/config
19+
echo "UserKnownHostsFile=/dev/null" >> ~/.ssh/config
20+
echo "$GITHUB_SSH_KEY" > ~/.ssh/ssh_key
21+
echo -e "\n\n" >> ~/.ssh/ssh_key
22+
chmod 600 ~/.ssh/ssh_key
23+
eval "$(ssh-agent -s)"
24+
ssh-add ~/.ssh/ssh_key
25+
ssh -T git@github.com
26+
echo "SSH Key Added"
27+
fi

0 commit comments

Comments
 (0)