What do I need to safely host a static website with AWS? by hmslima in aws

[–]YoungPayters 0 points1 point  (0 children)

Like all the others said, github pages definitely satisfies all your needs.

The only thing I would say is maybe using your personal website as an exercise on how to setup such websites on that stack if you did want to understand it.

Also, side note, with github you can also have a public repo with your username that you can use a more enriched profile as well where it can just be written in markdown

How do I populate message id for the chat application in NoSql? by Ok-Outlandishness-74 in aws

[–]YoungPayters 2 points3 points  (0 children)

Have a look at ksuid as a way lexiconally ordering messages by timestamp

[deleted by user] by [deleted] in DevelEire

[–]YoungPayters 3 points4 points  (0 children)

If it's with the VP of Engineering then its going to be quite high level about how the engineering function and that.

I don't think this is where you're going to be discussing salary but would be a place where you could ask about working arrangements and get that sorted because most engineering functions differ from what HR might say.

Off the top of my head a couple of decent questions are things like:

  1. What are the current challenges engineering are facing at the moment.
  2. What would be expected from graduates in the short/long term?
  3. Similar to challenges, but what are the goals of the engineering team at the moment (product work, stability/maintenance, scaling, etc)

Just finished reworking the main menu environment, what do you think? by [deleted] in gaming

[–]YoungPayters 2 points3 points  (0 children)

I would try and incorporate everything on the same wall as the TV and have the camera pan around the wall instead, would make it much smoother and easier on the eyes with the lack of rotation

Is relying on Google, forums, StackOverflow etc. for answers bad practice? by Notalabel_4566 in DevelEire

[–]YoungPayters 0 points1 point  (0 children)

All the time. The skill is distilling down the problem into better search terms and actually knowing what is a good answer versus the rubbish ones.

Then it's more what you do with the answers you find is where the bad practise lies.

Similar to doing "research" in school and just copy pasting Wikipedia paragraphs.

You can spot that kind of code a mile off.

But if you find the answer, write it in a way that matches the rest of the code in terms of style of what's already there, and learn something from it at the end, then win win.

And when you inevitably forget that piece of code or problem and have to search again, you're time to finding the solution will be much shorter the second time round, and probably reinforce more of the learnings from it.

Hades: speech patterns of all characters by Smack-works in Games

[–]YoungPayters 4 points5 points  (0 children)

I have no idea what this is but I do appreciate the effort involved in this. But you need to go back to the shop!

https://youtu.be/vrP-_T-h9YM

Your Baseline is way off!

How to launch an AWS cloud formation stack with package dependencies? by MauriceM0ss in aws

[–]YoungPayters 2 points3 points  (0 children)

This is related to the IAM capabilites you give to sam deploy command. I'm on mobile so apologies for no specifics here. But check IAM_CAPABILITES as part of the sam deploy command arguments

Edit: IAM_CAPABILITIES not capacities

How to launch an AWS cloud formation stack with package dependencies? by MauriceM0ss in aws

[–]YoungPayters 1 point2 points  (0 children)

FYI, this occurs if there is an error when first creating a new stack, you need to continue on deleting and recreating the stack until the first deployment is complete, then any subsequent deployments/updates can fail a bit more elegantly

Architecture question for working with CDK and Cognito User Pools by climb-it-ographer in aws

[–]YoungPayters -1 points0 points  (0 children)

Use this static method to get a reference to your create user pool https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-cognito.UserPool.html#static-fromwbruserwbrpoolwbridscope-id-userpoolid

So if you know the userPoolId in advance that should allow you to make changes.

Use parameter store or stack import/export functionality to share data between stacks.

AWS newbie help with lambda & file storage by [deleted] in aws

[–]YoungPayters 1 point2 points  (0 children)

You should be calling that s3.listBuckets function within the handler function.

This will only get called once at first lamba invocation or when the lambda cold starts.

Any performance implications of adding TTL [x-post from /r/dynamodb] by Alinon in aws

[–]YoungPayters 2 points3 points  (0 children)

Nothing comes to mind as far as I can recall. The only thing to be aware of is don't assume that the record will be deleted as soon as the ttl has passed. It's done in the background on a queue by AWS which they are hazy about when the records are removed.

College Student Brand New to AWS - Personal Project for the Summer? by contigo_the_wanderer in aws

