Skip to main content

AWS Collective

Questions

Browse questions with relevant AWS tags

1,784 questions

Has recommended answer
-1 votes
1 answer
53 views

Public latency data to determine optimal AWS deployment region? [closed]

I'm running a latency-sensitive service on AWS infrastructure, including EC2 instances and CloudFront. I would like to determine the optimal set of say three AWS regions at which to place my service ...
Dreamer's user avatar
  • 1,279
Answer

One useful resource is the AWS latency matrix from Cloud Ping.

View answer
jarmod's user avatar
  • 79.7k
0 votes
1 answer
32 views

AWS Lambda inside VPC cannot connect to RDS MySQL (timeout)

Background I'm building a Lambda function (Node.js 20 runtime) that connects to an Amazon RDS MySQL database within the same VPC. Both the Lambda and the RDS instance are deployed in private subnets. ...
nachmen kurtz's user avatar
Answer

The configuration should be: A security group on the AWS Lambda function (Lambda-SG) that permits all outbound traffic to 0.0.0.0/0 A security group on the RDS database (RDS-SG) that permits inbound ...

View answer
John Rotenstein's user avatar
0 votes
1 answer
130 views

AWS Lambda container (aws-nuke) exits with Runtime.ExitError even though process returns exit code 0 [closed]

I have aws-nuke running on Lambda using a container. aws-nuke is returning exit code 0, but the Lambda returns Runtime.ExitError Cloud watch logs: ... Scan complete: 221 total, 0 nukeable, 221 ...
ALIAROUS's user avatar
  • 137
Answer Accepted

AWS Lambda is not a generic container runtime. The container needs to implement the AWS Lambda runtime API If you want a more generic serverless container environment, I suggest ECS Fargate

View answer
Mark B's user avatar
  • 203k
-2 votes
1 answer
92 views

Shell script get aws Instance details

I am using shell script to get instance id and instance state on the basis of instance name. And for that I am using below query in shell script: INSTANCE_NAME = "ABCDED00WEB" ...
sunil's user avatar
  • 163
Answer

It appears that your requirement is: Given the 'Name' of an Amazon EC2 instance Retrieve the Instance ID To obtain the Instance ID: aws ec2 describe-instances \ --filters "Name=tag:Name,...

View answer
John Rotenstein's user avatar
-3 votes
1 answer
130 views

Why is my variable using the default value instead of the value from locals? [closed]

I'm using Terraform and noticed that one of my variables always falls back to its default value, even though I define a different value in a locals block. Here’s what I have in variables.tf: variable &...
Yasin Türk's user avatar
Answer Accepted

Terraform local values and input variables are two completely separate things. You would reference the variable as var.peak_number_of_shards while you would reference the local value as local....

View answer
Mark B's user avatar
  • 203k
0 votes
3 answers
128 views

pg8000 conn.run argument error/ SQL syntax issues inserting data with AWS Lambda

