Head Honcho

8 Followers
17 Following
49 Posts
This is my server. There are many like it, but this one is mine.
OccupationPrincipal Cloud Engineer
PoisonWhiskey
ReligionStar Trek
GitHubhttps://github.com/riebecj

@blhue Don't put it in the backend. I do a local in my main.tf like `data.aws_caller_identity.current.account_id == "000000000000" ? "Prod" : "Staging"` Obviously also adding `data "aws_caller_identity" "current" {}`.

I've also stopped using workspaces & primarily use S3 backend. I use an aliased command to configure the backend via: `terraform init -backend-config=\"bucket=\"my-bucket-$(aws sts get-caller-identity --query Account --output text)\"\" && terraform plan` so it's account specific.

@blhue I would recommend setting a ternary variable using the AWS Account ID. That way, it will always be correct and you don’t have to manually change it 😁
@Toxic_Flange Initially just to provide my Jellyfin and Frigate NVR VMs with hardware acceleration. Also run some experiments with vGPU live migration. If it works well, I’ve got enough space for one more Tesla card on the mobo for LLM experiments.
@Toxic_Flange Noice! I’m putting together an experiment with vGPU using a Tesla P40
This sums up my feelings on the #Python bare exception removal proposed in #pep760 very nicely.
@winterschon I can make an app to answer that for you…
@bflipp You can also block public access at the account level, preventing any bucket from being made public: https://docs.aws.amazon.com/AmazonS3/latest/userguide/configuring-block-public-access-account.html
Configuring block public access settings for your account - Amazon Simple Storage Service

You can use the S3 console, AWS CLI, AWS SDKs, and REST API to configure block public access settings for all the buckets in your account. For more information, see the sections below.

@wetfeet2000 I mean, you can do a lot of different things, it all depends on how much work you want to put into it LOL. It can do AWS things in OCSF, and other things but you need AppFabric. It’s S3 backed, so I’m assuming it can use Athena for querying across the bucket. You could write your own Athena queries or use Glue.

TL;DR - it all be depends lol

I’ve got a god complex, but not in the traditional sense. I embody Lethe, the Greek god of forgetfulness, because my #ADHD is a thing medication barely controls.

#Mastodon #WhatsYourGodComplex

@SnerkRabbledauber @[email protected] @Python_Dev @Python That depends on what “a” is. If it’s a string argument passed into the function that may also be a NoneType, then do “if isinstance(a, str):” instead of checking if it’s None. If it’s a string, concat them. Otherwise, assign.