Questions tagged [amazon-web-services]

Amazon Web Services (AWS) is a cloud service that offers IaaS (Infrastructure as a Service) and SaaS (Software as a Service) solutions. Only questions about programming in relation to AWS are on-topic. General server help can be obtained at https://serverfault.com. The AWS tag is rarely used alone and will usually be used with other tags to more clearly define the topic of the question.

If you need help setting up AWS resources, ask those questions on Server Fault.

AWS is a cloud service that offers IaaS (Infrastructure as a Service) and SaaS (Software as a Service).

SDKs to access and manage Amazon Web Services are provided in a multitude of programming languages, including PHP, Java, .NET, Node.js, Python, and more. The services are also accessible through REST and SOAP APIs, a command-line interface, and a web console.

Resources:

Related Tags

154810 questions
28
votes
2 answers

AWS Load Balancer 502

I have microservices(in different programming languages) running on an EC2 instance. On production I notice a few 502 Bad Gateway Errors when these services try to interact with each other. Also in the logs of the requested service it doesn't show…
28
votes
5 answers

InvalidInstanceId: An error occurred (InvalidInstanceId) when calling the SendCommand operation

The below is the code which i am running from python to execute commands in aws ec2 instance import boto3 ec2 = boto3.client('ssm',region_name='us-east-1',aws_access_key_id='xxxxxxxxxxxxxxx',aws_secret_access_key='xxxxxxxxx') a =…
Teja
  • 837
  • 3
  • 14
  • 24
28
votes
7 answers

How to download the latest file of an S3 bucket using Boto3?

The other questions I could find were refering to an older version of Boto. I would like to download the latest file of an S3 bucket. In the documentation I found that there is a method list_object_versions() that gets you a boolean IsLatest.…
jz22
  • 2,328
  • 5
  • 31
  • 50
28
votes
7 answers

Assumed role in AWS Lambda, access denied on SSM call

I'm getting an error in my Lambda function, which calls SSM: AccessDeniedException: User: arn:aws:sts::redacted:assumed-role/LambdaBackend_master_lambda/SpikeLambda is not authorized to perform: ssm:GetParameter on resource:…
Oli
  • 582
  • 1
  • 6
  • 18
28
votes
4 answers

How to add SQS message attributes in SNS subscription?

The documentation for AWS SNS and SQS have sections about message attributes. But there is no explanation how to have SQS message attributes when that queue is subscribed to a SNS topic. Is there a way to configure AWS SNS to add particular message…
Evgeny
  • 6,533
  • 5
  • 58
  • 64
28
votes
4 answers

How to zip files in Amazon s3 Bucket and get its URL

I have a bunch of files inside Amazon s3 bucket, I want to zip those file and download get the contents via S3 URL using Java Spring.
jeff ayan
  • 819
  • 1
  • 13
  • 16
28
votes
12 answers

Pagination in DynamoDB using Node.js?

I've had a read through AWS's docs around pagination: As their docs specify: In a response, DynamoDB returns all the matching results within the scope of the Limit value. For example, if you issue a Query or a Scan request with a Limit value of 6…
user2061811
  • 315
  • 1
  • 4
  • 10
28
votes
2 answers

AWS Cognito: Difference between Cognito ID and sub, what should I use as primary key?

Im building a serverless backend using AWS Cognito for user administration. Cognito uses both cognitoId and sub to identify a user. This project from the official awslabs uses the cognitoId as primary key in the database tables to link data to a…
Vingtoft
  • 13,368
  • 23
  • 86
  • 135
28
votes
2 answers

Resize images on the fly in CloudFront and get them in the same URL instantly: AWS CloudFront -> S3 -> Lambda -> CloudFront

TLDR: We have to trick CloudFront 307 redirect caching by creating new cache behavior for responses coming from our Lambda function. You will not believe how close we are to achieve this. We have stucked so badly in the last step. Business case: Our…
28
votes
2 answers

Ec2 1/2 checks passed

Since today i can't access my instance, i tried stop and restart several times but the status is always : "1/2 checks passed" I tried to create a snapshot, detach and reattach new volume but the result is the same. I also tried to create another…
TheShun
  • 1,128
  • 6
  • 15
  • 21
28
votes
3 answers

Azure Service Bus equivalent for AWS

I am in the process of moving an application from c# to node.js. I am a node.js newbie, coming from a .net background. I am looking to incorporate domain driven design patterns into the app. development which led me to the concept of bounded…
user1790300
  • 2,143
  • 10
  • 54
  • 123
28
votes
2 answers

AWS API Gateway + Elastic Beanstalk and Microservices

I'm going to build microservices' architecture on AWS and I want to ask you to clarify my doubts. My current general concept I would like to use API Gateway, which exposes microsevices' APIs running in Elastic Beanstalk. I would like to place the…
28
votes
4 answers

AWS SQS not receiving SNS messages

I created a SNS topic that publishes all the information coming out of Cloudformation via the cli. However, when I check the queue, it is not receiving any of the SNS messages. I verified the SNS is working by subscribing my email to it, so the…
asdf
  • 2,927
  • 2
  • 21
  • 42
28
votes
3 answers

How to send an SMS with custom sender ID with Amazon SNS and Python and boto3

The documentation suggests to use message attributes for that but I can't seem to figure out what attribute name to use. This works so far: sns = boto3.client('sns', region_name='eu-west-1') sns.publish( PhoneNumber='+491701234567', Message='hi…
tgal
  • 381
  • 1
  • 3
  • 4
28
votes
1 answer

What Port Does AWS S3 Use?

I have a question because of error which I Faced due to configs some other person made in aws : Short Question is what port Does AWS S3 use to communicate to ec2-instance ?
Kush Vyas
  • 5,813
  • 2
  • 26
  • 36