USGS-WiM / parks-and-refuges-fev

This applications allows users to capture, analyze, and display detailed Refuge or Park-specific information about storm tide and flooding from hurricanes and nor’easters will allow federal agencies such as the USFWS and NPS to better understand the effect of individual storm events and track storm tides through time.
Other
1 stars 0 forks source link

Create new bucket/sub domain for DOI FEV Production Application #433

Closed lprivette closed 3 years ago

lprivette commented 3 years ago

I tried creating it myself with settings equal to wim.usgs.gov bucket, but it says I don't have the correct permissions to configure the settings.

ChadFanguy-usgs commented 3 years ago

Setup doi-fev.wim.usgs.gov with the same settings as wim.usgs.gov. I think all the permissions were copied as well for accessing it.

lprivette commented 3 years ago

Thank you!

It won't let me create anything image

aaronstephenson commented 3 years ago

@fanguyc-usgs you'll also need to create an IAM policy (just copy one of the already existing S3 IAM policies and change the resources) and apply it to Lauren's user account. You'll also probably want to create the DNS record in Route53 if the bucket is intended as a static web site.

ChadFanguy-usgs commented 3 years ago

Added IAM Policy and attached it to @lprivette 's account. Let me know if you can create things now, and will this be a static website like https://wim.usgs.gov/ ?

lprivette commented 3 years ago

Sorry I should have responded to that earlier. So I don't 100% understand the boundaries of a "static" website. but it will be like our other mappers, FEV for example. Or the CBRS Projects Mapper ( https://wim.usgs.gov/cbrs-projects-mapper/) in the wim.usgs.gov bucket.

I tried uploading files both as a sub folder and directly to bucket but nothing is resolving. Just says "(failed)" in the status for doi-fev.wim.usgs.gov

ChadFanguy-usgs commented 3 years ago

I can see what you uploaded and I enabled the website at doi-fev.wim.usgs.gov

I wonder if this is related to the 500 issue error for the images in stn.

lprivette commented 3 years ago

That issue has never manifested itself in that way for this app. Usually it just show an error in the popup when you click on a site that has that file.

this is what I see image

lprivette commented 3 years ago

it's been deployed previously to test.wim.usgs.gov/doiFevTest, which loads

ChadFanguy-usgs commented 3 years ago

Does it have the same problems at http://doi-fev.wim.usgs.gov.s3-website-us-east-1.amazonaws.com/ ? Might be a problem with how I did the routing.

ChadFanguy-usgs commented 3 years ago

@aaronstephenson did you ever have a route53 setup work on Firefox but not Chrome or Edge? http://doi-fev.wim.usgs.gov/ works in Firefox but does not load on Chrome or Edge

aaronstephenson commented 3 years ago

Can't say that I have. Maybe something is wrong with the headers?

ChadFanguy-usgs commented 3 years ago

Looks like I need to setup cloudfront for the bucket to serve the static website. Stackoverflow pointed to this AWS article and all the other routes are cloudfront, IP, or pointing to an EC2 instance https://docs.aws.amazon.com/AmazonS3/latest/userguide/website-hosting-custom-domain-walkthrough.html

aaronstephenson commented 3 years ago

All but two of our S3 websites are reverse proxied thru our Toad or Luigi EC2 instances.

ChadFanguy-usgs commented 3 years ago

Setup a reverse proxy like sparrow on Toad. Works on my machine and personal pc, @lprivette please check if everything is working correctly https://doi-fev.wim.usgs.gov/

lprivette commented 3 years ago

Working as expected, thank you Chad!