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
27
votes
4 answers

AWS, Credential must have exactly 5 slash-delimited elements,

During executing eb init on Ubuntu 16.04 I faced an error Credential must have exactly 5 slash-delimited elements, e.g. keyid/date/region/service/term,. I understand that my keyid has slashes but they must be there, key was provided by AWS and it is…
a.kozubenko
  • 1,030
  • 3
  • 15
  • 24
27
votes
4 answers

Condition parameter type does not match schema type

I have a table in dynamoDB called 'Contributors'. I have a primary composite key where the hash key is 'UserId' and the sort key is 'NoteId'. I want to query for all the items belonging to a particular hashkey. Now if I use aws-cli, following…
vishalaksh
  • 2,054
  • 5
  • 27
  • 45
27
votes
3 answers

resource:memory error when trying to run an ECS task using AWS CLI

I'm trying to set up CI with AWS ECS and docker. I use Codeship as a CI tool, but that should not really matter much. I do the following steps in a shell script: build an image with my Dockerfile, push the image to ECS repository, push a…
Vic
  • 645
  • 1
  • 7
  • 18
27
votes
2 answers

How do I disconnect from my EC2 Instance?

I would have thought this would be a question I could find the answer to with a quick Google search, but I can't. I have connected to my EC2 instance via an SSH client but now I would like to disconnect, but I have no idea how.
Ben Nalle
  • 537
  • 2
  • 8
  • 21
27
votes
5 answers

Python 3 Boto 3, AWS S3: Get object URL

I need to retrieve an public object URL directly after uploading a file, this to be able to store it in a database. This is my upload code: s3 = boto3.resource('s3') s3bucket.upload_file(filepath, objectname, ExtraArgs={'StorageClass':…
HyperDevil
  • 2,519
  • 9
  • 38
  • 52
27
votes
4 answers

AWS ECS Fargate and port mapping

I have two containers and they expose the same port. I want to run them in the same task as they are part of the same system. But I cannot do this with Fargate because there are no port mapping and the host port should be the same as container port…
Anton Zherdev
  • 674
  • 1
  • 8
  • 10
27
votes
2 answers

How do I associate an Elastic IP with a Fargate container?

I'm exploring using the new Fargate option for my ECS containers. One constraint is that the running task must always be accessible at the same Public IP address. My first thought was to allocate an Elastic IP but I can't tell what to associate it…
Gabe Durazo
  • 1,789
  • 2
  • 19
  • 27
27
votes
3 answers

AWS Network ELB take 4 minutes to recognise target as healthy

Using AWS Network ELBs: takes at least four minutes for a registered instance to become 'healthy'. The instances and services have been running for days, I am simply de-registering and then registering on the same target group, as part of a…
Tim Lindsay
  • 271
  • 3
  • 3
27
votes
2 answers

Cannot create only IAM policy with cloudformation

I am having issue with creating IAM policy in cloudformation.But when I run it I get the error that Groups,Roles,Users is required: Here is my code: { "AWSTemplateFormatVersion": "2010-09-09", "Description": "AWS CloudFormation Template IAM Groups…
Hamed Minaee
  • 2,480
  • 4
  • 35
  • 63
27
votes
6 answers

Unable to delete S3 bucket

I created a s3 bucket using console, while configuration I removed the default selected user. Now when I am trying to delete the bucket using console it says access denied. I understand I should have removed the user. However when I click on bucket…
user3185039
27
votes
1 answer

Why is there no **not equal** comparison in DynamoDB queries?

I try to query my table Tinpon with a secondary index yielding a partition-key category and sort-key tinponId. My goal is to exclude items with certain tinponIds. My first thought would be to make a negative compare: keyConditionExpression =…
DrDirk
  • 1,937
  • 3
  • 25
  • 36
27
votes
4 answers

How to specify multiple result path values in AWS Step Functions

I have a AWS Step Function State formatted as follows: "MyState": { "Type": "Task", "Resource": "", "ResultPath": "$.value1" "Next": "NextState" } I want to add a second value but can't find out how anywhere. None of the AWS…
Jake T.
  • 4,308
  • 2
  • 20
  • 48
27
votes
5 answers

AWS ECS 503 Service Temporarily Unavailable while deploying

I am using Amazon Web Services EC2 Container Service with an Application Load Balancer for my app. When I deploy a new version, I get 503 Service Temporarily Unavailable for about 2 minutes. It is a bit more than the startup time of my…
vargen_
  • 2,590
  • 3
  • 24
  • 30
27
votes
4 answers

How to create a new docker image from a running container on Amazon?

Here is my problem: I have a task running a Docker image on Amazon ECS but I would like to make a new Docker image from the running instance of the container. I see the id of the instance on Amazon ECS; I have made an AMI but I would like to make a…
Bussiere
  • 500
  • 13
  • 60
  • 119
27
votes
4 answers

cv2.imshow() crashes Kernel

I am running OpenCV through Jupyter Notebooks and whenever I try to run cv2.imshow() the kernel crashes, no error message or helpful hint - just a plain The Kernel appears to have died. It will restart automatically. Here is the code I am…
Mike de H
  • 599
  • 2
  • 6
  • 13