aws-sdk-js-automation on master
Updates SDK to v2.1304.0 (compare)
aws-sdk-js-automation on v2.1304.0
aws-sdk-js-automation on v2.1303.0
aws-sdk-js-automation on master
Updates SDK to v2.1303.0 (compare)
aws-sdk-js-automation on master
Updates SDK to v2.1302.0 (compare)
aws-sdk-js-automation on v2.1302.0
const s3 = new AWS.S3({
accessKeyId: 'xxxx',
secretAccessKey: 'xxxxxx',
});
const secondS3 = new AWS.S3({ accessKeyId: 'otherkey', secretAccessKey: 'othersecret', });
const lambda = new Lambda({ region: env.awsRegion, maxRetries: 0 });
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
phases:
install:
runtime-version:
docker: 18
pre_build:
commands:
- 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
- COMMIT_HASH=$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION)
- IMAGE_TAG=${COMMIT_HASH:=latest}
build:
commands:
- echo Build started on `date`
- echo Building the Docker image...
- docker build -t $REPOSITORY_URI:latest .
- docker tag $REPOSITORY_URI:latest $REPOSITORY_URI:$IMAGE_TAG
post_build:
commands:
- 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
artifacts:
files: taskdefinition.json
Please help.
greetings.
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?
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
}
}
https://aws.amazon.com/ru/blogs/devops/building-an-amazon-cloudwatch-dashboard-outside-of-the-aws-management-console/
https://docs.aws.amazon.com/en_us/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html
let sts = new AWS.STS();
sts.assumeRole({
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
AWS.config.update({
accessKeyId: data.Credentials.AccessKeyId,
secretAccessKey: data.Credentials.SecretAccessKey,
sessionToken: data.Credentials.SessionToken,
});
}
});
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.
yarn add aws-sdk-js
instead?
upload()
function and the input as { ..., Body: fs.createReadStream(filePath), ... }
.