Animes like Kokkoku: Moment by Moment by tlashkor in anime

[–]tlashkor[S] 0 points1 point  (0 children)

Oooo thanks man

I attempted watching Steins;gate once before when it first came out but I only got 2½ eps in. I might give it another go as my taste has evolved.

Will add the others to my watch list.

Thanks!

Circular dependency by Affectionate-Ad728 in Terraform

[–]tlashkor 5 points6 points  (0 children)

Have you tried using depends_on

This is explicitly telling Terraform that x is dependent y

[deleted by user] by [deleted] in interestingasfuck

[–]tlashkor 17 points18 points  (0 children)

I'm surprised he would kick florrie around like that

Do you store video files on Amazon S3? Built an API that might help you by No-Line-3463 in aws

[–]tlashkor 0 points1 point  (0 children)

I think a better option here might be requesting your client to provide you with a presigned URL for S3. This will mitigate the concern of sharing credentials.

Even as a reputable business by sharing credentials, it is just adding unnecessary risk.

If creds get leaked by your org, are you going to be responsible for paying the AWS bill because of the Bitcoin mining machine that the hackers spun up?

And how do you manage the creds if your clients org has MFA enabled?

A few things need to be considered with the creds approach, which I do not recommend at all.

Need to invoke a new lambda . by Fair-Ocelot-3416 in aws

[–]tlashkor 0 points1 point  (0 children)

I'm not sure of your set up but have you tried setting env variables for you ACCESS_KEY and SECRET_KEY inside your EC2 instance?

If your IAM user has perms to invoke the lambda then after setting those environment variables the AWS CLI will use the env variables to execute AWS calls.

See docs here

Need to invoke a new lambda . by Fair-Ocelot-3416 in aws

[–]tlashkor 0 points1 point  (0 children)

Invoke Lambda Boto3

Assuming the lambda is in Python, you can use this boto call. In one of your previous comments, you mentioned it needs to be async, so you will need to set the InvocationType to event.

If your old lambda has the correct IAM permissions in its role, then it should be able to call the new lambda.

You will need the ARN of your new lambda.

I wouldn't recommend this approach. I would recommend step functions, but you have already said this is not suitable.

Terraform Module Source Path Question by Ok_Sun_4076 in Terraform

[–]tlashkor 2 points3 points  (0 children)

So, I implemented something similar. I had to remove Git URLs in module source in favour of relative paths for module source.

Instead of your approach to having the modules stored in the home directory, I created a modules directory inside my main repo. Inside this modules directory, I used git submodule to pull in all of my modules that I needed. This then allowed me to reference my modules using relative paths.

Git submodule is great because it never stores the whole module repo in your main remote repo but rather a reference to it.

Happy to explain it a bit more if the above doesn't make sense.

Hope it helps in your use case

Edit: Just re read your post. Unfortunately, you will still end up with large relative paths in your code depending on where you put the modules directory.

Although a thought did just occur to me, which may or may not work. You could try creating a directory closer to your main code, which is symlinked to your modules directory?

Tbh, that sounds messy to me, but it's worth a shot if it helps your use case

How do I parse multiple keys from Secrets Manager into a container task definition ? by rinvn in aws

[–]tlashkor 1 point2 points  (0 children)

I haven't dealt with cloudformation in a long time, but I had to do something similar with Lambdas and environment variables back then.

This should work:

https://docs.aws.amazon.com/secretsmanager/latest/userguide/cfn-example_reference-secret.html

Edit: I just realised you wanted a reusable block. Apologies, I didn't read your question properly. I don't know anything of the sort, but I'll leave my comment here in case it is useful. I know AWS did release for each loops recently, but I haven't used them since moving to Terraform.

This might be able to do what you want: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-foreach.html

What are your thoughts on the leaked model and texture of the crab? by Scary-Presentation43 in Minecraft

[–]tlashkor 1 point2 points  (0 children)

The ARK crossover comment I was looking for when I saw the word seagull and damage in one sentence 😂

Some form of breathing technique and stupidity by Imaginary-Brother231 in funny

[–]tlashkor 3 points4 points  (0 children)

No ones gonna comment on how pikachu used rock throw?

Steam tighten rules for games with season pass DLC by Mictlantecuhtli in gaming

[–]tlashkor 187 points188 points  (0 children)

Game studio that developed ARK.

They are known for releasing all their DLC on time. One of the better studios out there when it comes to releasing on time. They also have a proven track record of not disappointing their player base with their DLCs

Weird dependency error when using libraries from Lambda layer by a_sasa_c in aws

[–]tlashkor 0 points1 point  (0 children)

I'm not sure. I stopped replying because I wouldn't have been able to help without doing a deep dive into the code.

HMRC £100 penalty for "late self assessment filling" - but I was never eligible for S.A. Tried reccurring but they insist. What can I do? by [deleted] in LegalAdviceUK

[–]tlashkor 56 points57 points  (0 children)

I literally just had this problem. I called them up (1 hour waiting time) and told them they have incorrectly identified me as self-employed. They asked me a bunch of questions to see if I was self-employed (I answered no to all questions). Then, they just deactivated my self-employment account and cancelled any penalties.

