This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Lambda resource stack creation using Amplify CLI", | |
"Parameters": { | |
"env": { | |
"Type": "String" | |
}, | |
"DynamoDBPhotoTableArn": { | |
"Type": "String", | |
"Default": "DYNAMODB_PHOTO_TABLE_ARN_PLACEHOLDER" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// photo-albums/src/App.js | |
import React, { Component } from 'react'; | |
import {BrowserRouter as Router, Route, NavLink} from 'react-router-dom'; | |
import { Container, Divider, Form, Grid, Header, Input, List, Modal, Segment } from 'semantic-ui-react'; | |
import {v4 as uuid} from 'uuid'; | |
import { Connect, S3Image, withAuthenticator } from 'aws-amplify-react'; | |
import Amplify, { API, graphqlOperation, Storage } from 'aws-amplify'; |