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
fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb
Anybody try to do anything meaningful with Aurora Serverless yet? Wondering what sort of unknown horrors I'm about to encounter...

Adbot
ADBOT LOVES YOU

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb
Cool, thanks for the feedback! For our use case we probably won't have scale to zero enabled, at least in production. Good to know though, may come in handy for internal dev/qa instances.

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb

22 Eargesplitten posted:

Is there any viable reason to be using MS SQL on an EC2 instance rather than in an RDS instance? My suspicion is it's due to a lift and shift from on-prem to AWS and wanting to just copy everything over from the old on-prem DB setup. I know they were fussed about the price of MSSQL on RDS compared to on Azure but I'm not sure if a license for an on-prem version would transfer over to EC2 and save them the subscription cost.

Then again, if they want HA, they would probably need two licenses for the two different EC2 instances and have to deal with cross-region replication of data between the two which sounds like a pain.

RDS is very expensive. Usually a database needs the features RDS has to offer, so it can be worth it. I've had a few unusual use cases where a SQL database was needed but without any replication, failover, etc that we used EC2 for instead of RDS. Those were not typical use cases of a database, which usually needs the features RDS has to offer. You pay a premium for it though!

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb

Scrapez posted:

Is there a way to spin up an EC2 instance with only an ENI? No built in NIC?

We need static IPs and the ability for an instance that has died and been replaced with autoscaling to get that same static IP back.

Currently accomplishing that by a user-data script that the instance runs to discover some info about itself (region, AZ, purpose of instance) and attaches the appropriate ENI to itself.

The issue is that you then have two NICS. The built in and the ENI. We never use the built in for anything so it's pointless for it to be there and causes issues with some of the software we are running as it tries to default to the built in even when it's down.

Why not stick these instances behind a NAT gateway so they all have the same public IP?

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb

Cheston posted:

I'm trying to understand cloud pricing so I'm not such a mook. Data transfer out of us-east-1 costs $0.09 per GB. Cheaper regions cost $0.05 per GB. Backblaze charges $0.01 per GB. Both services claim eleven nines of durability. Why such a big price difference?

Yup what the other guy says. AWS charges a premium because they are the market leader and can. It's way more expensive than the competition, but also way more complete in terms of all the services available in AWS.

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb

BaseballPCHiker posted:

What are people doing here to manage and harden AMIs? Trying to push for us to at least patch the base AMIs at creation before they make it to production. Image builder seems like the go to but wondering what folks use.

Packer for us as well. We use Amazon Linux 2 as our base AMI. Security updates are installed automatically on instance boot.

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb
I want to adhere to the principle of least privilege with my IAM policies and keep things organized, but it's so tedious. Is there an easier way to do this? I'm using terraform to define all of my IAM policies as a superuser, so they're at least version controlled. It's such a pain though!

fletcher fucked around with this message at 10:38 on Nov 15, 2022

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb

12 rats tied together posted:

if you haven't already, check out the aws documentation page for IAM policy variables and tags. a big problem I often see people run into with terraform specifically is creating tons of policies with terraform interpolations in them that could actually just be one policy with an iam variable in it (typically aws:userid)

other than that, I'm not aware of any tricks. I use cloudformation templates for my IAM stuff and serialize a business-specific principal definition to yaml.

Ahh that is super helpful, I have been making that same interpolation mistake with my policies!

necrobobsledder posted:

IAM access analyzer helps generate IAM policies based upon cloudtrail data. https://aws.amazon.com/blogs/securi...ccess-activity/

This is glorious. I was hoping there was some sort of audit2allow type of thing.

Thank you both for the advice!

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb
Doesn't help the "compare things simultaneously" aspect but I've found the https://github.com/tilfinltd/aws-extend-switch-roles extension to be very handy for bouncing between accounts

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb

LtDan posted:

Any suggestions for a intro level project with EKS?

Maybe try deploying a self-hosted app that has a few different services involved, something like https://github.com/immich-app/immich/blob/main/docker/docker-compose.yml

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb
Anybody using AWS Controllers for Kubernetes ?

We're currently a terraform & k8s shop. Sure terraform has its warts but at least we've got a few years of knowledge built up and the warts are all well known at this point. What's the compelling reason to consider adopting ACK?

It seems like you would also need a k8s cluster to use ACK...so what provisions that? Terraform??

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb
Thanks for the replies!


Docjowles posted:

Disclaimer: I have not personally used ACK

