Skip to content

Instantly share code, notes, and snippets.

View renegoretzka's full-sized avatar

René Goretzka renegoretzka

View GitHub Profile
@renegoretzka
renegoretzka / README.MD
Last active May 11, 2024 07:17
Example to invoke AppSync from AWS Lambda

How to access an AppSync Endpoint from a Lambda function

Setup in project

Run amplify add function and go thru the manual configuration and add access to other resources. Add API here. Run amplify update api if you have a project already setup and configure IAM as an additional auth mode.

Setup in schema.graphql

Add the authorization as following to your type definition:

@renegoretzka
renegoretzka / schema.graphql
Created April 27, 2021 15:13
AWS Amplify - AppSync Schema Suggestion for BlueHyz
type User
@model
@auth(
rules: [
{ allow: owner, ownerField: "id" }
{ allow: groups, groups: ["admin"] }
]
) {
id: ID!
name: String
@renegoretzka
renegoretzka / cloudSettings
Last active March 25, 2018 11:10
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-03-25T11:10:19.578Z","extensionVersion":"v2.9.0"}
{% block content %}
<div class="landingpage">
<img src="https://placebear.com/1920/1080">
<div class="container">
<div class="row align-items-center">
<div class="content">
<div class="col-12 align-self-center">
<h1>Einzigartige Dekoration<br>für Ihr Zuhause</h1>
<p>Blabla blab alba blalba blaba blal blal blab bla blablab blab</p>
// main.js
import Vue from 'vue'
import store from './store'
import router from './router'
import App from './App'
/* eslint-disable no-new */
new Vue({
el: '#app',
@renegoretzka
renegoretzka / SassMeister-input-HTML.html
Created October 16, 2014 08:12
Generated by SassMeister.com.
<p class="type display4">Light 112sp</p>