159,136 questions
0
votes
0
answers
20
views
How to identify which is used as a sign-in attribute, email or phone number in Cognito?
Assume you selected Email and Phone number but not Username as Options for sign-in identifiers when creating a Cognito userpool.
When a user has both of a verified email and a verified phone number, ...
0
votes
0
answers
17
views
AWS Amplify keeps clearing my session tokes from localStorace after a network droput
I'm a bit frustrated with AWS Amplify, what seems like a basic feature of maintaining sessions is seems to fail if the network drops.
Here is my Cogntio CDK setup, the refreshTokenValidity is set to ...
1
vote
1
answer
56
views
ECS Fargate Task performance worsened after re-deploying same task definition
We have an ecs service that uses Fargate tasks to connect to dynamoDB.
The application has an optimized fetch time under 100ms when querying dynamoDB tables in our testing environment.
For some R&...
0
votes
1
answer
21
views
Why does CopyObject fail with "Header 'x-amz-tagging-directive' with value 'REPLACE' not implemented" for Cloudflare R2?
I'm trying to rename an object in an S3-compatible storage by copying it to a new key and then deleting the old one in Cloudflare R2. I'm using AWSSDK.S3 (4.0.13.1)
private (bool success, string ...
12
votes
5
answers
10k
views
Website hosted on S3 just downloads a blank file?
I have an extremely simple website, literally just an HTML file with some text in it. I configured my bucket for hosting and set the homepage to index.html. I set the permissions per the AWS tutorial ...
0
votes
2
answers
2k
views
Lightsail instance works when you hit http://[domain].com, but not www.[domain].com, using Route 53 as DNS [closed]
I'm pretty new to DNS and this is the first time trying to connect a domain name to an IP, so I'm not sure what I'm missing here. I tried connecting both the www and non www NS records to the ...
0
votes
1
answer
22
views
New EC2 Instance Returning "Failed to connect to your instance Error establishing SSH connection to your instance."
Background:
Other EC2 instances are working just fine. The instance itself is up and running.
I set up a new subnet for Miami as I needed to run tests from that location.
I launched a Miami instance ...
4
votes
1
answer
1k
views
What is the use of EC2 instance store if it only provides temporary storage? [closed]
I am new to AWS and trying to understand the difference between instance store and EBS. Reading this page, it says:
The data on an instance store volume persists only during the life of the ...
-3
votes
0
answers
28
views
AWS ECS + NLB deployment: LiveKit AI voice agent works locally but voice/websockets fail in production
I’ve built an AI voice agent that connects with a student in real-time. Here’s the setup:
The student asks questions via the frontend.
The agent follows predefined instructions and responds using ...
0
votes
1
answer
17
views
AWS Cognito custom domain fails to create — "Invalid request provided: AWS::Cognito::UserPoolDomain"
I'm creating an Amazon Cognito user pool with a custom user pool domain using AWS CDK.
My setup:
A parent domain (mycompany.app)
A delegated subdomain (education.mycompany.app) created as a separate ...
0
votes
1
answer
747
views
How can I run an HTML/CSS/Javascript site on AWS Lambda/API Gateway without using AWS Amplify?
Sorry if this is a silly question since I know that AWS has an article on how to do this with AWS Amplify: here
But I want to do this work with AWS SAM and it seems AWS SAM doesn't support many ...
1
vote
1
answer
776
views
Why is AWS Glue job creating parition file names with 'unnamed' included in the file's name?
We are using an AWS Glue job to load and de-dupe data and we are making a change to no longer use the crawler to determine schema meta data - we are now explicitly defining it.
As a result, we are ...
0
votes
0
answers
29
views
Next.js + AWS Amplify Middleware not redirecting after first login until refresh
I am working on a project using Next.js (App Router) and AWS Amplify Auth. I have implemented middleware to restrict access and redirect users based on a custom Cognito attribute (custom:...
1
vote
1
answer
87
views
Can this PHP code of getting a PDF from S3, using Ghostscript to convert it to a PNG and displaying it be better written?
I am currently using the following code to pull a PDF from S3, using Ghostscript to convert the pages to PNG images, then display them in the browser. It works fine, but is it possible to write it ...
0
votes
1
answer
174
views
SSH disconnecting and not wanting to reconnect to Amazon EC2 instance (Macbook)
I have tried multiple instances, have spent all day going through different ways to fix this, but each time I connect via ssh from my macbook to one of my amazon EC2 instances they only work once.
I ...
0
votes
0
answers
29
views
AWS SageMaker PyTorch Model Deployment - is entry_point needed?
I'm trying to deploy a pre-trained PyTorch model to SageMaker using the Python SDK. I have a model.tar.gz file that is uploaded to S3, with the following structure:
code/
code/requirements.txt
code/...
-4
votes
0
answers
94
views
Access to this model is not available for channel program accounts. Claude Sonnet 4.5 Model [closed]
I am trying to invoke AWS Bedrock Claude Sonnet 4.5 model. I am getting below error botocore.errorfactory.ValidationException: An error occurred (ValidationException) when calling the InvokeModel ...
2
votes
2
answers
11k
views
running a spark submit job as cluster deploy mode fails but passes with client
EDITI: by removing the conf setting in the app for 'setMaster' I'm able to run yarn-cluster successfully - if anyone coudl help with spark master as cluster deploy - that'd be fantastic
I'm trying to ...
2
votes
1
answer
2k
views
CloudFormation AWS::EC2::Route
In CloudFormation, do you need to drag and drop one Route object per every single route that you need to define inside a RouteTable?
Or can I just add more DestinationCidrBlock on the same Route?
AWS::...
0
votes
1
answer
3k
views
AWS EC2 Local Storage Volumes/nvme volume
I am using "m5d.8xlarge" ec2 instance, which comes ready with 2*600G SSD Volumes, directly attached. They are appearing on the OS, however no mention on the console, as I can't retrieve any ...
-1
votes
0
answers
46
views
Nodemailer 7 + AWS SESv2 + TypeScript: TS2769 "SES does not exist in type TransportOptions"
I'm trying to send emails using Nodemailer 7.0.11 with AWS SESv2 and TypeScript, but I'm running into this compile error when creating the transporter:
No overload matches this call.
The last ...
Best practices
0
votes
3
replies
103
views
Best way to structure solution on AWS
Let's say there's a VM on AWS that is being used to host multiple instances of the same web app.
The web app has a React front end and an ASP.NET Core backend, and the VM runs IIS.
Each instance of ...
-4
votes
1
answer
52
views
Can we achieve assigning roles and listing for multiple accounts using Native Terraform approach for AWS which is suitable for dyanmic too?
using Management account first i need to list all child accounts and i need to create an IAM role and IAM Trust policy with read only access to all child accounts through terraform and all the read ...
15
votes
6
answers
32k
views
How to setup health check page in django [closed]
I have a webapp which required authentication to access any page of it. But for my ELB to work I have to setup health-check page for ELB so that ELB discover django app.
This page should return HTTP ...
Advice
0
votes
0
replies
40
views
Store AD credentials in AWS and rotate automatically
I deployed a Windows AD server on an EC2 instance in AWS. I have created a user called "tesla" in the AD. How can I store this user's credentials in AWS and rotate the password automatically?...
41
votes
9
answers
60k
views
Need to run a aws lambda function which takes more than 15 minutes to complete?
My Lambda function has limit 15 minutes which was 5 minutes ealier.Lambda process is automatically terminated after 15 minutes but my process takes more than 15 minutes. How I can manage ?
0
votes
0
answers
17
views
AWS MNG launch template cannot dynamically resolve AMI
I'm trying to use Kubernetes cluster-autoscaler in EKS, and I'd like to ensure fresh nodes are always created with the latest recommended AMI (so that OS patches don't have to wait for a manual CI/CD ...
-1
votes
0
answers
36
views
Why is AWS service connect idleTimeoutSeconds 0 when it was not set in terraform? [closed]
Our terraform for AWS service connect timeout looks like
timeout = {
per_request_timeout_seconds = 60
}
After the above code is run and I check the actual value using aws ecs describe-services the ...
2
votes
2
answers
3k
views
nvm is not compatible with the npm config "prefix" option: currently set to "" Run `nvm use --delete-prefix v18.1.0` to unset it
I am using ssh to connect Github with AWS EC2 and I am trying to install the node so I can run my server in VM. but it is showing me an error says
"nvm is not compatible with the npm config &...
140
votes
9
answers
180k
views
Amazon products API - Looking for basic overview and information [closed]
After using the ebay API recently, I was expecting it to be as simple to request info from Amazon, but it seems not...
There does not seem to be a good webpage which explains the basics. For starters,...
138
votes
12
answers
157k
views
MySQL/Amazon RDS error: "you do not have SUPER privileges..."
I'm attempting to copy my mysql database from an Amazon EC2 to an RDS:
I successfully did a mysqldump of my database into my root folder using this:
root@ip-xx-xx-xx-xx:~# mysqldump my_database -u ...
0
votes
2
answers
53
views
AWS CloudWatch -> Firehose/Lambda -> Splunk flow -- lambda response too large
Given a CloudWatch -> Firehose -> Splunk flow, where Firehose passes incoming log records to a lambda, often the return from the lambda is larger than the allowed 6MB.
I've captured the payload ...
2
votes
1
answer
3k
views
When using Iceberg with EMR 7.0.0 with s3 I got awssdk SdkClientException: Timeout waiting for connection from pool
I recently switched EMR to the label 7.0.0. Part of my workload is doing some updates to big Iceberg tables using pyspark. I moved all my s3 paths to the s3 schema instead of s3a as suggested here.
...
2
votes
1
answer
200
views
Trying to run opensearch and opensearch Dashboard but facing login issue [closed]
I am trying to run opensearch and opensearch Dashboard on local using docker
but i am facing login issue in opensource dashboard
"Invalid username or password. Please try again."
i am using ...
155
votes
4
answers
115k
views
Difference between DynamoDb PutItem vs UpdateItem?
Based on DynamoDb documentation why would anyone use updateItem instead of putItem?
PutItem - Writes a single item to a table. If an item with the same primary key exists in the table, the operation ...
-1
votes
0
answers
111
views
Why does this error occur and how to resolve it
Error message
Error: listing tags for S3 Control Access Point (arn:aws:s3-outposts:ap-southeast-1:xxxxxxx:outpost/xxxxxx/accesspoint/xxxxx): operation error S3 Control: ListTagsForResource, https ...
5
votes
1
answer
2k
views
EC2 ping not working after moving to IPv6
I reconfigured my vpc and subnet to provide ipv6 address. I got a new ipv6 address assigned to my ec2 instance. But now ping6 to any ipv6 address like 2a03:2880:f11c:8183:face:b00c::25de from ec2 ...
0
votes
0
answers
33
views
EKS SignalR Hub - ALB Connection Handling Issue
SignalR hub running as an EKS pod handles 700 VUs via ALB but fails at 720+, yet successfully handles 1000 VUs via kubectl port-forward with 85% free CPU and 43% free memory. This confirms the ...
Advice
0
votes
2
replies
34
views
How do I easily sync AWS Cognito members with Azure AD?
I have this Cognito group tied to its corresponding AD group, with lots of old members who don't even have access anymore because they were removed from AD. I'd really like to clean that up.
I think I ...
-3
votes
1
answer
48
views
Unable to update AWS Lambda because function execution role doesn’t have permission [closed]
I've created a function that has been working using Python 3.9 but I want to update to Python 3.14.
I've logged into AWS using the "root" account but when I try to update the function's ...
0
votes
1
answer
255
views
Artifacts Migration from GCP non-China to AWS China region [closed]
I need to transfer my artifacts (zips and container images) stored in GCP us-west1 region on Cloud Storage and container registry to AWS China region S3 bucket and ECR.
Solution I found shows transfer ...
2
votes
2
answers
14k
views
How to perform a range query over AWS dynamoDB
I have a AWS DynamoDB table storing books information, the hash key is book id. There is an attribute for book price.
Now I want to perform a query to return all the books whose price is lower than a ...
0
votes
1
answer
1k
views
VSCode Remote-SSH with AWS Session Manager and AWS SSO (CLI): Permission denied (public key)
I'm trying to access a private EC2 instance from a local Visual Studio Code IDE with Session Manager and AWS SSO (CLI). I have the following in ~/.ssh/config:
Host i-0dXXXXXXXXXX
User ubuntu
...
1
vote
2
answers
163
views
EKS cluster with managed nodegroups in private subnets fail with ‘Instances failed to join the Kubernetes cluster’
I successfully created an EKS cluster with managed node groups in private subnets using CloudShell and the following YAML configuration.
Now, I want to achieve the same setup using Terraform. I tried ...
11
votes
3
answers
43k
views
AWS CLI log in command
I am starting into the AWS world and I recently configured my local environment to connect to my AWS account through the terminal, but I’m having a hard time finding the correct command to log in. ...
0
votes
1
answer
2k
views
huge AWS RDS Data Transfer cost
I use AWS RDS to host a client's MySQL database. His web server is hosted in a separate hosting company (TurnKey). This site has some 14,000+ unique visitors and ~270,000 requests per day. This is a ...
1
vote
1
answer
1k
views
Dynamodb projection by map contents
my dynamodb table contains items like this
I know i can use a projection like:
proj := expression.NamesList(expression.Name("key_Ravenna"))
to filter my results by key, but how can ...
-2
votes
0
answers
35
views
How to delete all records older than a certain date? [closed]
I've got a database table with a bunch of old records that are no longer needed. Is there an easy way to delete all records in a DynamoDB where the created date is older than a certain date (i.e. ...
-1
votes
1
answer
34
views
Expected X-Cache value when serving requests for non-existent files?
I have configured CloudFront and S3 using OAI and it generally serves files as expected.
I am trying to reduce my S3 API costs and I think about 10% of it is linked to requests for non-existent files. ...
132
votes
10
answers
53k
views
AWS IAM Role vs Group [closed]
The AWS official site reads role as a collection of permissions and group as a collection of users. But still they look the same to me. You attach policies to groups or roles, and then assign groups ...