Front-End Web & Mobile

Tag: AWS CDK

Accessing resources in a Amazon Virtual Private Cloud (Amazon VPC) from Next.js API Routes

Accessing resources in a Amazon Virtual Private Cloud (Amazon VPC) from Next.js API Routes

Developers often need to access resources deployed inside of a Amazon Virtual Private Cloud (Amazon VPC) from Next.js applications deployed to AWS Amplify Hosting. An Amazon VPC can enable enterprises to launch resources in an isolated virtual network; however, developers may find it challenging to connect frontend applications to call APIs and databases within the Amazon […]

Connect a React app to GraphQL and DynamoDB with AWS CDK and Amplify

Today, we’re excited to announce the official AWS Cloud Development Kit (CDK) construct for Amplify’s GraphQL APIs capabilities. With Amplify’s GraphQL API CDK construct, you can create a real-time GraphQL API backed by data sources such as Amazon DynamoDB tables or AWS Lambda functions using a single GraphQL schema definition. (View on Construct Hub) Launching […]

fullstack NextJS with MongoDB AD

The fullstack guide to using AWS AppSync and MongoDB Atlas

AWS AppSync is a fully managed service that makes it simple to build scalable APIs for web and mobile applications. It allows you to create APIs that access data from a variety of sources, including databases, serverless functions, and other AWS services. With AWS AppSync, you can build APIs that support real-time data via WebSockets, […]

Managing images in your NextJS app with AWS AppSync and the AWS CDK

In modern applications, sharing files is as much a necessity as having a database or authentication. When working with AWS, a common storage solution is to use Amazon Simple Storage Service (S3) where files are stored in an S3 bucket. The problem however, is a file often needs to be associated with data stored in […]

Secure AWS AppSync with Amazon Cognito using the AWS CDK

In a previous post, we explored how a public API Key for AWS AppSync provides a simple way of allowing access to resources, however, it does come with the following tradeoffs: Expiring after a certain amount of time. The key is passed on the x-api-key header of the request. Making it easy for bad actors […]

Secure AWS AppSync with API Keys using the AWS CDK

Secure AWS AppSync with API Keys using the AWS CDK

AWS AppSync is a managed GraphQL service offered by AWS. As a managed service, there are no servers to keep track of and scaling up and down due to traffic is automatically handled by AWS. In AppSync, there is no concept of a fully-public API. Every request must be protected by one of the following: […]

7 ways to reduce latency in your AppSync API

7 ways to reduce latency in your AWS AppSync API

Overview AWS AppSync is a serverless GraphQL service that makes it easy to create single endpoint GraphQL and realtime APIs. AppSync lets you combine disparate data sources and deliver the results to applications in an expected format, as specified by your API’s schema definition. As with any GraphQL service, there are mechanisms in place to […]

Building a full-stack chat application with AWS and NextJS

June 27, 2024: This blog post covers Amplify Gen 1. For new Amplify apps, we recommend using Amplify Gen 2. You can learn more about Gen 2 in our launch blog post. Modern chat apps require a rich set of features. These features include file storage, real-time updates, and the ability to fetch data on both the […]

Extend Amplify backend with custom AWS resources using AWS CDK or CloudFormation

Today, AWS Amplify announces a new amplify add custom command to add any of the 175+ AWS services to an Amplify-created backend using the AWS Cloud Development Kit (CDK) or AWS CloudFormation. The new ability to add custom resources enables developers to add additional resources beyond Amplify’s built-in use cases with a single command. AWS […]