But reading the page, I think you're mistaken as to the purpose of ACK. It is not for building and managing k8s clusters. It's a way to let you manage AWS resources (RDS databases, Lambda function, S3 buckets, etc) using k8s YAML files. It defines a bunch of custom resource types. You write configs using those types and upload them into your cluster. Then the controller will go out and manage those things on your behalf the same way it works for pods and services and ingresses.

I do not know who in god's name is asking for this. But if you simply must manage your entire infrastructure via k8s YAML files and nothing else then ACK's got you covered?

Yup that is my understanding, that it's for managing all those other AWS resources, not for managing the k8s clusters. Just seems like you would have to use something else at that point since it can't bootstrap a cluster itself.

freeasinbeer posted:

Don’t use ACK it’s a hacky AWS side project they barely support. Crossplane.io is much further along as far as features and has actual users, if you have to control stuff via Kubernetes control plane.

That said, they only make sense if you have Kubernetes resources that need to drive AWS resources, which feels like a niche use case.

This is good to know that it's a hacky side project, and more mature alternatives exist.

Our particular use case is giving users of our product the ability to provision resources in AWS, but abstract away everything. The users would just have a button in the UI that does the provisioning - so my first thought was just have Java code shell out to terraform, since we've got plenty of institutional knowledge about those two things already. It's not perfect but it seems easy and minimizes the unknown unknowns that any alternative solution might have.

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb

The Fool posted:

I would fully migrate to pulumi before trying to shove terraform cdk into things

It looks nice and certainly seems like the more elegant solution. I'm still leaning towards just having Java code shell out to terraform though. I think part of the reason is that this project is more of a POC and we don't expect this use case to be repeated any time soon, so it's probably not worth the trouble of bringing in some new tech into our ecosystem. Certainly if the use case expands, then it's probably time to ditch the Java/terraform hacky solution for something more purpose built.

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb

Hughmoris posted:

Is there any sort of 'community' around Redshift? I can't find any discords/slack channels/user groups/bloggers etc... Maybe the SQL Server and Postgres communities have spoiled me.

Where do all the Redshifters hang out?

Maybe they hang out on whatever is hosting those Google results that always have a solving my exact problem but I can't view the solution because I don't have a license??

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb

FISHMANPET posted:

My read on those is that you have to "switch" into a role and isn't really meant to be a user's level of regular access. And it still has a policy attachment limit.

The policies attached to roles is a soft limit though, they can increase it upon request

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb

Docjowles posted:

It looks like both users (I would assume this also applies to groups) and roles have an initial limit of 10 policies and a hard cap of 20. So yeah you could request an increase and relieve the immediate pressure. https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html

Having 20 policies on a single object feels a bit nuts though and at some point you do need to take the time to just craft your own policy that does exactly what you want. IAM janitoring is basically the Eating Your Vegetables of using AWS, in that it's not a lot of fun but pays dividends in terms of the health and safety of your cloud environment.

It's nice being able to see the permissions sort of grouped into their purpose though. I could craft one giant policy with all of them combined but it just seems like it's less organized. Why don't they just group them up behind the scenes for me?

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb

BaseballPCHiker posted:

Im sure Im missing something dumb here....

Im writing a SCP to block anyone from launching new instances that use IMDSv1. Thats all well and good and working fine. Now I want to update the SCP so that someone with a specific role can launch an instance with IMDSv1 if the need should arise.

Ideally I could do that by referencing an Identity Center Permission set. So anyone in any account with that permission set can go nuts with IMDSv1 if necessary. Except I cant see any way to do that! There has to be a way to do that I would think, or am I overthinking this? Should I just reference the role as it gets created in each account instead?

What would that need for IMDSv1 permitted instance be? We enforce it at the AWS account level - starting with lower environments, fixing whatever broke, and then eventually enforcing it in production.

Adbot
ADBOT LOVES YOU

fletcher
Jun 27, 2003

ken park is my favorite movie

Cybernetic Crumb

lazerwolf posted:

Is it a good practice to use container images for lambda functions? Seems to be the easiest way to handle dependencies. Are there any obvious downsides?

I think it is pretty standard. It's gonna be a container image either way, just a matter of whether it's amazon's or your own. I think the biggest downside would be that you need a way to build & deploy your images, which probably ranges from trivial to minimal effort. Years ago we were doing a simple lambda and it was one of the first ones with no other use on the horizon, so rather than a custom image to use the requests library we just inlined a simple http request function using python standard library, to avoid that bit of overhead of using a custom image.

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