Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • 19:15
    RanVaknin closed #4308
  • 19:15
    RanVaknin commented #4308
  • 19:15
    RanVaknin unlabeled #4308
  • 19:15
    RanVaknin assigned #4308
  • 19:06
    medikoo commented #4330
  • 19:04
    RanVaknin labeled #4330
  • 19:04
    RanVaknin unlabeled #4330
  • 19:03
    RanVaknin assigned #4330
  • 19:03
    RanVaknin commented #4330
  • 19:03
    RanVaknin commented #4330
  • 14:39
    lfvillavicencio commented #4034
  • 11:05
    medikoo edited #4330
  • 10:58
    medikoo labeled #4330
  • 10:58
    medikoo labeled #4330
  • 10:58
    medikoo opened #4330
  • 06:27
    RanVaknin commented #4305
  • 06:25
    RanVaknin labeled #4305
  • 06:25
    RanVaknin assigned #4305
  • 06:25
    RanVaknin unlabeled #4305
  • 06:25
    RanVaknin commented #4305
Aleš Ferlan
@trivikr I have just started learning all these AWS SDK and Ion so I don't know much about it. But I would like for the SDK to be more modular (feels like everything is just crammed into one giant lib)
@trivikr as for me, I think everything is ok
Trivikram Kamat
Thank you @Alko89 and @khitsik for your responses.
Jairo Campos Vargas
Hi Guys, I have a question how can I use the same user from a master account to upload files to different buckets in a different AWS account, I already added a role on these accounts to allow this master user push files to his buckets.
for example
const s3 = new AWS.S3({ accessKeyId: 'xxxx', secretAccessKey: 'xxxxxx', });
this point to my master account but I need to go to the bucket name of another account with this user that has access by role
Aleš Ferlan
@jcamposv can't you create a new instance with different keys?
const secondS3 = new AWS.S3({ accessKeyId: 'otherkey', secretAccessKey: 'othersecret', });
Aleš Ferlan
I'm trying to develop a Lambda that invokes a second Lambda function in itself. How can I test both lambdas locally using AWS SAM CLI?
I'm defining the lambda like this: const lambda = new Lambda({ region: env.awsRegion, maxRetries: 0 });
obviously this expects the second Lambda to already be deployed on AWS
is there a way to configure it to also run in the Docker container?
Varun Kumar Yadav

Hello Guy's,
I am having issue in AWS CodeBuild service. I am getting below error during codebuild execution.

COMMAND_EXECUTION_ERROR: Error while executing command: docker push $REPOSITORY_URI:latest. Reason: exit status 127

Here is my buildspec.yml file
version: 0.2
docker: 18

  - echo Logging in to Amazon ECR...
  - aws ecr get-login --no-include-email --region us-east-1
  - REPOSITORY_URI=***********.dkr.ecr.us-east-1.amazonaws.com/Reponame
  - IMAGE_TAG=${COMMIT_HASH:=latest}


  - echo Build started on `date`
  - echo Building the Docker image...    
  - docker build -t $REPOSITORY_URI:latest .


  - echo Build completed
  - echo Pushing the Docker images...
  - docker push $REPOSITORY_URI:latest
  - docker push $REPOSITORY_URI:$IMAGE_TAG
  - echo Writing definitions file...
  - printf '[{"name":"project-container","imageUri":"%s"}]' $REPOSITORY_URI:$IMAGE_TAG > taskdefinition.json

files: taskdefinition.json
Please help.

Hello guys, Could you help me please I have issue, My application works on lambda and I have a transaction and customers can scheduler them. I need to send them to another service. i docn't know have i can scheduler
Usama Tahir


I was using s3 to store images from my website with ssl certificate enabled. my certificate expired today and now when I post data to s3, the network calls times out. Is this because of the ssl certificate expiration? does s3 allow access to secure server from an insecure server?

Duc Le
hi all, I have a test written in webdriverio and wanted to integrate with a CI/CD platform. I originally tried it on CircleCI, but ran into an issue with circle not being able to access private network. I was told that aws codebuild will be able to run my test and able to access private network. Are there any other suggestions, and how hard is it to get it setup and running? All I want to do is to be able to get my test run thru a CI/CD pipeline. Thanks!
Andrii Kharsun

Hi there. Does anyone did "Building an Amazon CloudWatch Dashboard Outside of the AWS"? I want to build dynamic metrics from AWS on my app with ability to Edit and Create new.
So, I need to use structure like in aws.getCloudWatch().getMetricWidgetImage(widgetDefinition)

