Questions tagged with Support API

Content language: English

Sort by most recent

Browse through the questions and answers listed below or filter and sort to narrow down your results.

S3Transfer class ProgressPercentage writes frequently

I'm uploading a large file and I have it configured to use 1gb parts in the upload. I just recently added the ProgressPercentage class to S3Transfer and it's writing much more frequently than I expect. I would expect it to write once per part. Why is there 262k between values of what it's uploading? I'm using the standard class posted here, but I only modified how it writes. EDIT: I modified my script to only print when it's an even percentage, so it will print at 0.00, 1.00, etc. Still, why is it doing this? https://boto3.amazonaws.com/v1/documentation/api/latest/_modules/boto3/s3/transfer.html 2022-11-21 07:14:42,774 - aws_pc_backup - [CRITICAL] - Progress for C:\\Temp_Download\\C_VOL-b031.spf 3580887040 / 92093203968.0 (3.89%) 2022-11-21 07:14:42,852 - aws_pc_backup - [CRITICAL] - Progress for C:\\Temp_Download\\C_VOL-b031.spf 3581149184 / 92093203968.0 (3.89%) 2022-11-21 07:14:42,930 - aws_pc_backup - [CRITICAL] - Progress for C:\\Temp_Download\\C_VOL-b031.spf 3581411328 / 92093203968.0 (3.89%) 2022-11-21 07:14:42,972 - aws_pc_backup - [CRITICAL] - Progress for C:\\Temp_Download\\C_VOL-b031.spf 3581673472 / 92093203968.0 (3.89%) 2022-11-21 07:14:43,179 - aws_pc_backup - [CRITICAL] - Progress for C:\\Temp_Download\\C_VOL-b031.spf 3581935616 / 92093203968.0 (3.89%) 2022-11-21 07:14:43,240 - aws_pc_backup - [CRITICAL] - Progress for C:\\Temp_Download\\C_VOL-b031.spf 3582197760 / 92093203968.0 (3.89%) 2022-11-21 07:14:43,334 - aws_pc_backup - [CRITICAL] - Progress for C:\\Temp_Download\\C_VOL-b031.spf 3582459904 / 92093203968.0 (3.89%) 2022-11-21 07:14:43,428 - aws_pc_backup - [CRITICAL] - Progress for C:\\Temp_Download\\C_VOL-b031.spf 3582722048 / 92093203968.0 (3.89%) 2022-11-21 07:14:43,459 - aws_pc_backup - [CRITICAL] - Progress for C:\\Temp_Download\\C_VOL-b031.spf 3582984192 / 92093203968.0 (3.89%) 2022-11-21 07:14:43,475 - aws_pc_backup - [CRITICAL] - Progress for C:\\Temp_Download\\C_VOL-b031.spf 3583246336 / 92093203968.0 (3.89%) 2022-11-21 07:14:43,662 - aws_pc_backup - [CRITICAL] - Progress for C:\\Temp_Download\\C_VOL-b031.spf 3583508480 / 92093203968.0 (3.89%)
2
answers
0
votes
14
views
asked 8 days ago

How to pull a list of items from a DynomoDB table without using primary key in Go.

