amazon-web-services

How to get AWSCredentials given a AWS Cognito access_token

时光毁灭记忆、已成空白 提交于 2021-02-19 03:08:36
问题 In an android app, I receive a JWT access_token from http://<domain>.auth.<region>.amazoncognito.com/login once the user is done authenticating to a Cognito User Pool. That User Pool is linked to a Cognito Identity Pool. What API should I call with that access_token to get an AWSCredentials object. The closest one I found would be AssumeRoleWithWebIdentity, but that is an STS API, and some of what I've read on the web seems to recommend developers not use STS directly but rely on Cognito.

AWS AppSync query returns cached response even when offline is disabled

最后都变了- 提交于 2021-02-19 02:52:19
问题 I have a fairly simple node app using AWS AppSync. I am able to run queries and mutations successfully but I've recently found that if I run a query twice I get the same response - even when I know that the back-end data has changed. In this particular case the query is backed by a lambda and in digging into it I've discovered that the query doesn't seem to be sent out on the network because the lambda is not triggered each time the query runs - just the first time. If I use the console to

How do I determine what a given AWS Security Group is associated with?

瘦欲@ 提交于 2021-02-19 02:18:16
问题 The AWS EC2 Security Groups documentation mentions that "Security groups for EC2-VPC have additional capabilities that aren't supported by security groups for EC2-Classic" but the Security Groups dashboard does not provide any information on the "capabilities" of attributes of Security Groups that allow me to distinguish what kind of Security Group I'm looking at or what it is attached to, so that, for example I can't figure out whether I can consolidate Security Groups and share them across

How do I determine what a given AWS Security Group is associated with?

核能气质少年 提交于 2021-02-19 02:14:39
问题 The AWS EC2 Security Groups documentation mentions that "Security groups for EC2-VPC have additional capabilities that aren't supported by security groups for EC2-Classic" but the Security Groups dashboard does not provide any information on the "capabilities" of attributes of Security Groups that allow me to distinguish what kind of Security Group I'm looking at or what it is attached to, so that, for example I can't figure out whether I can consolidate Security Groups and share them across

Unable to download a file from S3 by the URL in a browser

前提是你 提交于 2021-02-19 02:09:47
问题 I have such code snippet that used to be work with the previous versions of Google Chrome, but now it does not work. When I run this script I redirected to the page with the content of the file(it's a text) and with AWS URL(the same as in setAttribute). var element = document.createElement('a'); element.setAttribute('href', 'https://s3-us-east-1.amazonaws.com/XXX/XXX/XXX?Signature=XXX&Expires=XXX&AWSAccessKeyId=XXX'); element.setAttribute('download', 'filename.txt'); document.body.appendChild

Terraform AWS ACM certificates in us-east-1 for resources in eu-west-1

≯℡__Kan透↙ 提交于 2021-02-19 02:00:33
问题 I have a terraform module that provisions resources primarily in eu-west-1. I need an ACM certificate to attach to a Cloudfront distribution. The certificate must be provisioned in us-east-1. I have thus configured two providers: provider "aws" { version = "~> 1.0" region = "eu-west-1" } provider "aws" { version = "~> 1.0" region = "us-east-1" alias = "us-east-1" } In my module, I provision the certificate like so: resource "aws_acm_certificate" "cert" { provider = "aws.us-east-1" domain_name

AWS SNS Invalid parameter phone number

旧时模样 提交于 2021-02-19 01:53:11
问题 i am trying to learn aws sns service to send sms from my web application. I am working on localhost. $params = array( 'credentials' => array( 'key' => 'iam_key', 'secret' => 'iam_secret', ), 'region' => 'ap-south-1', // < your aws from SNS Topic region 'version' => 'latest', 'http' => ['verify'=>false] ); $sns = \Aws\Sns\SnsClient::factory($params); $msgattributes = [ 'AWS.SNS.SMS.SenderID' => [ 'DataType' => 'String', 'StringValue' => 'Klassroom', ], 'AWS.SNS.SMS.SMSType' => [ 'DataType' =>

Spring-boot and aws elastic beanstalk: Following services are not running: application-web-1

梦想与她 提交于 2021-02-19 01:09:36
问题 I am trying to deploy spring-boot web application to aws elastic beanstalk. i have added .elasticbeanstalk/config.yml file in the root folder and also application.properties with server port 5000. But after I create new application with elastic beanstalk with Java i am getting this error: Following services are not running: application-web-1 Thanks in advance 来源: https://stackoverflow.com/questions/47195808/spring-boot-and-aws-elastic-beanstalk-following-services-are-not-running-appli

Spring-boot and aws elastic beanstalk: Following services are not running: application-web-1

霸气de小男生 提交于 2021-02-19 01:06:08
问题 I am trying to deploy spring-boot web application to aws elastic beanstalk. i have added .elasticbeanstalk/config.yml file in the root folder and also application.properties with server port 5000. But after I create new application with elastic beanstalk with Java i am getting this error: Following services are not running: application-web-1 Thanks in advance 来源: https://stackoverflow.com/questions/47195808/spring-boot-and-aws-elastic-beanstalk-following-services-are-not-running-appli

AWS DotNet SDK Error: Unable to get IAM security credentials from EC2 Instance Metadata Service

被刻印的时光 ゝ 提交于 2021-02-18 23:28:10
问题 I use an example from here in order to retreive a secret from AWS SecretsManager in c# code. I have set credentials locally via AWS CLI, and I am able to retreive secret list using AWS CLI command "aws secretsmanager list-secrets". But c# console app fails with an error: > Unhandled exception. System.AggregateException: One or more errors occurred. (Unable to get IAM security credentials from EC2 Instance Metadata Service.) ---> Amazon.Runtime.AmazonServiceException: Unable to get IAM