I am using AWS Lambda with Python and pg8000 to insert records into a PostgreSQL RDS database. When conn.run() is called, I get argument errors or syntax errors. INSERT_SQL: INSERT INTO crypto_prices (...
Lil' Big Boy's user avatar
Answer

When you wrap multiple values in parentheses ( ) you are creating a specific Python data type called a tuple. The method conn.run() does not accept a tuple as a parameter, it accepts named parameters....

View answer
Mark B's user avatar
  • 203k
-3 votes
1 answer
167 views

How to write to S3 bucket only if it doesn't overwrite an existing object [closed]

const { S3Client, PutObjectCommand, GetObjectCommand, DeleteObjectCommand, } = require("@aws-sdk/client-s3"); const params = { Bucket: process.env.AWS_S3_PHOTO_BUCKET, ...
Bear Bile Farming is Torture's user avatar
Answer Accepted

Update your @aws-sdk/client-s3 library to the latest version. Older versions of the library, from a time before this feature was implemented, did not support this option and so will ignore the ...

View answer
jarmod's user avatar
  • 79.7k
1 vote
1 answer
105 views

ECS Fargate Service task running but Target Group shows unhealthy and curl to localhost:8000/health fails

Problem Summary: I’ve deployed a Django backend in ECS using EC2 launch type (not Fargate), behind an Application Load Balancer (ALB). The service runs a containerized Gunicorn server on port 8000, ...
Piyush Chaudhary's user avatar
Answer

You are using the awsvpc network mode, which means the ECS container gets its own Elastic Network Interface in the VPC. So it would be completely expected behavior that you would not be able to do ...

View answer
Mark B's user avatar
  • 203k
0 votes
3 answers
107 views

Copying S3 Server Logs to a Centralized AWS Account

As a part of centralized logging into a different AWS account, I will need to send the S3 Server Logs to a different AWS account that is used for Centralized Logging for all the AWS accounts in our ...
user182944's user avatar
  • 8,105
Answer

You can Replicate objects within and across Regions - Amazon Simple Storage Service, which will automatically copy the objects to another bucket. Alternatively, you could create an AWS Lambda function ...

View answer
John Rotenstein's user avatar
0 votes
1 answer
54 views

How to provide limited view to AWS IAM resources

Hello: I'm managing an AWS account for students to practice AWS's resources management. Each student has it's own IAM user with PowerUserAccess permissions (TL;DR: Allows anything except users and ...
Alvaro Pedraza's user avatar
Answer

See Actions, resources, and condition keys for AWS Identity and Access Management (IAM) for valid actions, resources, and condition keys for AWS IAM. In the case of CreateUser, the only supported ...

View answer
jarmod's user avatar
  • 79.7k
2 votes
2 answers
93 views

Transposing the row into a column header and other as column value in Redshift SQL

Source data - table name temp: Source value ID A C123 111 B V123 111 A C456 222 B V456 222 I need to convert the column name source output as a new column header and store the column name value output ...
John Smith's user avatar
Answer Accepted

You could use a CASE to transpose the information. Note that this requires that you know the specific columns that are wanted: -- INIT database CREATE TABLE temp ( source text, value text, id ...

View answer
John Rotenstein's user avatar
1 vote
1 answer
170 views

Get files from S3 with lambda

I'm trying to retrieve files from an AWS S3 bucket using a Lambda function, but my script keeps timing out, and I can't figure out why. "errorMessage": "2025-05-16T14:37:13.093Z fdb6***...
user15915737's user avatar
Answer Accepted

A Lambda function in a VPC does not have Internet access, unless you have configured the Lambda function to only run in private subnets that have route to a NAT Gateway. The S3 API exists on the ...

View answer
Mark B's user avatar
  • 203k
-1 votes
2 answers
65 views

I want to access my uploaded image in private S3 bucket through a url such that it should not timeout

A link that remains valid indefinitely or can be accessed at any time after its creation to display an image. I want to avoid pre-signed GET URLs for image download, so the frontend doesn’t need to ...
VSR cookies's user avatar
Answer

Amazon S3 pre-signed URLs have a maximum validity period of 7 days. Therefore, they will not meet your objective. They are intended to be created 'on the fly' when access is requested rather than ...

View answer
John Rotenstein's user avatar
-1 votes
1 answer
75 views

Lambda function is not called when upload video files [closed]

I added a lambda function that is called when files are uploaded to the S3 bucket, but when I upload video files function is not called, but for other files lambda function is called. I can not see ...
Sukomal's user avatar
  • 21
Answer

It is likely that the video files are large and are therefore being uploaded via a "Multipart Upload". This type of upload uses a different API endpoint, but your Event is configured only to ...

View answer
John Rotenstein's user avatar
2 votes
1 answer
75 views

Invoke aws lambda from a ec2 [closed]

I'm trying to invoke a lambda from an ec2. They are both in the same self-referencing security group, the same vpc, even the same subnet. When I invoke the lambda from my rails server on the ec2 I get ...
Ezekiel Wright's user avatar
Answer

It doesn't matter that the function is configured to run in the same VPC as the EC2 instance and use the same security group. Lambda functions aren't sitting there running 100% of the time and ...

View answer
Mark B's user avatar
  • 203k
1 vote
1 answer
89 views

How do I override default routes within my AWS VPC? [closed]

In my AWS VPC, I would like to override requests to specific URLs via DNS, i.e. if one makes a request in an EC2 instance within my VPC to example.com, it should re-route to 127.0.0.1 (or any IP ...
John Bergqvist's user avatar
Answer Accepted

I don't think "default route" is the correct term for what you are describing. That sounds more like a routing table thing, while what you are asking for is a DNS resolution feature. In any ...

View answer
Mark B's user avatar
  • 203k
1 vote
1 answer
171 views

Disable ECS Exec on a service

I am attempting to disable ECS Exec on a service, but cannot find any documentation on how to do so. Here are the commads i've tried: aws ecs update-service --cluster <clustername> --service <...
Andrew's user avatar
  • 446
Answer Accepted

Per the documentation for the AWS CLI, the flags to disable ECS exec is --disable-execute-command. Although, it is unclear why you think having ECS Exec enabled is the reason for the error you are ...

View answer
Mark B's user avatar
  • 203k
-4 votes
1 answer
326 views

AWS IP Address for Lambda function

I have a Lambda function on AWS that requires connectivity to my On premise API server. Currently a request originating from Lambda is getting blocked at my Company Firewall. To open the Firewall, I ...
Kul's user avatar
  • 119
Answer Accepted

Currently the source IP address will be the large pool of IP addresses that AWS uses for Lambda functions. Opening up that large pool of IPs would allow anybody else to write a Lambda function that ...

View answer
Mark B's user avatar
  • 203k
-1 votes
1 answer
68 views

Are EC2 Instance Profile and Task Execution Role overlap in AWS ECS [closed]

Both EC2 Instance Profile and Task Execution Role are said to be used by ECS agent, then why do we need both of them? for example, the ECS agent needs a permission to "Pull down docker images ...
user25521292's user avatar
Answer Accepted

There is some overlap because ECS supports both EC2 and Fargate deployment types, and Fargate doesn't have instance profiles at all, so Fargate deployments have to have all those permissions assigned ...

View answer
Mark B's user avatar
  • 203k
0 votes
1 answer
224 views

AWS RDS Aurora (postgres engine) upgrade from 13.12 to 14.17

I'm trying to upgrade my engine version from 13.12 to 14.17. Below is my Terraform code: resource "aws_rds_cluster" "aurora" { cluster_identifier = local.env_config....
Coding_ninja's user avatar
Answer Accepted

The error I'm facing is snapshot name not found, which I'm assuming is happening because the final snapshot identifier is not able to create the snapshot in time, and when the snapshot identifier ...

View answer
Mark B's user avatar
  • 203k
0 votes
1 answer
67 views

Elastic Beanstalk app fails to deploy without public IPs on instances

I can't get an elastic beanstalk app with a public ELB but private EC2 instances to work. I created a basic eb config with eb init. This results in the following config: branch-defaults: default: ...
Ben Zuill-Smith's user avatar
Answer Accepted

You currently have the instances deployed to public subnets, without public IP addresses assigned, so the instances have no access to the Internet. For an EC2 instance to have access to the Internet ...

View answer
Mark B's user avatar
  • 203k
1 vote
1 answer
100 views

How can I send using the default FROM address with AWS SDK (JavaScript) v3 for SES?

How can I specify the Source to be the default MAIL FROM address ([email protected] or similar) with AWS SDK (JavaScript) v3 for SES? The official documentation says this is possible, but does ...
FromTheStackAndBack's user avatar
Answer Accepted

You are confusing the FROM address and the MAIL FROM address. If you read the first paragraph on the page you linked, you can see that they are two separate things: When an email is sent, it has two ...

View answer
Mark B's user avatar
  • 203k
0 votes
1 answer
55 views

A Lambda function that invoke another lambda function failed on cloud but working locally

I have 2 Lambda functions, function A will invoke function B with the following code: response_lambda = lambda_client.invoke( yieldFunctionName='arn:aws:lambda:ap-southeast-2:...
Bill Kary's user avatar
  • 715
Answer

Check the Subnets assigned to each AWS Lambda function. If a Lambda function is connected to a VPC, then only private subnets should be assigned to Lambda functions. They can then use a NAT Gateway (...

View answer
John Rotenstein's user avatar
0 votes
1 answer
52 views

AWS CLI error with delete objects recursively using include, exclude

I have various sub-directories inside my s3 bucket which contain 2 files, namely: pavement_suitability_final_result.gpkg Intermediate_Part1_output.gpkg I wish to delete only the files named as ...
Swathi Venkatesh's user avatar
Answer Accepted

I suspect that it looks at the provided name as the full path of the object rather than just the 'filename' portion. Try something like: --exclude "*" --include "*/...

View answer
John Rotenstein's user avatar
-1 votes
1 answer
118 views

Issues with email-AWS Lightsail

I having issues with the email deliverability. Recently migrated my website and emails from a shred environment to AWS lightsail instance. And configured the DNS using the Route53 service of AWS. I ...
Rojin Antony's user avatar
Answer

Amazon blocks port 25 connections to prevent spammers from abusing AWS. Opening the security group is not enough to remove this. You have to submit a request to AWS to have the restriction removed on ...

View answer
Mark B's user avatar
  • 203k
0 votes
2 answers
78 views

Sub Folders of S3 bucket - Bucket name must match the regex "^[a-zA-Z0-9.\-_]

I have below code to get the list of objects in the bucket, but it does not work for the sub folders of the S3. import boto3 bucket_from = "BucketSource" s3 = boto3.resource('s3') src = s3....
Jim Macaulay's user avatar
  • 5,241
Answer Accepted

It sounds like you are trying to list S3 objects under a given key prefix and to do that you have accidentally provided the key prefix as a suffix on the bucket name, for example: src = s3.Bucket('...

View answer
jarmod's user avatar
  • 79.7k
2 votes
1 answer
76 views

How to hide a specific DynamoDB attribute from the AWS Console?

I'm trying to hide a sensitive DynamoDB attribute from being visible in the AWS Console for certain IAM users viewing a specific DynamoDB table. I tried this approach (and many variations of it): { &...
mincom's user avatar
  • 1,030
Answer Accepted

Is it possible to hide a specific attribute in the AWS Console for DynamoDB tables? No, it's not possible. The IAM policy you have in your question would restrict users from making specific queries ...

View answer
Mark B's user avatar
  • 203k
1 vote
1 answer
73 views

S3 Bucket returns status 403 when trying to access objects

Getting error "Status code: 403, reason phrase: Forbidden for requestId ... in Alexa Developer Console in log, as well as Alexa saying I am having trouble connecting to the audio file U.R.I.. I ...
DrexxBoban's user avatar
Answer Accepted

If Alexa is successfully invoking your AWS Lambda function, but the Lambda function is having problems accessing content from Amazon S3, then you should: Add a policy to the IAM Role that is assigned ...

View answer
John Rotenstein's user avatar
-7 votes
1 answer
59 views

reading data from AWS (S3/RDS/DyamoDb etc) from on-prem application [closed]

I have an on-prem application that should read data periodically from various AWS stores. Is there any AWS service that will fetch data from underlying stores (s3, RDS, DynamoDB etc) that I can invoke ...
mobileDev's user avatar
  • 1,462
Answer Accepted

You can certainly (and should!) access data stored in AWS from code sitting in your own on-premises applications. All AWS services have APIs and there are SDKs for all popular programming languages. ...

View answer
John Rotenstein's user avatar
0 votes
1 answer
55 views

How to delete all objects that were created before a specific date in S3 using Lifecycle rule?

I would like to write a lifecycle rule for my S3 bucket to delete all objects that were created before a specific date. Is this even possible? Maybe via some fancy tags and filter? I don't want to ...
Andrej's user avatar
  • 1,797
Answer

Yes, this is default functionality for Amazon S3 Lifecycle policies. However, you do it by specifying an age (eg 180 days) rather than providing a specific date. From Managing the lifecycle of objects ...

View answer
John Rotenstein's user avatar
-1 votes
1 answer
237 views

How to connect to a Fargate container with ECS Exec? [closed]

When I try to connect to the FARGATE container I have got this message error below I tried many things, to add vpc endpoint but still the same error. I also tried to "enable_execute_command = ...
FredyK's user avatar
  • 305
Answer

You have to set enable_execute_command = true in the task definition, and then redeploy the task. Stop the task and let the ECS service create a new one, or trigger a deployment that replaces the task....

View answer
Mark B's user avatar
  • 203k
0 votes
1 answer
125 views

Merging multiple aws iam roles for lambdas in terraform

I have following configuration in terraform: locals { common_env_vars = { DATABASE_NAME = var.database_name } lambda_config = { filename = "empty.zip" ...
BratZdenko's user avatar
Answer Accepted

It's unclear what you mean by "merging" the roles. If you have two roles, and you want one of the Lambda functions to use one role, and all the other Lambda functions to use the other role, ...

View answer
Mark B's user avatar
  • 203k
0 votes
1 answer
99 views

What is the Parameter to access s3 url only once

I have image files stored in AWS S3 bucket, I want to download those files in my application and so I am generating a presigned url. Using this URL, I will be able to download these images. I am using ...
Enthusiast Coder's user avatar
Answer

You cannot invalidate a pre-signed URL**. The pre-signed URL will simply expire at the designated time so it's a best practice to make the usable time short. ** without deleting the underlying object ...

View answer
jarmod's user avatar
  • 79.7k
1 vote
1 answer
97 views

Is a NAT Gateway Required for NLB Health checks to instances in private subnets

I have an internet-facing network load balancer in a public subnet and the associated target group contains instances in a private subnet. When I create my Elastic Beanstalk environment with this ...
Argentum's user avatar
Answer Accepted

No, but yes. A NAT Gateway is used for outbound traffic from private subnets to the Internet. It is not used by a Load Balancer, which takes traffic from the Internet, sends it to the EC2 instances ...

View answer
John Rotenstein's user avatar
0 votes
1 answer
214 views

Secrets management in IaC solutions for the cloud

I go to great lengths to protect the secrets that my infrastructure relies on (in AWS) through, SCP's, resource policies for KMS and SecretsManager, logging and monitoring and WORM backup strategies. ...
Tom Stock's user avatar
  • 1,300
Answer

Terraform allows you to use a backend like AWS S3 for storing state files, which you can then configure to encrypt with a KMS key, create a bucket policy to restrict access, etc. Since Terraform v0.9, ...

View answer
Mark B's user avatar
  • 203k
0 votes
1 answer
93 views

AWS Lambda Endpoint URL Construction in a VPC

I have a technical question about how the AWS Lambda client determines the endpoint URL when invoking a function using client.invoke() in Java SDK 1.x. My Lambda function is deployed inside a VPC, and ...
Jainam Jain's user avatar
Answer

When a client invokes an AWS Lambda function, that client sends a signed API request to the AWS Lambda service's control plane via its public API endpoints (e.g. lambda.us-east-1.amazonaws.com). It ...

View answer
jarmod's user avatar
  • 79.7k
-1 votes
1 answer
79 views

How to copy a file to a new AWS EC2 Windows instance in Terraform

I have searched, but this specific case is not coherently documented that I can find. I just want to spin up a new windows instance in EC2 and copy a file to it. This seems it should be trivial and ...
Daniel Williams's user avatar
Answer Accepted

A common method of performing an operation on an Amazon EC2 instance after it is launched is to Run commands when you launch an EC2 instance with user data input - Amazon Elastic Compute Cloud. ...

View answer
John Rotenstein's user avatar
0 votes
1 answer
79 views

Couldnt connect to RDS from Spring boot application in EC2

I am trying to connect existing spring boot application from EC2(RHEL 8) to RDS Postgres database. Both RDS and EC2 are in the same private VPC. Connection establishment is working fine from my local ...
AAPJ's user avatar
  • 49
Answer

The 'correct' configuration would be: A security group on the EC2 instance (app-sg) that permits All Outbound traffic A security group on the RDS database (rds-sg) that permits Inbound connections on ...

View answer
John Rotenstein's user avatar
0 votes
1 answer
149 views

Advice on copying data from one s3 bucket to another storage

As the title says ,I am new to AWS and went through this post to find the right approach. Can you guys please advise on what is the right approach with the following considerations? we expect the ...
KumarfromIndia's user avatar
Answer

Copying objects to another bucket There are two ways you can copy objects to another bucket when they arrive: Use S3 Replication that will automatically copy the objects. It requires Versioning to be ...

View answer
John Rotenstein's user avatar
0 votes
1 answer
300 views

Role switch option not present for AWS management account

I am trying to role switch to member account of the organization using my AWS management account. But the role switch option not present as shown in screen shot below. As you can see this is my ...
Vikram's user avatar
  • 1,637
Answer

It appears that the Switch Role capability of the AWS Management Console does not appear when logged-in as the Root user. Logging in as an IAM User will cause it to appear. Sufficient permissions will ...

View answer
John Rotenstein's user avatar
-1 votes
2 answers
112 views

Terraform Single Resource Managed by 2 different statefiles [closed]

Can I import an existing resource created by terraform, into another TF stack, and manipulate only small bits of it. e.g Existing Subnet Route Table. Import Route Table, and then add a aws_route ...
Baibhav Vishal's user avatar
Answer

In both of your examples, you are importing a resource, and then adding another resource that references the imported resource. You aren't actually modifying the imported resource. The correct way to ...

View answer
Mark B's user avatar
  • 203k
0 votes
2 answers
136 views

How to Automatically Delete Untagged Images ("-") in an AWS ECR Repository?

We have a CI/CD pipeline that pushes images to AWS Elastic Container Registry (ECR). Since our repository is mutable, over time, many images accumulate without tags (shown as "-" in the ECR ...
Zakaria Ait Yakoub's user avatar
Answer

You need to create an ECR lifecycle policy to handle this. In that documentation, there is an example policy that removes untagged images here: { "rules": [ { "...

View answer
Mark B's user avatar
  • 203k
0 votes
1 answer
53 views

Vue is not picking up env variables from aws ecs task container

I have a Vue 2.6 app which is deployed in aws ecs task container 1.4 , but in the console it is not pciking up the env variables which I have set up in the aws task environment variable. For example I ...
sromit's user avatar
  • 1,134
Answer Accepted

Your Vue app doesn't run on ECS. The files are simply served by the ECS server and they run in the client's web browser. The app picks up those environment variables at the time the app is built, not ...

View answer
Mark B's user avatar
  • 203k
0 votes
1 answer
64 views

Why can I set a default route to a nat gateway from a private subnet if this nat gateway is NOT in this private subnet? [closed]

I have an EC2 instance in a private subnet, in this private subnet I can configure a default route to a nat gateway to go out to internet and reach an smtp Server. The nat gateway is in a public ...
Mik's user avatar
  • 31
Answer

All subnets within an Amazon VPC can communicate with each other by default. Resources will reference other resources via private IP address. You can see this in the Route Table: Communication will ...

View answer
John Rotenstein's user avatar
-1 votes
1 answer
259 views

What metadata should I track in my database to keep track of my images stored in s3

I am taking over a website that is about 20years old. The website has hundreds of thousands of images in folders right on the web server taking u close to 100gigs. The folder structure is quite ...
Tim Cadieux's user avatar
Answer

Amazon S3 is an object store. It supports the concept of folders, but the reality is that folders do not exist. If you store an object called Volunteers/Test/IMG_1372.jpeg, then the Key of the object ...

View answer
John Rotenstein's user avatar
0 votes
1 answer
58 views

AWS Serverless function async: true

In the Serverless framework built with AWS, when a function is kept as async: true it immediately returns a 200 HTTP response, can we override this status codes. Can somebody answer to this thanks I ...
K. Anirudh's user avatar
Answer Accepted

What you are asking for doesn't make sense. The whole purpose of invoking a function asynchronously is to invoke it and let it run without waiting for the response. The code you are changing runs at ...

View answer
Mark B's user avatar
  • 203k
0 votes
1 answer
149 views

Deploy php app on AWS ECS cluster with ALB

I am trying to deploy a Symfony PHP application to AWS ECS, using Nginx as a web server. An Application Load Balancer (ALB) handles SSL termination and forwards HTTPS traffic to the ECS service. ...
Ahmed Elkhouly's user avatar
Answer

It looks like you are deploying to ECS Fargate. ECS does not make container names available for hostname resolution by default. You are getting the error host not found in upstream "php:9000"...

View answer
Mark B's user avatar
  • 203k
0 votes
1 answer
140 views

Unable to Add Alias Record in Route 53 for AWS Cognito Custom Domain: CloudFront Alias Target Missing

I am attempting to set up a custom domain for AWS Cognito login. I created a wildcard certificate (*.mydomain.com) in the us-east-1 region and then set up a custom domain for auth.mydomain.com. ...
Tom McLean's user avatar
  • 6,633
Answer Accepted

That CloudFront distribution will not show up in your account, and it will not show up in the auto-populated drop-down thing in Route53 since it isn't one of the CloudFront distributions in your ...

View answer
Mark B's user avatar
  • 203k
0 votes
2 answers
381 views

Getting no basic auth credential from AWS ECR when pulling image

I am trying to pull image from AWS ECR. I am on an EC2 machine and as you can see that I can login successfully. However, when I am trying to pull the image using docker pull I am getting Head <>...
Judi's user avatar
  • 922
Answer Accepted

You ran docker login with your regular EC2 user account. Then you are trying to run the docker pull with sudo, which runs as the root EC2 account. The root EC2 account isn't logged into ECR. You ...

View answer
Mark B's user avatar
  • 203k
1 vote
2 answers
366 views

S3 Deletion Error: "The me-south-1 location constraint is incompatible for the region specific endpoint this request was sent to."

I'm trying to delete an object from an S3 bucket located in the me-south-1 region, but I'm getting the following error: The me-south-1 location constraint is incompatible for the region specific ...
ma24557's user avatar
Answer

When performing operations on a bucket in a particular Region (eg me-south-1), you must use a client that is configured to use that Region. You did not show us how you created the s3Client, but it is ...

View answer
John Rotenstein's user avatar


15 30 50 per page
1
2 3 4 5
36