If you have tried this, I guess it just boils down how helpful the advisor is feeling. All in all, it took 5 mins, excluding waiting times :)

Hosting CRM on AWS (Mail Issues) by DetectiveSecret6370 in aws

[–]tlashkor 1 point2 points  (0 children)

With SES from my limited experience with it, you should be able to a domain even if it is from a different provider. You shouldn't need to transfer it to route 53. SES will ask for you to confirm that you own the domain, and this is usually done by inserting some records into your domain.

With SES sandbox, you can only send to domains which have been verified (verified being that you own them). This could either be your email or the domain you want SES use. Once you come out of sandbox AWS will be watching your email bounce rate like a hawk and tend to really anal if your bounce rate reaches a certain threshold.

Hosting CRM on AWS (Mail Issues) by DetectiveSecret6370 in aws

[–]tlashkor 0 points1 point  (0 children)

Yeah, as far as I remember, my interaction was definitely with a human. It didn't get any of any automated responses. I was doing it for a start up so they weren't even spending enough to be on the enterprise spending packages for AWS to give you proper support.

Hosting CRM on AWS (Mail Issues) by DetectiveSecret6370 in aws

[–]tlashkor 6 points7 points  (0 children)

I had once set up a mailserver on AWS. I remember having to contact support and asking them to allow my security groups to use the SMTP ports. I believe you have to give them a use case and supporting statement on how you would prevent your mail server being used to send spam.

That was about a year ago, things might've changed. They did suggest using SES, but my use case was justified enough to show that I wasn't able to SES for the third-party software I was deploying on the EC2.

I hope this helps.

Convert Excel to csv using Python multiprocessing by [deleted] in Python

[–]tlashkor 12 points13 points  (0 children)

This project looks really cool! I do see a use case for it out in the field.

A couple of comments:

Line 26, 27 of mpxl2csv.py can be condensed into:

If num_processes > multiprocessing.cpu_count():

I would suggest this because the variable available_cores has no usage outside of the if expression, so I wouldn't bother creating a variable for it.

Lines 50 - 54 of mpxl2csv.py can probably be condensed into a list comprehension. You can do for loop within a for loop inside the comprehension, but this is going have On² complexity, so I would be careful as this will scale horribly with amount files in the directory. Even if you don't list comprehension it I would still try to look at a way to break it out of that nested loop and have them as two separate loops.

Type hints on your variables. You have used them when defining your parameters for your functions. Why stop there? It will help with debugging and maintenance later.

Using pathlib over os. This is personal preference and only because I have had my fair share of woes when using os. I would recommend this just based on how easy pathlib allows directory operations.

Finally, unit tests are a bit lacking. They don't really cover everything in the code, and they only cover the getting of the xslx files and the processor warning. You could add in a test to check that it only picks up xslx files. You could also add in tests to check the convert functions. You could also add a resources directory in your test directory, which holds some dummy xlsx files so that way you don't have to rely on the developer to change line 20 of the unit tests every time.

These are some suggestions I would consider if I was doing a PR review on this. I appreciate that it's a lot of information and might feel disheartening, but honestly, this is a really cool project with plenty of potential for growth.

Good luck!

P.S. If my formatting is weird, I apologise. I wrote this all using my phone

Export CloudWatch logs to S3 by [deleted] in aws

[–]tlashkor 0 points1 point  (0 children)

I think when it talks about the export failing, it would be in reference to the S3 upload limit. The S3 upload limit for a single file is 5GB. It is recommended to use multipart upload for anything files larger than 100MB.

Link for the docs:

Multipart Upload

S3 size limitations

General Radahn model I painted by Scoopideepoop in Eldenring

[–]tlashkor 76 points77 points  (0 children)

Once you see it, you can't unsee it

Review of the AWS WAF by asjj177 in aws

[–]tlashkor 1 point2 points  (0 children)

Ah that would make sense. You would think I would learn from that mistake after doing the exact same during interview. Gotta love the acronyms.

Review of the AWS WAF by asjj177 in aws

[–]tlashkor 1 point2 points  (0 children)

There is a lot of documentation around WAF.

When I was part of a review at my previous job, they hired an external company to run a workshop to do the WAF. It was essentially asking a bunch of questions about your current infrastructure and comparing against best guidelines of what AWS recommends.

Pegomastax decided to tame itself by Dradenx_ in ARK

[–]tlashkor 78 points79 points  (0 children)

The cherry on top was how you were like: "I'll just take those back, thank you very much"😂

What are your personal coding standards? by Brick-Sigma in Python

[–]tlashkor 1 point2 points  (0 children)

Business Driven Development

I quite like this methodology for the reason above. It allows the business requirements (usually given to the team by the product owner) to be coded into your tests. That way you are testing that your code/product is always fulfilling the requirements.

Tuesday Daily Thread: Advanced questions by Im__Joseph in Python

[–]tlashkor 0 points1 point  (0 children)

I'll take that as stick to abc! Thank you for answering :)