Skip to content

Instantly share code, notes, and snippets.

@micahwalter
Last active January 4, 2024 18:36
Show Gist options
  • Save micahwalter/eb59a7e7678ef84761f48b10804469ce to your computer and use it in GitHub Desktop.
Save micahwalter/eb59a7e7678ef84761f48b10804469ce to your computer and use it in GitHub Desktop.
RebuildSiteWebhook:
Type: AWS::Serverless::Function
Metadata:
BuildMethod: go1.x
Properties:
Description: !Sub
- Stack ${AWS::StackName} Function ${ResourceName}
- ResourceName: RebuildSiteWebhook
CodeUri: cmd/functions/rebuildSiteWebhook
Runtime: provided.al2
MemorySize: 3008
Timeout: 30
Tracing: Active
Handler: bootstrap
Events:
Items:
Type: DynamoDB
Properties:
Stream: !GetAtt MyDB.StreamArn
StartingPosition: TRIM_HORIZON
BatchSize: 1
Environment:
Variables:
AMPLIFY_WEBHOOK_URL: '{{resolve:ssm:/new-thing/amplify-webhook-url:1}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment