Skip to content

Instantly share code, notes, and snippets.

@keithrozario
Created March 3, 2019 10:02
Show Gist options
  • Save keithrozario/6b32c14fbb943a72d9a8f58b74a57c0f to your computer and use it in GitHub Desktop.
Save keithrozario/6b32c14fbb943a72d9a8f58b74a57c0f to your computer and use it in GitHub Desktop.
serverless-example-import.yml
custom:
dbTempName: ${ssm:/${self:service.name}/${self:provider.stage}/dynamodb_temp_table}
dbTempArn: ${ssm:/${self:service.name}/${self:provider.stage}/dynamodb_temp_table_arn}
functions:
query_logs:
description: Query the certs from the Certificate Transparency Logs
handler: query_logs.query_to_db
environment:
db_table_name: ${self:custom.dbTempName}
iamRoleStatements:
- Effect: Allow
Action:
- dynamodb:PutItem
- dynamodb:BatchWriteItem
Resource: ${self:custom.dbTempArn}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment