-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* git status * Setting assets to pull from main branch * Updating scratch hcl * Formatting * Removing branch on git pull of admin * Added comment on reasoning around this change * Finishing my thought * Update aws/common/uploadS3Assets.tf Co-authored-by: Jimmy Royer <[email protected]> --------- Co-authored-by: Jimmy Royer <[email protected]>
- Loading branch information
1 parent
0f67d70
commit fbb46c5
Showing
6 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# This is hack'ish as we're cloning an external repo into a temp directory so that we can populate CloudFront. | ||
# We will have to review a better way of doing this in the future, but our long term goal of having one source of | ||
# truth for the assets is accomplished. | ||
|
||
resource "aws_s3_object" "assets" { | ||
|
||
bucket = aws_s3_bucket.asset_bucket.id | ||
for_each = fileset("/var/tmp/notification-admin/app/assets/cloudfront", "**") | ||
key = each.value | ||
source = "/var/tmp/notification-admin/app/assets/cloudfront/${each.value}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters