Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move code to main branch (finally!) #248

Merged
merged 353 commits into from
Oct 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
353 commits
Select commit Hold shift + click to select a range
d71294b
feat: create db proxy for api (#150)
ConradBoydElliottGustafson Aug 30, 2022
d3e8a14
fix: role_arn for rds_proxy (#151)
ConradBoydElliottGustafson Aug 30, 2022
2a9ef0d
fixed rds proxy log group and iam-role problems (#159)
ConradBoydElliottGustafson Aug 31, 2022
34b8419
feat: modifying sample api for rds_proxy (#160)
ConradBoydElliottGustafson Sep 1, 2022
7432fe0
got rid of iam_auth = "DISABLED" rds_proxy option (#163)
ConradBoydElliottGustafson Sep 1, 2022
43c9eee
recreating proxy (#166)
ConradBoydElliottGustafson Sep 1, 2022
433f0e8
threw away module for simple code
ConradBoydElliottGustafson Sep 1, 2022
d5b727b
fixed endpoint (#167)
ConradBoydElliottGustafson Sep 1, 2022
d1ef623
removed session pinning filter (#168)
ConradBoydElliottGustafson Sep 1, 2022
d03c2d3
pointed rds-proxy to manually created db (#170)
ConradBoydElliottGustafson Sep 1, 2022
dd3d560
serverless v2 definition (#171)
ConradBoydElliottGustafson Sep 2, 2022
331339d
Define rds_cluster v2
ConradBoydElliottGustafson Sep 2, 2022
75b568d
changed instance storage type to standard (#173)
ConradBoydElliottGustafson Sep 3, 2022
3c44e30
changed to serverless instance (#174)
ConradBoydElliottGustafson Sep 3, 2022
fd971f1
removed postres provider (#175)
ConradBoydElliottGustafson Sep 3, 2022
c928a76
Removing rds cluster stuff to fix build (#176)
ConradBoydElliottGustafson Sep 7, 2022
1a4ce04
add api gateway for sample api (#180)
ConradBoydElliottGustafson Sep 8, 2022
a601b4b
feat: added rds v2 db to dev branch (#184)
ConradBoydElliottGustafson Sep 12, 2022
b4224e5
removed @ char from random password (#185)
ConradBoydElliottGustafson Sep 12, 2022
b49754b
Feat/db migration (#183)
franTarkenton Sep 12, 2022
cb8679b
added API and flyway pointing to new db (#186)
ConradBoydElliottGustafson Sep 12, 2022
7a47c86
sykntax (#187)
ConradBoydElliottGustafson Sep 13, 2022
09125b4
secrets got all jumbled
ConradBoydElliottGustafson Sep 13, 2022
e35a7ff
pointed the api to the proxy
ConradBoydElliottGustafson Sep 13, 2022
35419ac
wrong secret on proxy
ConradBoydElliottGustafson Sep 13, 2022
fa393d8
removed tls for proxy
ConradBoydElliottGustafson Sep 13, 2022
fc9ccee
Revert require_tls
ConradBoydElliottGustafson Sep 13, 2022
e5b5288
trying ssl mode in python
ConradBoydElliottGustafson Sep 13, 2022
1e9f334
Changed security groups
ConradBoydElliottGustafson Sep 13, 2022
92191d8
fixed vpc config ids
ConradBoydElliottGustafson Sep 13, 2022
f77d96d
set sslmode to prefer
ConradBoydElliottGustafson Sep 13, 2022
46ff5eb
disabled ssl
ConradBoydElliottGustafson Sep 13, 2022
82a4e02
sslmode prefer
ConradBoydElliottGustafson Sep 14, 2022
0ecc7e5
moved proxy to data sg
ConradBoydElliottGustafson Sep 14, 2022
f31bf71
typo
ConradBoydElliottGustafson Sep 14, 2022
6a1f3ea
moved api back to data group
ConradBoydElliottGustafson Sep 14, 2022
09b992d
disable ssl from python
ConradBoydElliottGustafson Sep 14, 2022
1765a0d
Added a lambda for the code in server/backend (#189)
ConradBoydElliottGustafson Sep 14, 2022
26c99ae
added logging
ConradBoydElliottGustafson Sep 14, 2022
b310a1d
added quotes for session pinning filter
ConradBoydElliottGustafson Sep 14, 2022
9fc4a70
removed session pinning filters
ConradBoydElliottGustafson Sep 14, 2022
39f0f4c
reformatted json policy
ConradBoydElliottGustafson Sep 15, 2022
1cc9830
got rid of init query
ConradBoydElliottGustafson Sep 15, 2022
a11b4f4
added api gateway for new function
ConradBoydElliottGustafson Sep 15, 2022
0bccf0b
resolve terraform name clashes
ConradBoydElliottGustafson Sep 15, 2022
9cf662d
got rid of variable
ConradBoydElliottGustafson Sep 15, 2022
81f266a
added stage name
ConradBoydElliottGustafson Sep 15, 2022
2f12cea
pointed kevin's api to the v2 database
ConradBoydElliottGustafson Sep 15, 2022
c41ce6c
pointed kevin's lambda to aurora v2
ConradBoydElliottGustafson Sep 15, 2022
b7ed6a6
Big cleanup job
ConradBoydElliottGustafson Sep 15, 2022
79fca39
fixed subnet data source names
ConradBoydElliottGustafson Sep 16, 2022
b374150
Added a "list" github action
ConradBoydElliottGustafson Sep 16, 2022
d86f047
Bugfix/failing lambda build (#201)
franTarkenton Sep 22, 2022
864494b
Adding issue templates (#198)
franTarkenton Sep 22, 2022
ca6dde6
Files to deploy and configure Cognito
ConradBoydElliottGustafson Sep 27, 2022
1447a35
fixing the push gha (#205)
franTarkenton Sep 27, 2022
00f95ab
fix: 27 Fixed mapping for cognito email_verified field
ConradBoydElliottGustafson Sep 27, 2022
ec47ac4
Fix/27 mapped missing idir username (#211)
ConradBoydElliottGustafson Sep 28, 2022
e477bab
fix: 27 removed oidc client to debug
ConradBoydElliottGustafson Sep 28, 2022
a1d1e7a
fix: 27 corrected oidc client write_attribues
ConradBoydElliottGustafson Sep 28, 2022
e6decbe
fix: mangum/router connectivity
franTarkenton Sep 28, 2022
973f42a
fix: mangum/router connectivity (#212)
franTarkenton Sep 28, 2022
3f533ea
fix: cut down the FAM oidc attributes to minimum
ConradBoydElliottGustafson Sep 28, 2022
c4db61d
fix: 27 added email to read and write attributes
ConradBoydElliottGustafson Sep 28, 2022
1ed79c1
fix: 27 removed email from read attributes
ConradBoydElliottGustafson Sep 28, 2022
97c3a9d
fix: router paths / lambda
franTarkenton Sep 29, 2022
376673d
feat: 40 add bceid business idp (#215)
ConradBoydElliottGustafson Sep 29, 2022
aca065e
fix: swap lambda's on gateway
franTarkenton Sep 29, 2022
98b783e
fix: 50 userpool attrs and mappings (#218)
ConradBoydElliottGustafson Sep 30, 2022
4354330
fix: 40 added email attribute mapping
ConradBoydElliottGustafson Sep 30, 2022
6af66b3
fix: 40 added "name" to idir attributes
ConradBoydElliottGustafson Sep 30, 2022
645348a
fix: 40 missing comma
ConradBoydElliottGustafson Sep 30, 2022
b5409a8
fix: 40 added keycloak username to available attrs
ConradBoydElliottGustafson Sep 30, 2022
fa74d9e
Trivial change to test deployment pipeline after database restore. (#…
basilv Oct 3, 2022
a74f080
fix: adding quotes to explicit function name reference
franTarkenton Oct 3, 2022
8273737
Feat/84 configure lambda (#214)
franTarkenton Oct 3, 2022
fa2d5f7
Trivial change #2 for restore test. (#220)
basilv Oct 3, 2022
72b6b16
fix: lambda naming conflict
franTarkenton Oct 3, 2022
ec79534
fix: resolve naming conflict
franTarkenton Oct 3, 2022
c8c4eaf
Merge branch 'dev' into feat/84-configure-lambda
franTarkenton Oct 3, 2022
83a8223
fix: resolve lambda function name conflict (#221)
franTarkenton Oct 3, 2022
facd4e2
fix: change entrypoint into lambda
franTarkenton Oct 3, 2022
2cb5a0a
fix: update entrypoint to lambda (#223)
franTarkenton Oct 3, 2022
db90451
fix: gateway type change edge to regional
franTarkenton Oct 3, 2022
41ab2fd
fix: change endpoint type from edge to regional (#225)
franTarkenton Oct 3, 2022
baf0370
Feat/add role type 199 (#210)
franTarkenton Oct 5, 2022
867f876
feat: initial hello vue deployment
franTarkenton Oct 6, 2022
5e51f56
fix: tweaking actions to try to get build /deploy
franTarkenton Oct 6, 2022
87dc6aa
frontend: testing deploy
franTarkenton Oct 6, 2022
1b0694a
frontend: fix build process
franTarkenton Oct 6, 2022
93b2c95
frontend: formatting fix
franTarkenton Oct 6, 2022
34488c1
frontend: revert s3 permissions, fix css
franTarkenton Oct 6, 2022
50ec346
frontend: css content-type
franTarkenton Oct 6, 2022
64bb2fb
#208 - DB Migration: Add Forest_Client_Number Column as String (#224)
ianliuwk1019 Oct 6, 2022
9e74e5c
frontend: set default type back
franTarkenton Oct 6, 2022
57646f2
frontend: integrating with pipeline
franTarkenton Oct 6, 2022
1ee9d23
frontend: missing change
franTarkenton Oct 6, 2022
a7b26f5
frontend: fix gha
franTarkenton Oct 6, 2022
82a06db
frontend: fix - syntax error in gha
franTarkenton Oct 6, 2022
13ad2ad
frontend: fix syntax error in GHA
franTarkenton Oct 6, 2022
24678a6
frontend: getting domain
franTarkenton Oct 6, 2022
26f4310
frontend: fixing gha syntax error
franTarkenton Oct 6, 2022
f501570
frontend: testing output
franTarkenton Oct 6, 2022
a3d5695
frontend: testing output
franTarkenton Oct 6, 2022
0596537
frontend: testing gha
franTarkenton Oct 6, 2022
4ff96bd
frontend: add domain curl test
franTarkenton Oct 7, 2022
95f10b3
frontend: debug curl test
franTarkenton Oct 7, 2022
5ff9393
frontend: debug curl test
franTarkenton Oct 7, 2022
9ce4837
frontend: debug frontend curl
franTarkenton Oct 7, 2022
f7b7ebe
frontend: curl -debug
franTarkenton Oct 7, 2022
117c177
frontend: debug curl test
franTarkenton Oct 7, 2022
c6c77e4
frontend: debug tf output
franTarkenton Oct 7, 2022
0a74445
frontend: fix curl test
franTarkenton Oct 7, 2022
bc18017
gha debug - frontend
franTarkenton Oct 7, 2022
10083cc
curl test
franTarkenton Oct 7, 2022
1687f0c
frontend: add protocol back into curl test
franTarkenton Oct 7, 2022
2621a40
fixing curl test
franTarkenton Oct 7, 2022
5e16443
curl fix
franTarkenton Oct 7, 2022
26569da
frontend: fix - add US to whitlist geostriction
franTarkenton Oct 7, 2022
61cb46a
frontend: fix - adding terraform apply
franTarkenton Oct 7, 2022
5511734
frontend: fix - forcing replacement of cloudfront component
franTarkenton Oct 7, 2022
d6386d6
frontend: fix, re-push changes to cloudfront.tf file
franTarkenton Oct 7, 2022
40a372d
frontend: fix - updating wrong tf file!!!
franTarkenton Oct 7, 2022
314c57d
frontend: fix - curl test
franTarkenton Oct 7, 2022
7cc59bc
Feat/23 auth lambda skeleton (#228)
ConradBoydElliottGustafson Oct 8, 2022
72e2dd8
fix: 23 user-pool lambda dependency (#229)
ConradBoydElliottGustafson Oct 8, 2022
62a3287
fix: code cleanup
franTarkenton Oct 11, 2022
3bda8ff
Merge branch 'dev' into feat/165-sample-vue-app
franTarkenton Oct 11, 2022
e7e3dfd
fix: 23 added permission for lambda function (#231)
ConradBoydElliottGustafson Oct 11, 2022
47e5028
fix: add curl test into gha
franTarkenton Oct 11, 2022
a71afd3
Feat/165 sample vue app (#232)
franTarkenton Oct 11, 2022
7b64ba7
Merge branch 'dev' into feat/84-configure-lambda
franTarkenton Oct 12, 2022
568ad51
Merge branch 'feat/165-sample-vue-app' into feat/84-configure-lambda
franTarkenton Oct 12, 2022
561a52a
fix: add gateway redeploy trigger
franTarkenton Oct 12, 2022
b17fb5b
fix: adding trigger for redeploy
franTarkenton Oct 12, 2022
9583e14
fix: removing the fam api calls
franTarkenton Oct 12, 2022
4fb329d
fix: adding code into debug action to build lambda zip file
franTarkenton Oct 12, 2022
862088e
fix: adding code to build lambda zip file
franTarkenton Oct 12, 2022
60ce12a
fix: needs terraform needs auth function, adding it
franTarkenton Oct 12, 2022
23d82ff
fix: adding upload
franTarkenton Oct 12, 2022
333ba5c
fix: refer to correct zip package
franTarkenton Oct 13, 2022
2d96b35
debug: 23 lambda UserLambdaValidationException
ConradBoydElliottGustafson Oct 13, 2022
086083a
debug: 23 lambda UserLambdaValidationException 2
ConradBoydElliottGustafson Oct 13, 2022
5dd17c8
debug: 23 lambda UserLambdaValidationException 3
ConradBoydElliottGustafson Oct 13, 2022
0c74a7b
debug: 23 lambda UserLambdaValidationException 4
ConradBoydElliottGustafson Oct 13, 2022
843f0a0
debug: 23 add logging to auth lambda
ConradBoydElliottGustafson Oct 14, 2022
b3f0385
debug: 23 commented out failing flyway
ConradBoydElliottGustafson Oct 14, 2022
b10d72a
debug: 23 uncommenting flyway
ConradBoydElliottGustafson Oct 17, 2022
cac90cb
API Endpoint - Create User Role Assignment (#230)
ianliuwk1019 Oct 17, 2022
c992b3e
fix: terraform to deploy
franTarkenton Oct 18, 2022
65b3ba7
fix: remove flyway.jar from .terraformignore
franTarkenton Oct 18, 2022
a52e8ec
Merge branch 'dev' into feat/84-configure-lambda
franTarkenton Oct 19, 2022
fa087bd
fix: cleanup formatting on md doc
franTarkenton Oct 19, 2022
f18516c
fix: testing the terraform changes
franTarkenton Oct 20, 2022
60d5897
fix: commenting out the debugging gha
franTarkenton Oct 20, 2022
52f6eef
feat: 67 new pipeline skeleton
ConradBoydElliottGustafson Oct 21, 2022
0733565
fix: 67 using test environment
ConradBoydElliottGustafson Oct 21, 2022
4654eee
fix: 67 deleted unused variables
ConradBoydElliottGustafson Oct 21, 2022
79a013b
fix: 67 using github environment
ConradBoydElliottGustafson Oct 21, 2022
b4fa9d2
fix: 67 made environment a param
ConradBoydElliottGustafson Oct 21, 2022
3b4204c
fix: 67 param problem
ConradBoydElliottGustafson Oct 21, 2022
b1075ca
fix: 67 updated actions versions
ConradBoydElliottGustafson Oct 21, 2022
aee5353
fix: 67 updated action versions again
ConradBoydElliottGustafson Oct 21, 2022
a713833
#59: API - delete user role assignment (#239)
ianliuwk1019 Oct 21, 2022
ce260d8
fix: 67 trying to parameterize the environment
ConradBoydElliottGustafson Oct 21, 2022
0bfe18b
fix: 67 hard-coded environment
ConradBoydElliottGustafson Oct 21, 2022
7644f6b
fix: 67 trying out production deploy
ConradBoydElliottGustafson Oct 22, 2022
c0e783a
fix: 67 fix prod deployment issues
ConradBoydElliottGustafson Oct 22, 2022
ec2239e
fix: 67 fix prod deployment issues
ConradBoydElliottGustafson Oct 22, 2022
39963dc
fix: 67 testing deploy process
ConradBoydElliottGustafson Oct 22, 2022
71914a6
fix: 67 still testing deploy process
ConradBoydElliottGustafson Oct 22, 2022
f2bebb0
Feat/165 sample vue app (#237)
franTarkenton Oct 24, 2022
2c99f8d
fix: try to address cors config (#241)
franTarkenton Oct 24, 2022
74d9ce6
fix: 67 converting to terragrunt
ConradBoydElliottGustafson Oct 24, 2022
04294c8
fix: 67 debugging terragrunt
ConradBoydElliottGustafson Oct 24, 2022
6c97340
fix: 67 debugging terragrunt 2
ConradBoydElliottGustafson Oct 24, 2022
28e3196
fix: 67 debugging terragrunt
ConradBoydElliottGustafson Oct 24, 2022
7ca34bb
fix: 67 terragrunt debugging
ConradBoydElliottGustafson Oct 24, 2022
44511d5
fix: 67 debugging terragrunt
ConradBoydElliottGustafson Oct 24, 2022
29a9d80
fix: 67 debugging terragrunt
ConradBoydElliottGustafson Oct 24, 2022
d15edfa
fix: 67 debugging terragrunt
ConradBoydElliottGustafson Oct 24, 2022
f0d8b64
fix: 67 debugging terragrunt (remove main)
ConradBoydElliottGustafson Oct 24, 2022
ea28346
fix: 67 double slash issue
ConradBoydElliottGustafson Oct 24, 2022
1238255
fix:67 terragrunt errors
ConradBoydElliottGustafson Oct 24, 2022
ff2ed4b
fix: 67 env variable name correction
ConradBoydElliottGustafson Oct 24, 2022
b5ff362
fix: 67 fix env variable name
ConradBoydElliottGustafson Oct 24, 2022
85a58df
fix: 67 github environment variable name
ConradBoydElliottGustafson Oct 24, 2022
02470d2
fix: 67 spelling mistake D'OH!
ConradBoydElliottGustafson Oct 24, 2022
8bdf892
fix: 67 write cleanup actions
ConradBoydElliottGustafson Oct 24, 2022
2f2134b
fix: 67 creating reusable workflow
ConradBoydElliottGustafson Oct 24, 2022
832c5e8
#59: API - delete user role assignment (#239)
ianliuwk1019 Oct 21, 2022
085a1cb
fix: try to address cors config (#241)
franTarkenton Oct 24, 2022
5f8d1d7
fix: 67 testing parent workflow
ConradBoydElliottGustafson Oct 24, 2022
1477b9f
fix: 67 trigger deploy to test
ConradBoydElliottGustafson Oct 24, 2022
24db6c8
fix: 67 debug reusable actions
ConradBoydElliottGustafson Oct 24, 2022
f5d4ed8
fix: 67 spelling mistake!
ConradBoydElliottGustafson Oct 24, 2022
3283718
fix: 67 reorder GH action lines
ConradBoydElliottGustafson Oct 25, 2022
bad5c83
fix: 67 passing environment name
ConradBoydElliottGustafson Oct 25, 2022
97f0442
fix: 67 calling reusable workflow
ConradBoydElliottGustafson Oct 25, 2022
8af9916
fix: 67 passing wrong type?
ConradBoydElliottGustafson Oct 25, 2022
c7212b3
fix: 67 renamed 'with' variables
ConradBoydElliottGustafson Oct 25, 2022
142a693
fix: 67 problem with secrets
ConradBoydElliottGustafson Oct 25, 2022
f78eb71
fix: 67 tried commenting
ConradBoydElliottGustafson Oct 25, 2022
7adc1e0
fix: 67 uncomment
ConradBoydElliottGustafson Oct 25, 2022
1cb375d
fix: 67 passing strings between workflows
ConradBoydElliottGustafson Oct 25, 2022
492b25d
fix: 67 making secrets explicit
ConradBoydElliottGustafson Oct 25, 2022
ad441dc
fix: 67 typo
ConradBoydElliottGustafson Oct 25, 2022
ef327a5
fix: 67 variable references
ConradBoydElliottGustafson Oct 25, 2022
afe0a6c
test: 67 testing destroy
ConradBoydElliottGustafson Oct 25, 2022
a11efc4
test: 67 change workspace
ConradBoydElliottGustafson Oct 25, 2022
13ecca3
test: delete prod resources
ConradBoydElliottGustafson Oct 25, 2022
7322123
test: destroying in prod
ConradBoydElliottGustafson Oct 25, 2022
2826a44
fix: deploy to test back to the way it was
ConradBoydElliottGustafson Oct 25, 2022
5a7906f
fix: 67 tried to move wf into subfolder
ConradBoydElliottGustafson Oct 25, 2022
1da13ee
fix: 67 experiment rolled back
ConradBoydElliottGustafson Oct 25, 2022
fccde29
Merge branch 'dev' of https://github.com/bcgov/nr-forests-access-mana…
franTarkenton Oct 25, 2022
ca25c43
Feat/84 configure lambda (#242)
franTarkenton Oct 25, 2022
ce18ad4
feat: 233 pipeline cleanup
ConradBoydElliottGustafson Oct 25, 2022
0ad5fe0
fix: 233 added all terraform variables
ConradBoydElliottGustafson Oct 25, 2022
b2af636
fix: 233 made pipeline trigger on push (temporary)
ConradBoydElliottGustafson Oct 25, 2022
c469639
Feat/156 app selection screen (#244)
basilv Oct 25, 2022
4a0c6a9
fix: 233 update pipeline
ConradBoydElliottGustafson Oct 25, 2022
c3d7882
fix: 233 yml syntax
ConradBoydElliottGustafson Oct 25, 2022
7493127
fix: 233 yml syntax
ConradBoydElliottGustafson Oct 25, 2022
2bc252c
fix: 233 yaml typo
ConradBoydElliottGustafson Oct 25, 2022
1dfe8c8
fix: 233 reusable workflow params
ConradBoydElliottGustafson Oct 25, 2022
668640d
fix: 233 fixing workspace
ConradBoydElliottGustafson Oct 25, 2022
fbfea61
fix: 233 missing quotes?
ConradBoydElliottGustafson Oct 25, 2022
f8d75fd
fix: 233 hardcoding licenseplate as a test
ConradBoydElliottGustafson Oct 25, 2022
0939b0f
fix: 233 workspace name correct
ConradBoydElliottGustafson Oct 25, 2022
0fc3fa5
fix: 233 hcl syntax correction
ConradBoydElliottGustafson Oct 25, 2022
e353ad6
fix: 233 oidc variable names
ConradBoydElliottGustafson Oct 26, 2022
62aa802
fix: 233 variable names in terragrunt
ConradBoydElliottGustafson Oct 26, 2022
7d362fe
fix: 233 missing networking variables
ConradBoydElliottGustafson Oct 26, 2022
99e20ca
fix: 233 paths to zip files
ConradBoydElliottGustafson Oct 26, 2022
3150c81
fix:233 path to flyway jar
ConradBoydElliottGustafson Oct 26, 2022
edbde7a
fix: 233 path to flyway jar
ConradBoydElliottGustafson Oct 26, 2022
b8e2806
Merge branch 'dev' of https://github.com/bcgov/nr-forests-access-mana…
franTarkenton Oct 26, 2022
beda4a7
fix: 233 networking info environment-specific
ConradBoydElliottGustafson Oct 26, 2022
34d183c
fix: 233 forgot security group vars for test env
ConradBoydElliottGustafson Oct 26, 2022
12b76eb
fix: 233 ran into snapshot name problem
ConradBoydElliottGustafson Oct 26, 2022
55981fc
fix: 233 testing new pipeline in DEV
ConradBoydElliottGustafson Oct 26, 2022
e057b31
fix: 233 making dev api lambda name configurable
ConradBoydElliottGustafson Oct 26, 2022
ad8065a
fix: 233 randomized api lambda name
ConradBoydElliottGustafson Oct 26, 2022
a84141d
fix: 233 trying again to get test to deploy
ConradBoydElliottGustafson Oct 26, 2022
124d9fd
fix: 233 changed pipelines to workflow dispatch
ConradBoydElliottGustafson Oct 26, 2022
01912f5
fix: 67 made test deployment dispatch
ConradBoydElliottGustafson Oct 26, 2022
ecc1217
Merge branch 'feat/67-pipeline-support' into dev
ConradBoydElliottGustafson Oct 26, 2022
7a9c7ae
fix: db_cluster_snapshot_identifier as comment
ConradBoydElliottGustafson Oct 26, 2022
6509c78
Merge branch 'dev' of https://github.com/bcgov/nr-forests-access-mana…
franTarkenton Oct 27, 2022
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
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Feature request / user story
about: Suggest an idea from the perspective of a user
title: ''
labels: enhancement
assignees: ''

---

**As a** *(User Type/Persona)* **I want** *(Feature/enhancement)* **So That** *(Value, why is this wanted, what is the user trying to accomplish)*

**Additional Context**
- enter text here
- enter text here

**Acceptance Criteria**
- [ ] Given (Context), When (action carried out), Then (expected outcome)
- [ ] Given (Context), When (action carried out), Then (expected outcome)

**Definition of Done**
- [ ] Ready to Demo in Sprint Review
- [ ] Does what I have made have appropriate test coverage?
- [ ] Documentation and/or scientific documentation exists and can be found
- [ ] Peer Reviewed by 2 people on the team
- [ ] Manual testing of all PRs in Dev and Prod
- [ ] Merged
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/task.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Task
about: Work for the team that cannot be written as a user story
title: ''
labels: task
assignees: ''

---

**Describe the task**
A clear and concise description of what the task is.

**Acceptance Criteria**
- [ ] first
- [ ] second
- [ ] third

**Additional context**
- Add any other context about the task here.
- Or here
109 changes: 109 additions & 0 deletions .github/workflows/debugging_gateway_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# leaving this in the repo for now as its a useful action that can be used
# to speed up debugging of frontend deployment.

# have disabled all triggers so it shouldn't run.

name: Push

on:
push:
#branches: [feat/84-configure-lambda]
branches: [branch-name-that-doesnt-exist]

env:
TF_VERSION: 1.0.5
environment: dev
organization: bcgov

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: checkout the repo and building the Backend
uses: actions/checkout@v2

- uses: hashicorp/setup-terraform@v1
with:
terraform_version: ${{ env.TF_VERSION }}
cli_config_credentials_token: ${{ secrets.TFC_TEAM_TOKEN }}


# Steps to deploy the sample API
# Steps to deploy Ian's python as a lambda
- name: Install and Package Dependencies - Ians Code
run: |
cd server/backend
mkdir packaging
cd packaging
pip install -t . -r ../requirements.txt
zip -r9 ../../fam-ui-api.zip .
cd ..
rm -rf packaging
cd ../../
cd server/backend
zip -u ../fam-ui-api.zip -r api/ -x database/**\* tests/**\* venv/**\* .env
cd ..

- name: Upload zip file artifact Kevin
uses: actions/upload-artifact@v2
with:
name: fam-ui-api
path: ./server/fam-ui-api.zip
if-no-files-found: error


- name: Auth function zip
run: |
mkdir auth_function_packaging
rsync -r server/auth_function/* auth_function_packaging -F --exclude=requirements.txt --exclude=test
pip install -t auth_function_packaging -r server/auth_function/requirements.txt
cd auth_function_packaging
zip -r9 ../server/fam_auth_function.zip .
cd ..
rm -rf auth_function_packaging

- name: Auth function upload zip file artifact
uses: actions/upload-artifact@v2
with:
name: fam-auth-function
path: ./server/fam_auth_function.zip
if-no-files-found: error


- name: Deploying back-end using terraform
run: |
cd server

# calculate the db_cluster_snapshot_identifier, attempting to ensure it
# is less than 63 characters.
db_cluster_snapshot_identifier="pre-flyway-${{ github.ref_name }}-${{ github.sha }}"
if ((echo ${{ github.ref_name }} | wc -c ) > 12)
then
commit=${{ github.ref_name }}
db_cluster_snapshot_identifier="pre-flyway-${{ github.ref_name }}-${commit:0:7}"
fi
# remove non alphanumeric characters
db_cluster_snapshot_identifier=$(echo $db_cluster_snapshot_identifier | tr -d '\n' | tr -cs '[-][:alnum:]' '-' )


cat <<EOF > backend.hcl
organization = "${{ env.organization }}"
workspaces { name = "${{ secrets.LICENCEPLATE }}-${{ env.environment }}-backend" }
EOF
cat > github.auto.tfvars <<EOF
github_repository = "https://github.com/${{ github.repository }}"
github_branch = "${{ github.ref_name }}"
github_commit = "${{ github.sha }}"
github_event = "${{ github.event_name }}"
oidc_idir_dev_idp_client_id = "${{ secrets.OIDC_IDIR_DEV_IDP_CLIENT_ID }}"
oidc_idir_dev_idp_client_secret = "${{ secrets.OIDC_IDIR_DEV_IDP_CLIENT_SECRET }}"
oidc_idir_dev_idp_issuer = "${{ secrets.OIDC_IDIR_DEV_IDP_ISSUER }}"
oidc_bceid_business_dev_idp_client_id = "${{ secrets.OIDC_BCEID_BUSINESS_DEV_IDP_CLIENT_ID }}"
oidc_bceid_business_dev_idp_client_secret = "${{ secrets.OIDC_BCEID_BUSINESS_DEV_IDP_CLIENT_SECRET }}"
oidc_bceid_business_dev_idp_issuer = "${{ secrets.OIDC_BCEID_BUSINESS_DEV_IDP_ISSUER }}"
db_cluster_snapshot_identifier = "$db_cluster_snapshot_identifier"
EOF
terraform init -backend-config=backend.hcl
terraform apply -auto-approve
#terraform plan
50 changes: 0 additions & 50 deletions .github/workflows/destroy.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/dev_deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: DEPLOY Development Environment

on:
workflow_dispatch:

jobs:

aws-test-deployment:
uses: ./.github/workflows/reusable_terraform_server.yml
with:
environment_name: dev
tf_subcommand: apply
secrets:
licenceplate: ${{ secrets.LICENCEPLATE}}
tfc_team_token: ${{ secrets.TFC_TEAM_TOKEN }}
oidc_idir_idp_client_secret: "${{ secrets.OIDC_IDIR_IDP_CLIENT_SECRET }}"
oidc_bceid_business_idp_client_secret: "${{ secrets.OIDC_BCEID_BUSINESS_IDP_CLIENT_SECRET }}"
16 changes: 16 additions & 0 deletions .github/workflows/dev_destruction.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: DESTROY Development Environment

on:
workflow_dispatch:

jobs:

aws-dev-destruction:
uses: ./.github/workflows/reusable_terraform_server.yml
with:
environment_name: dev
tf_subcommand: destroy
secrets:
licenceplate: ${{ secrets.LICENCEPLATE}}
tfc_team_token: ${{ secrets.TFC_TEAM_TOKEN }}

59 changes: 0 additions & 59 deletions .github/workflows/pull_request.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/workflows/push.yml

This file was deleted.

Loading