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
5 answers

AWS CodeBuild buildspec.yml get all files and subfolders recursively

I'm trying to use AWS CodeBuild to get all files and subfolders inside a nested public folder and deploy to an S3 bucket using CodePipeline. I was able to hook them all together but struggling to configure the buildspec.yml file to get the output I…
Viet
  • 6,513
  • 12
  • 42
  • 74
28
votes
5 answers

Connecting to AWS Transfer for SFTP

I am having trouble connecting to AWS Transfer for SFTP. I successfully set up a server and tried to connect using WinSCP. I set up an IAM role with trust relationships like follows: { "Version": "2012-10-17", "Statement": [ { …
ChristopherTull
  • 464
  • 1
  • 7
  • 11
28
votes
2 answers

AWS cloudformation error: Template validation error: Template error: resource NotificationsTopic does not support attribute type Arn in Fn::GetAtt

I am trying to create an AWS cloudformation stack using a yaml template. The goal is to create a sns topic for some notifications. I want to output the topic arn, to be able to subscribe multiple functions to that topic by just specifying the topic…
28
votes
4 answers

Amazon S3 Bucket Policy Public Access Denied

I'm trying to make my S3 bucket public but when I add the following policy I get Error Access Denied: { "Version":"2012-10-17", "Statement":[{ "Sid":"AddPerm", "Effect":"Allow", "Principal":"*", "Action":[ …
Richard Trinh
  • 379
  • 1
  • 4
  • 10
28
votes
2 answers

Sharing resources between Terraform workspaces

I have an infrastructure I'm deploying using Terraform in AWS. This infrastructure can be deployed to different environments, for which I'm using workspaces. Most of the components in the deployment should be created separately for each workspace,…
28
votes
3 answers

EC2. Load balancer. At least two subnets must be specified

I'm trying to create and configure Load Balancer. The Availability Zones section has only one subnet and one zone for me. I faced error: At least two subnets must be specified. Simple question - what should I do? thanks.
28
votes
4 answers

DOWNLOAD_SOURCE Failed AWS CodeBuild

Whenever I start AWS CodeBuild I get this type of error every time. please help. DOWNLOAD_SOURCE Failed 3 mins, 2 secs Get https://github.com/themithunbiswas/test-repo.git/info/refs?service=git-upload-pack: dial tcp…
Mithun Biswas
  • 1,617
  • 1
  • 12
  • 19
28
votes
2 answers

Organizing AWS IAM permissions: limit of 10 policies?

I'm trying to polish the organization of my IAM roles in Amazon and their access to permissions. I have groups, with policies attached, which map to groups within my company. I have reached the 10-policy limit on some groups. So, users have a…
salezica
  • 74,081
  • 25
  • 105
  • 166
28
votes
3 answers

Connection pooling in AWS across lambdas

We know lambdas are charged by the execution time. So now I want to connect to SQL Server DB from lambda. If I create a connection in each lambda, it would be heavy for lambda. Is there any best way to maintain my SQL connections alive in one place…
Learner
  • 1,286
  • 6
  • 34
  • 57
28
votes
3 answers

Accessing Terraform variables within user_data provider template file

I am launching an aws_launch_configuration instance using terraform. I'm using a shell script for the user_data variable, like so: resource "aws_launch_configuration" "launch_config" { ... user_data = "${file("router-init.sh")}" ... …
Timothy T.
  • 1,031
  • 1
  • 12
  • 25
28
votes
2 answers

Can S3 Select search multiple objects?

I'm testing out S3 Select and as far as I understand from the examples, you can treat a single object (CSV or JSON) as a data store. I wanted to have a single JSON document per S3 object and search the entire bucket as a 'database'. I'm saving each…
Nic Cottrell
  • 9,401
  • 7
  • 53
  • 76
28
votes
5 answers

Facebook error when pulling og:image

For whatever reason, the image that I'm trying to use when sharing a link on FB doesn't load. The exact error that's being given is this: Provided og:image, could not be downloaded. This can happen due to several different reasons such as your…
28
votes
2 answers

Any way to write files DIRECTLY to S3 using boto3?

I wrote a python script to process very large files (few TB in total), which I'll run on an EC2 instance. Afterwards, I want to store the processed files in an S3 bucket. Currently, my script first saves the data to disk and then uploads it to S3.…
Richard Sun
  • 385
  • 1
  • 3
  • 6
28
votes
3 answers

Terraform, "ignore_changes" and sub-blocks

I have a AWS CodePipeline configured in a terraform file, like this: resource { name = "Cool Pipeline" ... stage { name = "Source" ... action { name = "Source" ... …
Wrench
  • 4,070
  • 4
  • 34
  • 46
28
votes
4 answers

Restore password for FORCE_CHANGE_PASSWORD status

I need to restore or reset user password when his status is FORCE_CHANGE_PASSWORD. This situation happened when user try to restore password using "forgot password" feature and he lost email with temporary password. Now he can't do anything because…
Bogdan
  • 323
  • 1
  • 3
  • 5