amazon-web-services

how can i use tensorboard with aws sagemaker tensorflow?

。_饼干妹妹 提交于 2021-02-07 18:40:43
问题 i have started a sagemaker job: from sagemaker.tensorflow import TensorFlow mytraining= TensorFlow(entry_point='model.py', role=role, train_instance_count=1, train_instance_type='ml.p2.xlarge', framework_version='2.0.0', py_version='py3', distributions={'parameter_server'{'enabled':False}}) training_data_uri ='s3://path/to/my/data' mytraining.fit(training_data_uri,run_tensorboard_locally=True) using run_tesorboard_locally=True gave me Tensorboard is not supported with script mode. You can run

About permission in S3 file transfer

半城伤御伤魂 提交于 2021-02-07 15:01:09
问题 I'm using S3TransferManager-Sample to do testing. I created the Cognito and setup the IAM and change the constants.swift file at last.I have no problem to upload but failed to download. The error message is: download failed: [Error Domain=com.amazonaws.AWSS3ErrorDomain Code=1 "The operation couldn’t be completed. (com.amazonaws.AWSS3ErrorDomain error 1.)" UserInfo=0x7f8cd658a5a0 {HostId=d4yLouhlYmGn4s1Zp54+EOsZQEy2bVEGNs5XIa8pMxerJggANV/9Zb82c1QtF/5Hsn5KqYXGqdw=, Message=Access Denied, Code

Terraform - Get a value from parameter store and pass to resource

半腔热情 提交于 2021-02-07 14:49:46
问题 We store our latest approved AMIs in AWS parameter store. When creating new instances with Terraform I would like to programatically get this AMI ID. I have a command to pull the AMI ID but I'm not sure how to use it with Terraform. Here is the command I use to pull the AMI ID: $(aws ssm get-parameter --name /path/to/ami --query 'Parameter.Value' --output text) And here is my Terraform script: resource "aws_instance" "nginx" { ami = "ami-c58c1dd3" # pull value from parameter store instance

Terraform - Get a value from parameter store and pass to resource

删除回忆录丶 提交于 2021-02-07 14:48:48
问题 We store our latest approved AMIs in AWS parameter store. When creating new instances with Terraform I would like to programatically get this AMI ID. I have a command to pull the AMI ID but I'm not sure how to use it with Terraform. Here is the command I use to pull the AMI ID: $(aws ssm get-parameter --name /path/to/ami --query 'Parameter.Value' --output text) And here is my Terraform script: resource "aws_instance" "nginx" { ami = "ami-c58c1dd3" # pull value from parameter store instance

AWS CodeDeploy Command Not Found

拜拜、爱过 提交于 2021-02-07 14:35:41
问题 When trying to deploy a Node.js application I'm getting an error npm: command not found in my post_install.sh AfterInstall script. What's super strange is in my BeforeInstall script I run npm install -g pm2 and it works perfectly fine without any errors. Both are being run as the ubuntu user. Why would this command work in one CodeDeploy script and fail in another? 回答1: Looks like I was able to solve this by adding the following to my script files. export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR

Amazon API Gateway Import From Swagger Error - Not taking Generics

随声附和 提交于 2021-02-07 14:22:44
问题 I'm trying to create new APIGateway via import from Swagger, but having validation errors: The particular class causing the issue is our PaginationModel class. Code model definition: public class PaginationModel<T> { public IEnumerable<T> items { get; set; } public int offset { get; set; } public int totalCount { get; set; } } Swagger file section representing Generic PaginationModel for a particular type: *"PaginationModel[DepartmentUIModel]":{"type":"object","properties":{"items": {"type":

Amazon API Gateway Import From Swagger Error - Not taking Generics

人盡茶涼 提交于 2021-02-07 14:21:35
问题 I'm trying to create new APIGateway via import from Swagger, but having validation errors: The particular class causing the issue is our PaginationModel class. Code model definition: public class PaginationModel<T> { public IEnumerable<T> items { get; set; } public int offset { get; set; } public int totalCount { get; set; } } Swagger file section representing Generic PaginationModel for a particular type: *"PaginationModel[DepartmentUIModel]":{"type":"object","properties":{"items": {"type":

Lambda not supporting NLTK file size

爱⌒轻易说出口 提交于 2021-02-07 14:19:28
问题 I am writing a python script that analyses a piece of text and returns the data in JSON format. I am using NLTK, to analyze the data. Basically, this is my flow: Create an endpoint (API gateway) -> calls my lambda function -> returns JSON of required data. I wrote my script, deployed to lambda but I ran into this issue: Resource \u001b[93mpunkt\u001b[0m not found. Please use the NLTK Downloader to obtain the resource: \u001b[31m>>> import nltk nltk.download('punkt') \u001b[0m Searched in: - '

boto3 - AWS lambda -copy files between buckets

末鹿安然 提交于 2021-02-07 14:19:02
问题 I am trying to copy multiple files in a source bucket to a destination bucket using AWS lambda and am getting the error below. Bucket structures are as follows Source Buckets mysrcbucket/Input/daily/acctno_pin_xref/ABC_ACCTNO_PIN_XREF_FULL_20170926_0.csv.gz mysrcbucket/Input/daily/acctno_pin_xref/ABC_ACCTNO_PIN_XREF_FULL_20170926_1.csv.gz mysrcbucket/Input/daily/acctno_pin_xref/ABC_ACCTNO_PIN_XREF_count_20170926.inf Destination Buckets mydestbucket/Input/daily/acctno_pin_xref/ABC_ACCTNO_PIN

Lambda not supporting NLTK file size

ε祈祈猫儿з 提交于 2021-02-07 14:17:36
问题 I am writing a python script that analyses a piece of text and returns the data in JSON format. I am using NLTK, to analyze the data. Basically, this is my flow: Create an endpoint (API gateway) -> calls my lambda function -> returns JSON of required data. I wrote my script, deployed to lambda but I ran into this issue: Resource \u001b[93mpunkt\u001b[0m not found. Please use the NLTK Downloader to obtain the resource: \u001b[31m>>> import nltk nltk.download('punkt') \u001b[0m Searched in: - '