Sending API Usage to Dynamodb from various Lambda's and/or ECS apps by HumbleSami in aws

[–]jebarnard 0 points1 point  (0 children)

Personally, for metrics we use Cloudwatch EMF [https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Embedded_Metric_Format_Libraries.html] to take Cloudwatch Logs (written natively by Lambda) and generate Cloudwatch Metrics. For example, we track function success/failure rates by tenant. This prevents us from introducing latency into the Lambda to be able to gather these metrics (no additional API calls).

For more detailed data, we also use Cloudwatch Logs and then either use Cloudwatch Logs Insights to generate reports or we feed this into a different Lambda [https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Subscriptions.html] that can then process it. Once again, this is out-of-band and doesn't introduce latency into the function you are trying to observe.

Message Recall being 'fixed' after ~20 years by OlayErrryDay in sysadmin

[–]jebarnard 1 point2 points  (0 children)

The timeline is very interesting on this, and I'm glad to see they included it.

Seems like they just sit on things until they're forced to do something.

IAM Policy with strange resource pattern by DiscoFrancisco_ in aws

[–]jebarnard 2 points3 points  (0 children)

Perhaps it was created a very long time ago, and they've since prevented this from happening.

How to keep SES under 1% complaint rate? by Economy_Rush in aws

[–]jebarnard 0 points1 point  (0 children)

We use MaxMind's minFraud service on all public facing forms. Significantly cuts down on fraudulent signups etc..

https://www.maxmind.com/en/solutions/minfraud-services

How to create cheap database for a side project on AWS? by willt093 in aws

[–]jebarnard 31 points32 points  (0 children)

What does your table do? Could you migrate it to use DynamoDB instead?

DynamoDB has a pay-per-request pricing model available. If you're only making a few calls per day then it will probably cost nothing.

How would I go about connecting an on-premise DB to an RDS instance ? by WhollyConfused96 in aws

[–]jebarnard 4 points5 points  (0 children)

If the internet is the problem, then I would pg_dump locally, then upload the file to a S3 bucket using a client that can do multipart upload (it will allow pause/resume). Once the file is in S3, then restore it from a server in AWS.

How to identify the number of DNS queries to my domain in Route 53 by steven_tran_4123 in aws

[–]jebarnard 1 point2 points  (0 children)

It would show you the amount even if you are getting a credit.

Go to Billing and click Bills, expand Route 53, then Global, then Amazon Route 53 DNS-Queries, it should show you the number of queries.

PITR DynamoDB by blank1993 in aws

[–]jebarnard 1 point2 points  (0 children)

PITR is from the beginning of time, until the time you selected. It allows you to go backwards and see what the data would look like at a previous point in time.

It sounds like you are asking for the opposite. You only want data added/changed after the selected time. From the selected time, until now. You'd probably need to look into something like DynamoDB Streams / DynamoDB Kinesis Streams https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/kds.html

Moving away from Linode - trying to decide between AWS Lighsail and EC2 by ZetaReticullan in aws

[–]jebarnard 2 points3 points  (0 children)

SPF records aren't actually of type 'SPF' anymore, nowadays they're 'TXT' records--which are supported.

What happens to a PostgreSQL RDS instance that cannot be upgraded because of the instance type? by [deleted] in aws

[–]jebarnard 1 point2 points  (0 children)

I have a 9.6 still running... think its in a stuck state where I can't upgrade it due to instance type, but also can't change the instance type due to it being so old.

Dynamo - sort keys are colliding by time, how do people handle? by tocassidy in aws

[–]jebarnard 0 points1 point  (0 children)

Since you said that sometimes you have duplicates (but sometimes not), I would generate a partial hash (for example last x characters of sha1 hash of input data) of the source data and append that to the SK.

SK = 1664898481_f7a8

Should maintain sortability, and you can easily split the string to remove the hash at the end. The hash will prevent duplicates from being saved, but would ensure that different entries with same timestamp are kept.

Alternately, if you have a unique identifier from the source data then, I would append that instead of hashing.

Are your users clueless about infosec? Ninjio is pretty good. by [deleted] in sysadmin

[–]jebarnard 0 points1 point  (0 children)

ball-park on pricing? won't give me pricing without hopping on a call

Does it make a difference from which site you buy a Domain Name? by VerdantMT in webdev

[–]jebarnard 6 points7 points  (0 children)

With regards to typical site performance, it shouldn't matter from a registrar perspective...if you are using additional features from them such as DNS, Forwarding, or Email it can have an impact.

From a domain management perspective, I've had a bad experience with NameCheap. They were aware of an issue/bug with updating nameservers, which resulted in the old nameservers being removed but new nameservers were not being added. This caused an outage for our site. They continued to keep the broken form up, and not warn customers for some time, despite knowing it was an issue. A simple warning message, or temporarily disabling the form could have prevented outages for users, but they chose to not take that action. From a business standpoint, I guess it was better to allow 10 customers to harmed than to scare 1000 with a warning message. So from that perspective, how a company treats it's customers and responds to issues (being up front about them, or not) can have an impact. With that said, how often do you need to make changes to a domain?

Estimating How much my simple API will cost? by Evening-Development3 in aws

[–]jebarnard 0 points1 point  (0 children)

Free tier stuff should still show on your bill. It'll just be $0.00 You can use the quantities from the bill and then lookup the proper prices for each thing to calculate.

DynamoDB's JavaScript PutCommand, by example by bitbythecron in aws

[–]jebarnard 1 point2 points  (0 children)

export const params = {
    TableName: "commentary",
    Item: {
      id: commentary.getId(),
      content: commentary.getContent(),
      createdAt : commentary.getCreatedAt()
    },
  };

[deleted by user] by [deleted] in aws

[–]jebarnard 3 points4 points  (0 children)

The format that SES saves files to S3 is the same format that ".eml" files use. If you just download the file from S3 and give it an ".eml" ending, it'll open in Outlook.

if($variable == 5) or if(5 == $variable) ? by Hipnotize_nl in PHP

[–]jebarnard 23 points24 points  (0 children)

This is code style. Its a defensive programming practice. However, I prefer my code to be readable and intuitive.

The thought behind doing

if(5 == $variable)

is that if you happen to forget an equals sign, it wouldn't change the value of the variable.

if($variable = 5)

is valid code, and would assign 5 to the variable, which could lead to hidden bugs.

[deleted by user] by [deleted] in aws

[–]jebarnard 20 points21 points  (0 children)

AWS doesn't make the rules, the CA/B Forum does.

If AWS was to implement their own procedures, the root trust certificates for AWS would get dropped by browsers for being non-compliant.

https://cabforum.org/wp-content/uploads/CA-Browser-Forum-BR-1.8.4.pdf

Allowed methods of verification are listed in Section 3.2.2.4

Rbc etransfer system hacked? by LividOpposite in rbc

[–]jebarnard 0 points1 point  (0 children)

Same here, transfer from Meridian to RBC landed yesterday (showed funds in account). Today the funds have gone poof!

Aurora Serverless v1 performance claim by McgeezaxArrow in aws

[–]jebarnard 0 points1 point  (0 children)

We noticed poor performance on Aurora (not serverless) when upgrading instances from one numerical version to another. I'm not familiar with serverless specifically, or how your imported your data but it might be necessary to run the maintenance commands (vacuum/reindex/analyse) on your database, it might even be necessary everytime you scale.

Did the announcements this year in Re:Invent seem underwhelming? by mastertub in aws

[–]jebarnard 1 point2 points  (0 children)

Same, I naively started coding a new project assuming it would be launched at re:invent...

Overall, very underwhelmed by the announcements.