Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Skier
Apr 24, 2003

Fuck yeah.
Fan of Britches
Try one moving part at a time. Go to your S3 bucket, open properties and show the static web hosting details. You'll see a link to the bucket there, it'll look like http://fart-bucket-content.s3-website-us-east-1.amazonaws.com/ . Open that URL in your browser. If you can get the contents of other directories okay, the problem is with CloudFront. Otherwise there's more settings to play with in S3, probably read related.

http://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.html will help, plenty of official AWS docs to help with this.

Adbot
ADBOT LOVES YOU

Skier
Apr 24, 2003

Fuck yeah.
Fan of Britches
Is something running a yum update or equivalent on an increasingly out of date base AMI?

Skier
Apr 24, 2003

Fuck yeah.
Fan of Britches

Portland Sucks posted:

I was doing some machine learning classification stuff on my home PC and was sick of having my CPU tied up for days on end so I just jumped into the free tier EC2 without really reading anything about how it worked and was wowed at how slow it was in comparison to my i7. I figure that was the whole burst performance thing that the t2.micro offers working at my disadvantage since I just needed something that could run 100% for as long as I needed. Which EC2 instance types should I be looking at that won't scale back after a few hours of constant threaded CPU?

Anything instance type starting without `t` doesn't do bursting and throttling of CPU usage. Lots of options for instance types. If your work can be interrupted you can use spot instances to run way cheaper than on-demand instances. https://aws.amazon.com/ec2/spot/pricing/ . If your workload can't be interrupted EC2 is gonna be pricey for offloading work.

Skier
Apr 24, 2003

Fuck yeah.
Fan of Britches

AWWNAW posted:

My experiences with Kubernetes on AWS have been positive, save for some random DNS issues. They’re also about to announce fully managed Kubernetes soon?

I'd put money on it being announced at reInvent at the end of the month, but everyone I know has been tight lipped about it.

Methanar posted:

Idiot question:

What is the difference between https://bucket.s3-us-east-1.amazonaws.com and https://bucket.s3.amazonaws.com

https://github.com/jie123108/lua-resty-s3 This library for accessing s3 over lua has helpfully hardcoded in the string s3-us-east-1 into all requests. Aside from hardcoding a region into a library is stupid, what is the difference between s3 and s3-region in the subdomain? Why does my bucket only respond to .s3.?

➜ Scripts ping bucket.s3-us-east-1.amazonaws.com
ping: cannot resolve bunstributor.s3-us-east-1.amazonaws.com: Unknown host
➜ Scripts ping bucket.s3.amazonaws.com
PING s3-1-w.amazonaws.com (52.216.225.176): 56 data bytes
64 bytes from 52.216.225.176: icmp_seq=0 ttl=44 time=68.532 ms

S3 in us-east-1 is a bit of a special snowflake: it doesn't have the region prefix on it. See http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region for more info. There's also a few different ways of accessing buckets such as virtual hosted style or path style: http://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html .

I don't know any Lua so I can't get too deep into the linked codebase, but hopefully this will help.

Skier
Apr 24, 2003

Fuck yeah.
Fan of Britches

a hot gujju bhabhi posted:

Really simple question for the experts here I'm sure, but I have an ECS cluster and the underlying EC2 instance (just one at the moment, it's an in-development project) is using an AMI that now has a more recent version available. I know how to change the AMI and so on, but what is the easiest way to quickly locate the AMI ID for the latest version of this AMI? Searching for the AMI brings up a bunch of different ones and there is no way to sort by version, or even creation date.

https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-ami-versions.html says

code:
aws ssm get-parameters --names /aws/service/ecs/optimized-ami/amazon-linux-2/recommended
can get you what you need. Here's what I see with some weird double encoding:

code:
"{\"schema_version\":1,\"image_name\":\"amzn2-ami-ecs-hvm-2.0.20200218-x86_64-ebs\",
\"image_id\":\"ami-0c0415cdff14e2a4a\",\"os\":\"Amazon Linux 2\",
\"ecs_runtime_version\":\"Docker version 18.09.9-ce\",\"ecs_agent_version\":\"1.37.0\"}"

Adbot
ADBOT LOVES YOU

Skier
Apr 24, 2003

Fuck yeah.
Fan of Britches
Implementing the signing can be tricky - could you see how other projects do it such as https://github.com/penmanglewood/aws_sigv4 or https://github.com/sidbai/aws-sigv4-c ? That way you don't have to do it from scratch.

I've had to implement the signing myself and there are a lot of edge cases and gotchas, so looking at someone else's work, licenses permitting, is probably the way to go.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply