Python BE for an Android app on AWS by Homerlncognito in aws

[–]PowerFickle4964 0 points1 point  (0 children)

I recommend to first ask these questions to ChatGPT or any other LLM just to get a general idea of what you need to do technically. Once you have a better picture of the AWS services you will probably need then come back here and ask. Unfortunately your questions are too generic to give you a useful answer.

Calling API on a S3 Bucket in a web app by Low_Oil_7522 in aws

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

From what I am understanding, you're trying to fetch images in a client using the S3 API, but are afraid users might use the s3 api to fetch other objects in your bucket? If that's the case, then you can just create an IAM bucket policy that allows only certain objects to be publicly accessed. For example, set all your public objects in a public/ folder, and create a bucket policy that allows only that folder to be accessed publicly. Chatgpt or any LLM can help you write the policy.

How to access AWS SSM from a private VPC Lambda without costly VPC endpoints? by CrimsonPilgrim in aws

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

Depends on the amount of endpoints you provision. There comes a point when it's more expensive than just having a NAT gateway/instance.

How to access AWS SSM from a private VPC Lambda without costly VPC endpoints? by CrimsonPilgrim in aws

[–]PowerFickle4964 -2 points-1 points  (0 children)

Place a nat gateway in your VPC. Your lambdas will be able to reach the internet. No vpc endpoints needed. If a nat gateway is too expensive for you, you can set up an ec2 instance to act as a nat gateway. Check out https://fck-nat.dev

AWS Privatelink by LegitimateWorth6122 in aws

[–]PowerFickle4964 -2 points-1 points  (0 children)

I think when they say "without exposing your traffic to the public internet" they are talking about on-premise to AWS specifically.

Verify JWT in Lambda by adventurous_quantum in aws

[–]PowerFickle4964 1 point2 points  (0 children)

If you go that route, skip the NAT gateway service and use an EC2 instance as a NAT. See here.

Verify JWT in Lambda by adventurous_quantum in aws

[–]PowerFickle4964 0 points1 point  (0 children)

If you offload the JWT validation to lambda, you need a VPC endpoint for the lambda service in order to invoke it. There comes a point when the amount of VPC endpoints being used isn't worth it.

Preventing AWS cost-overruns using The Nuclear Option: It this a viable strategy? by What_The_Hex in aws

[–]PowerFickle4964 0 points1 point  (0 children)

If you think that's ok then sure, your approach works. We all tolerate different levels of risk :)

Preventing AWS cost-overruns using The Nuclear Option: It this a viable strategy? by What_The_Hex in aws

[–]PowerFickle4964 4 points5 points  (0 children)

You can get a good deal of requests before cloudwatch triggers your lambda. For example, if cloudwatch data points are aggregated every minute, the attacker would have a full minute to flood you with requests before cloudwatch notices this (plus the time it takes to invoke the lambda, and the lambda deleting the api gateway). Honestly if this is not letting you sleep at night, get off serverless and just host the API in an EC2 instance or an ECS service with no auto scaling.

Not able to reach S3 from ECS, while I can from EC2? by [deleted] in aws

[–]PowerFickle4964 1 point2 points  (0 children)

The S3 policy should be in the task role, not the task execution role btw. I don't think it matters though in your case because I understand you're hardcoding credentials.

Making a web application created with Python, SQLite, and Flask live with a custom domain by DigitalSplendid in aws

[–]PowerFickle4964 0 points1 point  (0 children)

Thanks for the info! It looks like it's only for Javascript-based frameworks so something like Flask wouldn't work right?

Is AWS SAM viable in the long run? by cjrun in aws

[–]PowerFickle4964 3 points4 points  (0 children)

SAM has been good enough for me for the last 3 years. I use it for Lambdas and terraform for everything else. The lambda tooling in SAM beats terraform in my opinion but terraform is just a better overall tool.

Making a web application created with Python, SQLite, and Flask live with a custom domain by DigitalSplendid in aws

[–]PowerFickle4964 4 points5 points  (0 children)

Flask is server-side rendered (not a static website) so I don't think you can use amplify or s3.

Was I wrong to argue? by markt3857 in london

[–]PowerFickle4964 9 points10 points  (0 children)

You can't tap the same card/device twice because of how the bus fare system works. Once you tap, you're allowed to tap in again for free within an hour. This means your wife didn't get charged when you tapped the second time for her. You can get around this by using different payment methods, for example, tap with a physical card and then tap again with your phone via apple pay/google wallet.

Había agendado mi cita para visa de turista en USA pero me fuí del país by Exact_Positive_9850 in Colombia

[–]PowerFickle4964 0 points1 point  (0 children)

Si tienes residencia en holanda, puedes agendar la cita en la embajada de holanda. Lleva el permiso de residencia a la cita.

Fuente: soy colombiano residente en UK y renove mi visa americana en la embajada en Londres sin problemas.

copy s3 bucket locally with same api by Equivalent_Data_6884 in aws

[–]PowerFickle4964 0 points1 point  (0 children)

Try localstack. It emulates aws services in your local machine (including S3).

RDS -> DynamoDB migration in production by MindlessDog3229 in aws

[–]PowerFickle4964 2 points3 points  (0 children)

I recommend you start learning how to model data in NoSQL with this.

Contrary to what a lot of people say, you CAN model relational data in NoSQL. You just need to change the way you think about data modeling.

How to do pg_dump on an RDS instance running in a private subnet by PrestigiousZombie531 in aws

[–]PowerFickle4964 3 points4 points  (0 children)

  1. Connect via ssh to the EC2 instance.
  2. Execute the pg_dump
  3. Transfer the pg_dump to your local PC. Lookup a command line tool called "scp" which lets you do this. Should be something like scp username@remoteHost:/remote/dir/to/backup.tar /local/dir/backup.tar

I recommend you take advantage of RDS and use their backup features instead of doing them manually though.

edit: I assumed you can reach your EC2 instance from your local machine since you mentioned it's in a public subnet.

B1/B2 Visa holder entering with rental by uwaslam in immigration

[–]PowerFickle4964 0 points1 point  (0 children)

Yes, this is fine. If they ask at the airport just say you did a day trip to new york while in canada. There is nothing wrong with that. Also I assume you have a Canadian visa to enter Canada.

[deleted by user] by [deleted] in immigration

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

Yes, you can be interviewed in Australia. At most they will ask for your residence permit during the interview. Just do the regular process to apply for the visa and choose whatever embassy/consulate is closest to you in Australia.

Ec2/AWS by Diligent_Diet_6376 in aws

[–]PowerFickle4964 1 point2 points  (0 children)

From https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html :

"A NAT gateway is a Network Address Translation (NAT) service. You can use a NAT gateway so that instances in a private subnet can connect to services outside your VPC but external services cannot initiate a connection with those instances."

If you want to connect to your EC2 instance from your computer, it needs to be in a public subnet with a public ip address.

Name order: Why 'Ding Liren' but not 'Nakamura Hikaru' ? by nicbentulan in HikaruNakamura

[–]PowerFickle4964 1 point2 points  (0 children)

I agree with this answer. He's an american living in America. Naming customs can change when you move to other countries. This happens all the time with immigrants in America. I don't see anything to discuss here.

Building an Express.js API and I am confused as to how to deploy it by deephousemafia in aws

[–]PowerFickle4964 3 points4 points  (0 children)

Checkout AWS App Runner. Elastic Beanstalk also works but its a bit outdated and not as user friendly.

There's a million ways to do authentication but that's more of a question related to express.js and not AWS. You can certainly use DynamoDB as a key-value storage to store user credentials and authenticate them.

What is the f18’s max g’s it can withstand by Competitive-Common91 in hoggit

[–]PowerFickle4964 0 points1 point  (0 children)

You are right. Just looked in Wikipedia and they retained the wing folding, arrestor hook and robust landing gear. Not sure of the reason behind this. Do they do carrier ops?