widgetDefinition: {
                    "width": 500,
                    "height": 400,
                    "view": "timeSeries",
                    "stacked": false,
                    "metrics": [
                        [ "AWS/EC2", "CPUUtilization", "AutoScalingGroupName", "BP-xxxx-ServerAutoScalingGroup-xxxxx", { "period": 900, "visible": false } ],
                        [ "...", "BP-xxx-ServerAutoScalingGroup-xxxxx", { "period": 900, "label": "CPUUtilization" } ],
                        [ "...", "BP-x-ServerAutoScalingGroup-xxxxx", { "period": 900 } ]
                    "region": "us-west-2",
                    "yAxis": {
                        "left": {
                            "min": 0
                    "title": "AutoScaling Group - CPUUtilization",
                    "period": 300,
                    "start": this.graphstartTime,
                    "end": this.graphendTime



Screenshot at Dec 12 10-32-06.png
Ganesh S Acharya
Hello guys, anyone has integrated a javascript client to gamelift? (Client is a game written in javascript, for match making, other game logic specifics it needs to talk directly to a game server like gamelift)
pleez how to deploy multiple images docker located in this project https://github.com/aviacommerce/avia
I have few images in s3 snd i have few Questions in Mongodb...what i want is...
Display question and its respective image from s3 on web
Ronique Ricketts
I am trying to get a Microservice up and running in ECS but I have a question. Does each service get its own task definition in ECS?
Hey :wave: I'm trying to figure out what i need to do (in terms of aws credentials/roles) to get my static site hosted on s3 using the node aws sdk to get data from cloudwatch? Any ideas would be very much appreciated :D
Deleema Fernando
I want to deploy a React app as a SaaS offering, How can I do this using AWS ?
Yashwardhan Pauranik
I'm trying to setup CI/CD using github actions and I'm facing an issue when deploying my application to AWS ELasticBeanstalk. Can anybody help me with this question here?https://stackoverflow.com/questions/59607944/elastic-beanstalk-cannot-find-the-server-js-file
andrew quartey
i use assumed roles for access resource across different accounts. However, one of the accounts is MFA-protected. I tried using the following to set up the required credentials to make the subsequent request. It fails on the MFA bit. Help appreciated.
let sts = new AWS.STS();
  RoleArn: 'arn:aws:iam::xxxxxxx:role/OrganizationAccountAccessRole',
  RoleSessionName: 'awssdk',
  SerialNumber: 'arn:aws:iam::yyyyyyy:mfa/me@work.com',
  TokenCode: '12345', 
}, function(err, data) {
  if (err) { 
    console.log('Cannot assume role');
    console.log(err, err.stack);
  } else { // successful response
      accessKeyId: data.Credentials.AccessKeyId,
      secretAccessKey: data.Credentials.SecretAccessKey,
      sessionToken: data.Credentials.SessionToken,
Hi guys, I have a problem with s3. My backend upload the file and saves the location in the database, when the front-end wants to download it, I give the URL from my database, but now I realized that all people can access that have the URL, I want only a user in my application could download it, could you help me? how to do better
Hi, you need to set the correct ACL on the objects (private), and then, create signed URL (this is a s3 method) with the Uer's authorization to get the temporary url for the file
Check out the putObject operation to see the ACL options https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#putObject-property

Hi folks, I want to integrate Amazon comprehend service in angular 8.
AWS recommends to use Amplify which doesn't seem to support comprehend yet (ref. https://aws-amplify.github.io/amplify-js/api/).

I tried to consume it as REST API call but docs doesn't contain that either.

A way (maybe bad) I'm trying - Trying to replicate API call made by boto3 in python using http call logs.

Please suggest me the correct way.

Hey - you could include the AWS sdk js in your angular app, and call the AWS SDK comprehend methods from there ?
one ting you have to be aware of is that you would have to create a "subset" of the aws sdk library for your frontend, as the default one would be 1MB, and not quite network friendly
@BertrandMarechal It worked. thanks for inputs!
great ! :)
Hello guys! How can I provide ses to cognito and send users layout, could you help me please
Tom Medema
Hi I want to use the s3 for Javascript sdk in my react app. On the readme it says "Use Amplify for React.js" but I need to use a multipart upload because I'm uploading a media stream.
So can I just do yarn add aws-sdk-js instead?
@tommedema you can, just follow AWS's guidelines on how to use the SDK in a browser, and make sure you creeate your minified version of the SDK with only the services you need (last link I posted above)
Miguel Espinoza
as a side note, I was forced to use amplify and graphql for a frontend project, the amplify sdk is typescript sugar on top of the aws sdk, but it doesnt filter out any services, it comes with everything... so even after tree shaking and minification its a 7MB bundle, just for the amplify sdk :/
Leandro Zanol
Hello everyone, I'm having trouble uploading from a Node.js backend app to S3.
The amount is around 40k files.
I'm using the upload() function and the input as { ..., Body: fs.createReadStream(filePath), ... }.
Sometimes it fails and the following errors were observed already: "InvalidPart", "NoSuchKey", and "NetworkingError: write EPIPE"
I noticed it occurs in the middle of a multipart upload process (when some bigger files get split into smaller chunks).
My first guess is that it can't recover from a retry state maybe triggered by a network oscillation (I've seen the retry callback getting called) during the multipart upload.
Any help is much appreciated, thanks!
Leandro Zanol
A bug report on my previous question has been filed: aws/aws-sdk-js#3071