Skip to content

Commit d8b0ad9

Browse files
committed
Merge remote-tracking branch 'origin' into FYST-2086-create-archived-intakes-in-new-pya-testing-environment
2 parents 5357430 + 4fc6750 commit d8b0ad9

4 files changed

Lines changed: 39 additions & 14 deletions

File tree

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ gem "solid_cache"
2828
gem "solid_queue"
2929
gem "solid_cable"
3030

31+
gem "aws-sdk-s3", require: false
32+
3133
# Reduces boot times through caching; required in config/boot.rb
3234
gem "bootsnap", require: false
3335

Gemfile.lock

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,28 @@ GEM
9292
ast (2.4.3)
9393
autoprefixer-rails (10.4.21.0)
9494
execjs (~> 2)
95+
aws-eventstream (1.2.0)
96+
aws-partitions (1.851.0)
97+
aws-sdk-core (3.186.0)
98+
aws-eventstream (~> 1, >= 1.0.2)
99+
aws-partitions (~> 1, >= 1.651.0)
100+
aws-sigv4 (~> 1.5)
101+
jmespath (~> 1, >= 1.6.1)
102+
aws-sdk-kms (1.72.0)
103+
aws-sdk-core (~> 3, >= 3.184.0)
104+
aws-sigv4 (~> 1.1)
105+
aws-sdk-s3 (1.136.0)
106+
aws-sdk-core (~> 3, >= 3.181.0)
107+
aws-sdk-kms (~> 1)
108+
aws-sigv4 (~> 1.6)
109+
aws-sigv4 (1.6.1)
110+
aws-eventstream (~> 1, >= 1.0.2)
95111
base64 (0.3.0)
96112
bcrypt_pbkdf (1.1.1)
97113
bcrypt_pbkdf (1.1.1-arm64-darwin)
98114
bcrypt_pbkdf (1.1.1-x86_64-darwin)
99115
benchmark (0.4.1)
100-
bigdecimal (3.2.1)
116+
bigdecimal (3.2.2)
101117
bindex (0.8.1)
102118
bootsnap (1.18.6)
103119
msgpack (~> 1.2)
@@ -124,7 +140,7 @@ GEM
124140
railties (>= 6.0.0)
125141
sass-embedded (~> 1.63)
126142
date (3.4.1)
127-
debug (1.10.0)
143+
debug (1.11.0)
128144
irb (~> 1.10)
129145
reline (>= 0.3.8)
130146
diff-lcs (1.6.2)
@@ -184,6 +200,7 @@ GEM
184200
jbuilder (2.13.0)
185201
actionview (>= 5.0.0)
186202
activesupport (>= 5.0.0)
203+
jmespath (1.6.2)
187204
jquery-rails (4.6.0)
188205
rails-dom-testing (>= 1, < 3)
189206
railties (>= 4.2.0)
@@ -319,7 +336,7 @@ GEM
319336
rb-fsevent (0.11.2)
320337
rb-inotify (0.11.1)
321338
ffi (~> 1.0)
322-
rdoc (6.14.0)
339+
rdoc (6.14.1)
323340
erb
324341
psych (>= 4.0.0)
325342
regexp_parser (2.10.0)
@@ -334,7 +351,7 @@ GEM
334351
rspec-mocks (3.13.5)
335352
diff-lcs (>= 1.2.0, < 2.0)
336353
rspec-support (~> 3.13.0)
337-
rspec-rails (8.0.0)
354+
rspec-rails (8.0.1)
338355
actionpack (>= 7.2)
339356
activesupport (>= 7.2)
340357
railties (>= 7.2)
@@ -395,13 +412,13 @@ GEM
395412
rb-fsevent (~> 0.9, >= 0.9.4)
396413
rb-inotify (~> 0.9, >= 0.9.7)
397414
securerandom (0.4.1)
398-
selenium-webdriver (4.33.0)
415+
selenium-webdriver (4.34.0)
399416
base64 (~> 0.2)
400417
logger (~> 1.4)
401418
rexml (~> 3.2, >= 3.2.5)
402419
rubyzip (>= 1.2.2, < 3.0)
403420
websocket (~> 1.0)
404-
solid_cable (3.0.8)
421+
solid_cable (3.0.11)
405422
actioncable (>= 7.2)
406423
activejob (>= 7.2)
407424
activerecord (>= 7.2)
@@ -428,11 +445,11 @@ GEM
428445
railties (>= 6.0.0)
429446
stringio (3.1.7)
430447
thor (1.3.2)
431-
thruster (0.1.13)
432-
thruster (0.1.13-aarch64-linux)
433-
thruster (0.1.13-arm64-darwin)
434-
thruster (0.1.13-x86_64-darwin)
435-
thruster (0.1.13-x86_64-linux)
448+
thruster (0.1.14)
449+
thruster (0.1.14-aarch64-linux)
450+
thruster (0.1.14-arm64-darwin)
451+
thruster (0.1.14-x86_64-darwin)
452+
thruster (0.1.14-x86_64-linux)
436453
timeout (0.4.3)
437454
turbo-rails (2.0.16)
438455
actionpack (>= 7.1.0)
@@ -450,7 +467,7 @@ GEM
450467
bindex (>= 0.4.0)
451468
railties (>= 6.0.0)
452469
websocket (1.2.11)
453-
websocket-driver (0.7.7)
470+
websocket-driver (0.8.0)
454471
base64
455472
websocket-extensions (>= 0.1.0)
456473
websocket-extensions (0.1.5)
@@ -472,6 +489,7 @@ PLATFORMS
472489

473490
DEPENDENCIES
474491
annotaterb
492+
aws-sdk-s3
475493
bootsnap
476494
brakeman
477495
capybara

config/environments/production.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
2222
# config.asset_host = "http://assets.example.com"
2323

24-
# Store uploaded files on the local file system (see config/storage.yml for options).
25-
config.active_storage.service = :local
24+
config.active_storage.service = :s3
2625

2726
# Assume all access to the app is happening through a SSL-terminating reverse proxy.
2827
config.assume_ssl = true

config/storage.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,9 @@ local:
3232
# service: Mirror
3333
# primary: local
3434
# mirrors: [ amazon, google, microsoft ]
35+
36+
# AWS credentials and S3_BUCKET come from the AWS fargate service module via OpenTofu for staging/production
37+
# AWS credentials and S3_BUCKET for heroku environment are defined via Config Vars on the heroku pya pipeline
38+
s3:
39+
service: S3
40+
bucket: <%= ENV["S3_BUCKET"] %>

0 commit comments

Comments
 (0)