Closed justinlittman closed 6 years ago
Are we still waiting for more changes or can we work on this?
I think this is ready for work.
@justinlittman I believe this is complete. However I did not "add region parameter to commands" as I did not find it necessary:
$ AWS_ACCESS_KEY_ID=999999 AWS_SECRET_ACCESS_KEY=1231 aws \
> --endpoint-url http://localhost:4574 lambda create-function \
> --function-name f1 \
> --runtime go1.x \
> --role r1 \
> --handler postgres_derivative \
> --environment "Variables={\
> SPARQL_ENDPOINT=http://127.0.0.1:9999/blazegraph/namespace/kb/sparql, \
> RDS_DB_NAME=rialto_development, \
> RDS_USERNAME=postgres, \
> RDS_HOSTNAME=127.0.0.1, \
> RDS_PORT=5432, \
> RDS_PASSWORD=sekret}" \
> --zip-file fileb://postgres_derivative.zip
{
"TracingConfig": {},
"FunctionName": "f1",
"VpcConfig": {
"SubnetIds": [
null
],
"SecurityGroupIds": [
null
]
},
"FunctionArn": "arn:aws:lambda:us-east-1:000000000000:function:f1",
"Environment": {
"Variables": {
"RDS_PORT": "5432",
"RDS_DB_NAME": "rialto_development",
"SPARQL_ENDPOINT": "http://127.0.0.1:9999/blazegraph/namespace/kb/sparql",
"RDS_USERNAME": "postgres",
"RDS_PASSWORD": "sekret",
"RDS_HOSTNAME": "127.0.0.1"
},
"Error": {}
},
"Handler": "postgres_derivative",
"Role": "r1",
"Runtime": "go1.x"
}
@justinlittman Do you have a region set in your ~/.aws/config
?
No, I don't.
Out of date.
Errors include:
rebuild
action, which is no longer supported.Also, would be helpful to include instructions on how to view lambda output (by viewing lambda container logs).
Still compiling notes for this ticket. Not yet ready for work.