Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Added clarity to docs to update missing amplify backend permissions #433

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Follow these instructions to deploy the application (both backend and frontend):
- Note: If you forked and changed the repository first, you can use the Amplify console and select "**Connect App**" to connect to your forked repo.
1. For IAM Service Role, create one if you don't have one or select an existing role. (This is required because the Amplify Console needs permissions to deploy backend resources on your behalf. More [info](https://docs.aws.amazon.com/amplify/latest/userguide/how-to-service-role-amplify-console.html))
![amplify console select role or create new role](images/amplify-select-role.png)
1. Update the role that is created with an additional in-line policy allowing the following action: **lambda:PutFunctionConcurrency** and **serverlessrepo:CreateCloudFormationTemplate**.
1. Within your new app in Amplify Console, wait for deployment to complete (this may take a while)
1. Once the deployment is complete, you can test out the application!

Expand Down
30 changes: 15 additions & 15 deletions amplify/.config/project-config.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"projectName": "photoshare",
"version": "3.0",
"frontend": "javascript",
"javascript": {
"framework": "react",
"config": {
"SourceDir": "src/react-frontend/src",
"DistributionDir": "src/react-frontend/build",
"BuildCommand": "npm run-script build",
"StartCommand": "npm run-script start"
}
},
"providers": [
"awscloudformation"
]
"providers": [
"awscloudformation"
],
"projectName": "lambdarefarchimagere",
"version": "3.1",
"frontend": "javascript",
"javascript": {
"framework": "react",
"config": {
"SourceDir": "src/react-frontend/src",
"DistributionDir": "src/react-frontend/build",
"BuildCommand": "npm.cmd run-script build ",
"StartCommand": "npm.cmd run-script start"
}
}
}
2 changes: 1 addition & 1 deletion lambda-functions/store-image-metadata/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lambda-functions/store-image-metadata/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"author": "Angela Wang",
"license": "Apache-2",
"dependencies": {
"aws-appsync": "^4.1.7",
"graphql": "^16.5.0",
"aws-appsync": "^4.1.9",
"graphql": "^16.6.0",
"graphql-tag": "^2.12.6",
"isomorphic-fetch": "^3.0.0"
}
Expand Down
59 changes: 46 additions & 13 deletions src/react-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions src/react-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
"version": "0.1.1",
"private": true,
"dependencies": {
"@aws-amplify/api": "^3.3.3",
"@aws-amplify/storage": "^3.4.4",
"@aws-amplify/ui-react": "^3.4.0",
"@aws-amplify/api": "^5.0.4",
"@aws-amplify/storage": "^4.5.8",
"@aws-amplify/ui-react": "^4.1.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^14.4.3",
"aws-amplify": "^4.3.31",
"aws-amplify-react": "^5.1.9",
"aws-amplify": "^5.0.4",
"aws-amplify-react": "^5.1.43",
"graphql": "^16.6.0",
"react": "^18.2.0",
"react-dom": "^18.1.0",
"react-router-dom": "^6.3.0",
Expand Down