sul-dlss-deprecated / rialto-derivatives

Listens to SNS messages and moves data from Neptune to Solr and Postgres to power the RIALTO webapp
0 stars 1 forks source link

Update README in derivatives #98

Closed justinlittman closed 6 years ago

justinlittman commented 6 years ago

Out of date.

Errors include:

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.

peetucket commented 6 years ago

Are we still waiting for more changes or can we work on this?

justinlittman commented 6 years ago

I think this is ready for work.

jcoyne commented 6 years ago

@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"
}
jcoyne commented 6 years ago

@justinlittman Do you have a region set in your ~/.aws/config ?

justinlittman commented 6 years ago

No, I don't.