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

How to organize terraform modules for multiple environments?

Every Terraform guide on the web provides a partial solution that is almost always not the real picture. I get that, not everyone has the same infrastructure needs, but what worries me that the common scenario with: multiple environments (dev,…
27
votes
7 answers

Configuring GSuite to work with route 53 - "MX record doesn't have 2 fields" error

I'm doing my best to follow GSuite's out of date instructions for routing emails to Gmail via a AWS Route 53 hosted zone (i.e. domain). Here are the outdated instructions: I set the Values as instructed: And I see: Error occurred Bad…
stevec
  • 41,291
  • 27
  • 223
  • 311
27
votes
6 answers

Cognito - Client is not enabled for OAuth2.0 flows

I've successfully set up an AWS Cognito environment that runs on Localhost following this tutorial. For the next step, I published the app to my external web server. I confirmed that the Cognito configuration (i.e. Client ID, Metadata Address,…
27
votes
2 answers

Route53 and Cloudfront The request could not be satisfied?

I just want to serve my s3 files on cdn.mydomain.com So I create cloudfront distribution which is working fine on https://dxxxxxxxx.cloudfront.net/test.jpg - I get the image. And now I want to associate my domain at cdn.domain.com with cloudfront in…
Jon Sud
  • 10,211
  • 17
  • 76
  • 174
27
votes
3 answers

React Router DOM not working correctly on Amplify Console AWS

I have deployed react app on Amplify Console following their documentation. The site is deployed and running fine, I am able to navigate using links but when I try to land to any url directly I get redirected to my configured 404 page. Below is the…
Yasser Shaikh
  • 46,934
  • 46
  • 204
  • 281
27
votes
7 answers

Create AWS Athena view programmatically

Can you create views in Amazon Athena? outlines how to create a view using the User Interface. I'd like to create an AWS Athena View programatically, ideally using Terraform (which calls CloudFormation). I followed the steps outlined here:…
27
votes
7 answers

`An error occurred (InvalidToken) when calling the ListBuckets operation: The provided token is malformed or otherwise invalid.` w/`aws s3 ls`

I successfully authenticate with 2 factor but when using aws s3 ls I keep getting An error occurred (InvalidToken) when calling the ListBuckets operation: The provided token is malformed or otherwise invalid. And I do have admin rights.
Elijah Lynn
  • 12,272
  • 10
  • 61
  • 91
27
votes
3 answers

Is it possible to specify a pattern for an AWS role Trust Relationship

I want to allow some roles from a different account to assume a role in my account. I don't want to specify the roles one by one, because they're prone to change frequently. I came up with this policy for the Trust Relationship, which should allow…
charli
  • 1,700
  • 1
  • 13
  • 21
27
votes
4 answers

Why doesn't Amazon Cognito return an audience field in its access tokens?

When Amazon Cognito issues access tokens it doesn't include an aud field. In the documentation for Cognito tokens, the aud field is listed for id tokens (always set to the same value as client_id), but not for access tokens. The relevant section of…
GlennS
  • 5,251
  • 6
  • 28
  • 31
27
votes
3 answers

AWS SAM - Failed to create the changeset: Waiter ChangeSetCreateComplete failed

AWS SAM deploying codebase to AWS cloud using aws-sam-cli but it throw me below error. Failed to create the changeset: Waiter ChangeSetCreateComplete failed: Waiter encountered a terminal failure state Status: FAILED. Reason: Requires capabilities :…
Sagar
  • 4,473
  • 3
  • 32
  • 37
27
votes
3 answers

How to pass environment variable to the buildspec.yml for AWS codebuild

I have the following command in my buildspec.yml file in my gatsby site root directory. version: 0.2 phases: install: commands: - npm i npm@latest -g - npm install --global gatsby-cli - npm install - pip install…
m5kev4n
  • 541
  • 1
  • 8
  • 20
27
votes
3 answers

How do I pass a list of strings as a parameter in CloudFormation?

I've got a nested CloudFormation template which accepts a number of parameters from its root template to configure it. At the moment I'm only passing simple string parameters but now I need to pass a list of S3 bucket ARNs onto the child…
Liam Mayfair
  • 493
  • 1
  • 8
  • 8
27
votes
4 answers

How do I display protected Amazon S3 images on my secure site using PHP?

I am trying to move images for my site from my host to Amazon S3 cloud hosting. These images are of client work sites and cannot be publicly available. I would like them to be displayed on my site preferably by using the PHP SDK available from…
Bob
  • 523
  • 1
  • 5
  • 10
27
votes
2 answers

How to access Lambda environment variable?

When running a .net core 2.1 AWS Lambda function, it is simple to fetch an environment variable from the AWS Lambda Console in c# using: var envVariable = Environment.GetEnvironmentVariable("myVariableName"); However, when running ASP.NET core 2.1…
Pete Lunenfeld
  • 1,557
  • 3
  • 19
  • 32
27
votes
2 answers

Amazon EC2 ebs vs gp2 ami

It's probably a silly question, but I can't understand the difference between these 2 amazon linux 2 amis: ami-7105540e amzn2-ami-hvm-2.0.20180622.1-x86_64-ebs ami-b70554c8 amzn2-ami-hvm-2.0.20180622.1-x86_64-gp2 Judging by this article, isn't…
Vic
  • 21,473
  • 11
  • 76
  • 97