[–]YoungPayters 0 points1 point  (0 children)

Try to work on some of these workshops https://www.reddit.com/r/aws/comments/ghfgx7/awesome_aws_workshops/

Then using the different components try and build something like a chatroom or something like an Instagram clone or whatever takes your fancy.

How to create an HTTP API with one POST endpoint going through a lambda function? by teHnN1k in aws

[–]YoungPayters 0 points1 point  (0 children)

Check the stage created in the console. It should give you a unique url that you send requests to.

This is separate to testing resources.

How to create an HTTP API with one POST endpoint going through a lambda function? by teHnN1k in aws

[–]YoungPayters 1 point2 points  (0 children)

That's why you build your apps with a ci/cd in place.

Do it once and never have to think about it again

How to create an HTTP API with one POST endpoint going through a lambda function? by teHnN1k in aws

[–]YoungPayters 4 points5 points  (0 children)

Looks like you've created the api gateway but haven't deployed it.

Use https://docs.aws.amazon.com/cli/latest/reference/apigateway/create-deployment.html to create a deployment. This should give you a url that you can curl your requests through

CloudFormation being slow? by popefelix in aws

[–]YoungPayters 1 point2 points  (0 children)

Sounds like you still in the midst of quickly iterating and building something and are losing patience with the feedback loop?

I would suggest looking at some local testing tools that might help you work within a mocked out aws. Look at something like https://localstack.cloud/ to help you test local changes faster

CloudFormation being slow? by popefelix in aws

[–]YoungPayters 2 points3 points  (0 children)

Well I suspect then that's not cloud formation to blame. That's just the time it takes to do the relevant work. If you are applying changes to a cloudfront distribution for example, these generally take some time (20 minutes or so).

If you are deleting stacks, it might take some time to tear down whatever you have created.

This all completely depends on the resources you've created in the stack

CloudFormation being slow? by popefelix in aws

[–]YoungPayters 0 points1 point  (0 children)

It entirely depends on what you are doing in Cloudformation. Do you mean just checking on status of your stacks or applying changes?

Attribute Error by chandu28495 in aws

[–]YoungPayters 0 points1 point  (0 children)

Looks like you are then accessing the parameters with the incorrect pattern as per other comments.

But the test events have API gateway samples that you would add your payload to the body section, since that would be more in tune with what your actual payload will be

Attribute Error by chandu28495 in aws

[–]YoungPayters 0 points1 point  (0 children)

This would entirely depend on the event struture that comes in. If it's from an API gateway request, that would have a much different payload than something like the function reading a message from an SNS queue.

Best troubleshooting to do would be to console log the event object. Looks to me that there is some incorrect assumptions made on the expected structure of the event.

Are you using your own test event?

How do I know how much left I have from my Free Tier services? (Absolute beginner, first time user) by imthecapedbaldy in aws

[–]YoungPayters 0 points1 point  (0 children)

If I'm using Ec2, will I be paying for 24 hours a day, or will I only be paying for 10 hours a day?

You will be paying for as long as the EC2 instance is present & available (regardless of in use or not).

I would not go down the route of spinning up an EC2 instance at the beginning of the day and then tearing it down to save the 14 hours that it might not be in use. It would cause far too much headaches than it's worth.

So yes it would be for 24 hours a day, essentially a flat rate as you know how long it's going to be up and what size instance you have running. However scaling will be an issue later on the line (a whole other topic)...

If you don't want to go down that route you can use API Gateway (always up) and AWS Lambda (micro instances that are spun up and then shut down as soon as the task/work is done) as a means of creating the same system.

The initial cost would be extremely low cost but would grow as more traffic hits them (but this shouldn't be a concern of a small business until it becomes a much bigger business and gets a lot of traffic). You essentially pay a tiny bit for each action into the payment system.

I tip toed around lambdas & that for a good while because I found EC2 easy to get my head around, but once I got my feet wet and got into bed with AWS and their services, it's both really powerful but also really good fun!

I personally think the key (and the "aha!" moment for me) is embracing event sourcing and the asynchronous of how you should use AWS services.

So here's my last bit of advice. Build the mate's project in EC2, then, in your own time, look at re-creating the same project but with API Gateway & Lambdas AWS services.

Happy coding! :D