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

fix typo #301

Merged
merged 113 commits into from
Nov 28, 2024
Merged
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
07e941f
Define github_actions_role and policy
ssylver93 Nov 18, 2024
e888124
Define github_actions_role and policy (#227)
ssylver93 Nov 18, 2024
88ff788
Uncomment github actions user temporarily and change s3 acl to private
ssylver93 Nov 18, 2024
b203bed
Uncomment github actions user temporarily and change s3 acl to privat…
ssylver93 Nov 18, 2024
a9f7495
Revert last change
ssylver93 Nov 19, 2024
7706d7a
Merge branch 'WFPREV-30_test_build_1' into WFPREV-30_test_build_1
ssylver93 Nov 19, 2024
b4b5ce9
Revert last change (#229)
ssylver93 Nov 19, 2024
6e4b291
Merge branch 'bcgov:WFPREV-30_test_build_1' into WFPREV-30_test_build_1
ssylver93 Nov 19, 2024
99e2027
Access iam user created in DynamoDB and Add GitHub OIDC role for secu…
ssylver93 Nov 19, 2024
fcb1d1a
Access iam user created in DynamoDB and Add GitHub OIDC role for secu…
ssylver93 Nov 19, 2024
2efcd3a
Access iam user created in DynamoDB and Add GitHub OIDC role for secu…
ssylver93 Nov 19, 2024
58d534b
Access iam user created in DynamoDB and Add GitHub OIDC role for secu…
ssylver93 Nov 19, 2024
dc932eb
Comment out ssm_paramter and use correct username for iam user resource
ssylver93 Nov 19, 2024
f972f73
Comment out ssm_paramter and use correct username for iam user resour…
ssylver93 Nov 19, 2024
03b640e
Update username
ssylver93 Nov 19, 2024
75bd244
Wfprev 30 test build 1 (#233)
ssylver93 Nov 19, 2024
caf3656
Update username
ssylver93 Nov 19, 2024
b2cbef1
Update username (#234)
ssylver93 Nov 19, 2024
18e0e5e
Update username
ssylver93 Nov 19, 2024
2225358
Wfprev 30 test build 1 (#235)
ssylver93 Nov 19, 2024
9847089
Remove erroneous iam user creation, add OAI and Cloudfront distributi…
ssylver93 Nov 19, 2024
2031b92
Remove erroneous iam user creation, add OAI and Cloudfront distributi…
ssylver93 Nov 19, 2024
532d36d
Remove public-read and use correct OAI for S3 bucket
ssylver93 Nov 19, 2024
7c9e174
Remove public-read and use correct OAI for S3 bucket (#237)
ssylver93 Nov 19, 2024
a644b78
Whitespace to pick up changes in s3.tf
ssylver93 Nov 19, 2024
31e011d
Update s3.tf
ssylver93 Nov 19, 2024
091cc36
Merge branch 'WFPREV-30_test_build_1' of https://github.com/ssylver93…
ssylver93 Nov 19, 2024
a0db5c8
Build angular app in correct directory
ssylver93 Nov 19, 2024
80a9dae
Build angular app in correct directory (#238)
ssylver93 Nov 19, 2024
b812b81
Add working directory for terraform steps and debug outputs
ssylver93 Nov 20, 2024
fb30f63
Add working directory for terraform steps and debug outputs (#239)
ssylver93 Nov 20, 2024
9c800ca
Merge branch 'WFPREV-30_test_build_1' of https://github.com/ssylver93…
ssylver93 Nov 20, 2024
15ee511
Add debug statements and remove duplicate action
ssylver93 Nov 20, 2024
3951d3f
Add debug statements and remove duplicate action (#240)
ssylver93 Nov 20, 2024
15b6df4
Add environment variables to terraform actions
ssylver93 Nov 20, 2024
a6edc61
Add environment variables to terraform actions
ssylver93 Nov 20, 2024
55ba337
Add environment variables to terraform actions (#241)
ssylver93 Nov 20, 2024
e1c6538
Merge branch 'WFPREV-30_test_build_1' of https://github.com/ssylver93…
ssylver93 Nov 20, 2024
f1219c0
explicitly point to the state file
ssylver93 Nov 20, 2024
3ca6206
explicitly point to the state file (#242)
ssylver93 Nov 20, 2024
544c5e6
Remove terraform plan/apply
ssylver93 Nov 20, 2024
78897f9
Remove terraform plan/apply (#243)
ssylver93 Nov 20, 2024
ff10627
Use terragrunt to find state list for cloudfront dist ID
ssylver93 Nov 20, 2024
d57c05d
Add echo logging
ssylver93 Nov 20, 2024
9e27508
Use terragrunt to find state list for cloudfront dist ID (#244)
ssylver93 Nov 20, 2024
4f823d0
Remove terragrunt init
ssylver93 Nov 20, 2024
b7cdfc6
Remove terragrunt init (#246)
ssylver93 Nov 20, 2024
7d0bede
Add all env variables for terragrunt
ssylver93 Nov 20, 2024
8b0bdee
Add all env variables for terragrunt (#247)
ssylver93 Nov 20, 2024
b54ebff
Hardcode values
ssylver93 Nov 20, 2024
92ab537
Wfprev 30 test build 1 (#248)
ssylver93 Nov 20, 2024
1c167c2
Merge branch 'WFPREV-30_test_build_1' of https://github.com/ssylver93…
ssylver93 Nov 20, 2024
e71a80a
Remove output all values
ssylver93 Nov 20, 2024
5100348
Wfprev 30 test build 1 (#249)
ssylver93 Nov 20, 2024
9343ec7
Merge branch 'WFPREV-30_test_build_1' of https://github.com/ssylver93…
ssylver93 Nov 20, 2024
8a612f4
Clean up terrgrunt output command
ssylver93 Nov 20, 2024
55917da
Clean up terrgrunt output command (#250)
ssylver93 Nov 20, 2024
1f9e62b
Merge branch 'WFPREV-30_test_build_1' of https://github.com/ssylver93…
ssylver93 Nov 20, 2024
b789161
test teraform output cmd
ssylver93 Nov 20, 2024
f0f2eb7
test terragrunt output cmd (#251)
ssylver93 Nov 20, 2024
e08b6e4
Merge branch 'WFPREV-30_test_build_1' of https://github.com/ssylver93…
ssylver93 Nov 20, 2024
5f19278
Sanitize distribution ID
ssylver93 Nov 20, 2024
dae6412
Sanitize distribution ID (#252)
ssylver93 Nov 20, 2024
3c31ce2
Merge branch 'WFPREV-30_test_build_1' of https://github.com/ssylver93…
ssylver93 Nov 21, 2024
b35472e
Sanitize distribution ID
ssylver93 Nov 21, 2024
7565e5c
Sanitize distribution ID (#253)
ssylver93 Nov 21, 2024
88e9605
Merge branch 'WFPREV-30_test_build_1' of https://github.com/ssylver93…
ssylver93 Nov 21, 2024
8e89af1
grab github actions role ARN
ssylver93 Nov 21, 2024
6a82458
grab github actions role ARN (#255)
ssylver93 Nov 21, 2024
5f2b7cb
Merge branch 'WFPREV-30_test_build_1' of https://github.com/ssylver93…
ssylver93 Nov 21, 2024
9e6242f
grab github actions role ARN
ssylver93 Nov 21, 2024
e8a39e5
grab github actions role ARN (#256)
ssylver93 Nov 21, 2024
827213d
Merge branch 'WFPREV-30_test_build_1' of https://github.com/ssylver93…
ssylver93 Nov 21, 2024
0fc0829
grab github actions role ARN
ssylver93 Nov 21, 2024
40a8cfb
grab github actions role ARN (#257)
ssylver93 Nov 21, 2024
accd7b9
Fix syntax
ssylver93 Nov 21, 2024
92fd073
Fix syntax (#258)
ssylver93 Nov 21, 2024
9a9d974
Merge branch 'WFPREV-30_test_build_1' of https://github.com/ssylver93…
ssylver93 Nov 21, 2024
b189b66
Fix syntax
ssylver93 Nov 21, 2024
bd382d5
Fix syntax (#259)
ssylver93 Nov 21, 2024
d6d677b
Merge branch 'WFPREV-30_test_build_1' of https://github.com/ssylver93…
ssylver93 Nov 21, 2024
55ed17e
Update iam user config
ssylver93 Nov 21, 2024
67f589c
Update iam user config (#260)
ssylver93 Nov 21, 2024
d15060a
add policy attachment for github-actions_role
ssylver93 Nov 25, 2024
f52f877
Add policy attachmant for github actions role (#271)
ssylver93 Nov 25, 2024
baff226
Provider for github actions OIDC
ssylver93 Nov 25, 2024
18067e9
Provider for Github actions OIDC (#272)
ssylver93 Nov 25, 2024
10034cd
Merge branch 'WFPREV-30_test_build_1' of https://github.com/ssylver93…
ssylver93 Nov 25, 2024
ab62c70
Add oidc_viewer_policy
ssylver93 Nov 25, 2024
d63729b
Re-adding files for s3 bucket deployment
ssylver93 Nov 27, 2024
4bcf5e4
Update build-full-environment
ssylver93 Nov 27, 2024
434dc64
Remove oidc viewer and policy
ssylver93 Nov 27, 2024
599234d
Remove oidc viewer and policy
ssylver93 Nov 27, 2024
fd7b880
Re-add OAI
ssylver93 Nov 27, 2024
75be06b
Merge branch 'WFPREV-30_test_build_2' of https://github.com/ssylver93…
ssylver93 Nov 27, 2024
69cbc22
Use data object for oidc provider
ssylver93 Nov 27, 2024
d77052a
Hardcode ARN for existing provider
ssylver93 Nov 28, 2024
9b0ade2
legacy-peer-deps command
ssylver93 Nov 28, 2024
92bce49
Update client-build.yml to latest
ssylver93 Nov 28, 2024
1330d9e
Update client-build.yml to latest
ssylver93 Nov 28, 2024
0efecb3
Add missing cloudfront.tf
ssylver93 Nov 28, 2024
dcdd85b
Merge branch 'WFPREV-30_test_build_2' of https://github.com/ssylver93…
ssylver93 Nov 28, 2024
fee1063
Add assume role action
ssylver93 Nov 28, 2024
5e56da1
Update assume role action
ssylver93 Nov 28, 2024
1d6ebdc
correct role name
ssylver93 Nov 28, 2024
ec98e7f
Update path to dist files
ssylver93 Nov 28, 2024
a5051ea
Update bucket name
ssylver93 Nov 28, 2024
b775ff4
Merge branch 'WFPREV-30_test_build_2' of https://github.com/ssylver93…
ssylver93 Nov 28, 2024
b54baf0
Update bucket permissions
ssylver93 Nov 28, 2024
69965da
Fix s3.tf
ssylver93 Nov 28, 2024
c530b11
Merge branch 'WFPREV-30_test_build_2' of https://github.com/ssylver93…
ssylver93 Nov 28, 2024
01bfcb3
Add cache invalidation permissions
ssylver93 Nov 28, 2024
dcc3bd2
Fix typo
ssylver93 Nov 28, 2024
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: 2 additions & 0 deletions terraform/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,12 @@ resource "aws_iam_policy" "github_actions_policy" {
"s3:GetObject", # Object read
"s3:PutObject", # Object write
"s3:DeleteObject" # Object deletion
"cloudfront:CreateInvalidation" # Invalidate cache
],
Resource = [
"arn:aws:s3:::wfprev-dev-site", # Bucket-level actions like s3:ListBucket
"arn:aws:s3:::wfprev-dev-site/*" # Object-level actions
"arn:aws:cloudfront::183631341627:distribution/*"
]
}
]
Expand Down