Below is a single item in JSON, there are hundreds more. The account_name and ami_name are the partition key and sort key. I want to be able to query a list based on the ami_name and filter that list by the environment value, in this case, "test". I have an example of what I am trying so far. ``` package main import ( "context" "fmt" "log" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/config" "github.com/aws/aws-sdk-go-v2/service/dynamodb" "github.com/aws/aws-sdk-go-v2/service/dynamodb/types" ) func main() { cfg, err := config.LoadDefaultConfig(context.TODO(), config.WithRegion("us-east-1")) if err != nil { log.Fatalf("unable to load SDK config, %v", err) } tableName := "aws-webhooks-table-test" // account_name := "aws-computer-test" ami_name := "win2019core" environment := "test" svc := dynamodb.NewFromConfig(cfg) out, err := svc.Query(context.TODO(), &dynamodb.QueryInput{ TableName: aws.String(tableName), KeyConditionExpression: aws.String("ami_name = :ami_name"), FilterExpression: aws.String("environment = :environment"), ExpressionAttributeValues: map[string]types.AttributeValue{ ":ami_name": &types.AttributeValueMemberS{Value: ami_name}, ":environment": &types.AttributeValueMemberS{Value: environment}, }, ExpressionAttributeNames: map[string]string{ "ami_name": ami_name, }, } { "account_name": { "S": "aws-computer-test" }, "ami_name": { "S": "win2019core" }, "account_id": { "S": "7666666666" }, "aws_region": { "S": "us-east-1" }, "environment": { "S": "test" }, "lob": { "S": "computer" }, "payload_url": { "S": "https://codebuild.us-east-1.amazonaws.com/webhooks?t=eyJlbmNyeXBlotsoflettersKPIkeo" }, "project_name": { "S": "aws-computer-test-win2019-ami-project" }, "repo_url": { "S": "https://git.nylcloud.com/Cloud-Team/packer-aws-win2019core" }, "secret": { "S": "dq7bHlotsofletterZKPIkeo" } } ```
2
answers
0
votes
23
views
asked a month ago

Auth Cognito user without temporary password

Hi all, I created a new user in my Cognito user pool using `AdminCreateUser` AP call, the user is added with sates `Force change password` then I will send a custom link to the user, the user will be prompted with an angular front-end page with only 2 inputs new password and confirm new password (no temporary password input). so I want to store the temporary password in my backend (Redis cache) and then only ask the user for his new password. Then authenticate the user using the temporary password(stored on the backend Redis cache) and the new password(provided by the user via the front-end application) the issue with this is that if I don't include both the user name and temporary password on the invitation message Cognito will not send the email and it will send the default Cognito email. as I understood the custom email **needs** to have those 2 variables (user name and temporary password) to be sent by Cognito, otherwise, it will not and the default Cognito invitation message will be sent instead. is there a way to be able to send the custom email without containing the temporary password? **so that the end user can focus only on providing the new password** my second question is: all my backend is serverless using lambdas, so how can I pass the user's password from the front end to the backend securely either as a request body or as a URL parameter? Thank you so much team, appreciate your help!
1
answers
0
votes
51
views
Jess
asked 2 months ago

Unable to execute HTTP request: Connect to sts.us-east-1.amazonaws.com:443 [sts.us-east-1.amazonaws.com/209.54.177.185] failed: Connect timed out

Sometimes I am getting the below error from sts while API call. I am not able to find the root cause of this error. ``` Unable to execute HTTP request: Connect to sts.us-east-1.amazonaws.com:443 [sts.us-east-1.amazonaws.com/209.54.177.185] failed: Connect timed out ``` Stack Trace JSON ``` { "message": "Unable to execute HTTP request: Connect to sts.us-east-1.amazonaws.com:443 [sts.us-east-1.amazonaws.com/209.54.177.185] failed: Connect timed out", "source": "JavaSDK", "stackTrace": "software.amazon.awssdk.core.exception.SdkClientException$BuilderImpl.build(SdkClientException.java:102)", "cause": { "message": "Connect to sts.us-east-1.amazonaws.com:443 [sts.us-east-1.amazonaws.com/209.54.177.185] failed: Connect timed out", "source": "JavaSDK", "stackTrace": "org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151)", "cause": { "message": "Connect timed out", "source": "JavaSDK", "stackTrace": "java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:546)\njava.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597)", "cause": null, "applicationFailureInfo": { "type": "java.net.SocketTimeoutException", "nonRetryable": false, "details": null } }, "applicationFailureInfo": { "type": "org.apache.http.conn.ConnectTimeoutException", "nonRetryable": false, "details": null } }, "applicationFailureInfo": { "type": "software.amazon.awssdk.core.exception.SdkClientException", "nonRetryable": false, "details": null } } ```
0
answers
0
votes
37
views
asked 2 months ago