Skip to content

Instantly share code, notes, and snippets.

@faermanj
faermanj / README.md
Last active March 30, 2017 16:57 — forked from anonymous/README.md
Workshop DynamoDB NoSQL BA
@faermanj
faermanj / README.md
Last active March 19, 2023 13:39
API Authentication with Amazon Cognito

In the previous episodes we implemented the fundamental components of a tyical web application: "static" content and "dynamic" APIs. For each component, we´ve been using the most out of AWS services, such as S3, CloudFront, Lambda and API gateway. But so far we have only been working with public resources. Let us now learn more about user authentication and authorization in two very important services: AWS Identity and Access Management and Amazon Cognito. Even more importantly, let us integrate that within our React application ;)

  • Serverless Architecture Review
  • Introduction to Amazon Cognito
  • Cognito User Pools
  • Cognito Federated Identities
  • Cognito Identity SDK
  • AWS SDKs
  • Integrating with Javascript and React
  • Implementing Authentication Flows
@faermanj
faermanj / README.md
Last active May 8, 2017 04:01
Julio on Twitch.TV/AWS S01E02

Application Delivery on AWS

After creating and publishing a static website in the last broadcast, today we'll develop a web application API to compute and access dynamic data. Starting by the basics of interface design and serverless compute, we´ll explore the most relevant aspects of application integration with AWS backends.

Today's broadcast starts 4pm GMT ( check your local time http://bit.ly/2mLj30j ) and will include:

Understanding Amazon Lambda and Amazon API Gateway

Coding lambda functions in node.js 6.10

https://aws.amazon.com/about-aws/whats-new/2017/03/aws-lambda-supports-node-js-6-10/

@faermanj
faermanj / README.md
Last active February 25, 2021 19:34
Julio on Twitch.TV/AWS

This is the first gist with notes my broadcasts on [Twitch.TV/AWS](twitch.tv/aws].

This broadcast is all about being:

  • Interactive and driven by you: use Twitch Chat or @jmfaerman on twitter to send your questions and comments.
  • Beginners friendly, but not basic: we'll dive deep, but all questions will be answered.
  • English, Javascript and Open Source first: Being accessible to most developers, in the abscence of further requirements.
  • Data applications development and integration: collection, analysis, learning, visualization and all around data on AWS.

Next episode:

Something
Wicked
This
Way
Comes
package kornell.server.util
import org.wildfly.swarm.container.Container
import org.wildfly.swarm.jaxrs.JAXRSArchive
import org.jboss.shrinkwrap.api.ShrinkWrap
import org.jboss.shrinkwrap.api.spec.WebArchive
import org.jboss.shrinkwrap.resolver.api.maven.archive.importer.MavenImporter
object KornellSwarm extends App{
val container = new Container();
import scala.collection.JavaConverters._
import com.amazonaws.services.s3.AmazonS3Client
import rx.lang.scala._
import rx.lang.scala.schedulers._
import com.amazonaws.services.s3.model._
/**
* @author jfaerman
*/
AmazonS3Client s3 = new AmazonS3Client();
String bucketName = "deleteversions-"+UUID.randomUUID();
//Creates Bucket
s3.createBucket(bucketName);
//Enable Versioning
BucketVersioningConfiguration configuration = new BucketVersioningConfiguration(ENABLED);
s3.setBucketVersioningConfiguration(new SetBucketVersioningConfigurationRequest(bucketName, configuration ));
for((x,i) <- xs.view.zipWithIndex) println("String #" + i + " is " + x)
@faermanj
faermanj / 0_reuse_code.js
Last active August 29, 2015 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console