From e412976166a47dbe06289ce68362515608d6376f Mon Sep 17 00:00:00 2001 From: Joe McDonagh Date: Thu, 4 Apr 2024 14:21:08 -0400 Subject: [PATCH] Add amplify config --- amplify/.config/project-config.json | 17 +++++ amplify/README.md | 8 +++ .../auth/berkleeopen799eb504/cli-inputs.json | 45 +++++++++++++ amplify/backend/backend-config.json | 53 ++++++++++++++++ .../amplifyhosting-template.json | 39 ++++++++++++ amplify/backend/tags.json | 10 +++ .../amplify-dependent-resources-ref.d.ts | 13 ++++ amplify/cli.json | 63 +++++++++++++++++++ amplify/hooks/README.md | 7 +++ amplify/team-provider-info.json | 39 ++++++++++++ 10 files changed, 294 insertions(+) create mode 100644 amplify/.config/project-config.json create mode 100644 amplify/README.md create mode 100644 amplify/backend/auth/berkleeopen799eb504/cli-inputs.json create mode 100644 amplify/backend/backend-config.json create mode 100644 amplify/backend/hosting/amplifyhosting/amplifyhosting-template.json create mode 100644 amplify/backend/tags.json create mode 100644 amplify/backend/types/amplify-dependent-resources-ref.d.ts create mode 100644 amplify/cli.json create mode 100644 amplify/hooks/README.md create mode 100644 amplify/team-provider-info.json diff --git a/amplify/.config/project-config.json b/amplify/.config/project-config.json new file mode 100644 index 0000000..028b18d --- /dev/null +++ b/amplify/.config/project-config.json @@ -0,0 +1,17 @@ +{ + "projectName": "berkleeopen", + "version": "3.1", + "frontend": "javascript", + "javascript": { + "framework": "react", + "config": { + "SourceDir": "src", + "DistributionDir": "dist", + "BuildCommand": "npm run-script build", + "StartCommand": "npm run-script start" + } + }, + "providers": [ + "awscloudformation" + ] +} \ No newline at end of file diff --git a/amplify/README.md b/amplify/README.md new file mode 100644 index 0000000..7c0a9e2 --- /dev/null +++ b/amplify/README.md @@ -0,0 +1,8 @@ +# Getting Started with Amplify CLI +This directory was generated by [Amplify CLI](https://docs.amplify.aws/cli). + +Helpful resources: +- Amplify documentation: https://docs.amplify.aws +- Amplify CLI documentation: https://docs.amplify.aws/cli +- More details on this folder & generated files: https://docs.amplify.aws/cli/reference/files +- Join Amplify's community: https://amplify.aws/community/ diff --git a/amplify/backend/auth/berkleeopen799eb504/cli-inputs.json b/amplify/backend/auth/berkleeopen799eb504/cli-inputs.json new file mode 100644 index 0000000..8edb08f --- /dev/null +++ b/amplify/backend/auth/berkleeopen799eb504/cli-inputs.json @@ -0,0 +1,45 @@ +{ + "version": "1", + "cognitoConfig": { + "identityPoolName": "berkleeopen799eb504_identitypool_799eb504", + "allowUnauthenticatedIdentities": false, + "resourceNameTruncated": "berkle799eb504", + "userPoolName": "berkleeopen799eb504_userpool_799eb504", + "autoVerifiedAttributes": [ + "email" + ], + "mfaConfiguration": "OFF", + "mfaTypes": [ + "SMS Text Message" + ], + "smsAuthenticationMessage": "Your authentication code is {####}", + "smsVerificationMessage": "Your verification code is {####}", + "emailVerificationSubject": "Your verification code", + "emailVerificationMessage": "Your verification code is {####}", + "defaultPasswordPolicy": false, + "passwordPolicyMinLength": 8, + "passwordPolicyCharacters": [], + "requiredAttributes": [ + "email" + ], + "aliasAttributes": [], + "userpoolClientGenerateSecret": false, + "userpoolClientRefreshTokenValidity": 30, + "userpoolClientWriteAttributes": [ + "email" + ], + "userpoolClientReadAttributes": [ + "email" + ], + "userpoolClientLambdaRole": "berkle799eb504_userpoolclient_lambda_role", + "userpoolClientSetAttributes": false, + "sharedId": "799eb504", + "resourceName": "berkleeopen799eb504", + "authSelections": "identityPoolAndUserPool", + "useDefault": "default", + "userPoolGroupList": [], + "serviceName": "Cognito", + "usernameCaseSensitive": false, + "useEnabledMfas": true + } +} \ No newline at end of file diff --git a/amplify/backend/backend-config.json b/amplify/backend/backend-config.json new file mode 100644 index 0000000..38b4313 --- /dev/null +++ b/amplify/backend/backend-config.json @@ -0,0 +1,53 @@ +{ + "auth": { + "berkleeopen799eb504": { + "customAuth": false, + "dependsOn": [], + "frontendAuthConfig": { + "mfaConfiguration": "OFF", + "mfaTypes": [ + "SMS" + ], + "passwordProtectionSettings": { + "passwordPolicyCharacters": [], + "passwordPolicyMinLength": 8 + }, + "signupAttributes": [ + "EMAIL" + ], + "socialProviders": [], + "usernameAttributes": [], + "verificationMechanisms": [ + "EMAIL" + ] + }, + "providerPlugin": "awscloudformation", + "service": "Cognito" + } + }, + "hosting": { + "amplifyhosting": { + "providerPlugin": "awscloudformation", + "service": "amplifyhosting", + "type": "manual" + } + }, + "parameters": { + "AMPLIFY_hosting_amplifyhosting_appId": { + "usedBy": [ + { + "category": "hosting", + "resourceName": "amplifyhosting" + } + ] + }, + "AMPLIFY_hosting_amplifyhosting_type": { + "usedBy": [ + { + "category": "hosting", + "resourceName": "amplifyhosting" + } + ] + } + } +} \ No newline at end of file diff --git a/amplify/backend/hosting/amplifyhosting/amplifyhosting-template.json b/amplify/backend/hosting/amplifyhosting/amplifyhosting-template.json new file mode 100644 index 0000000..bbd30f3 --- /dev/null +++ b/amplify/backend/hosting/amplifyhosting/amplifyhosting-template.json @@ -0,0 +1,39 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"12.10.3\",\"stackType\":\"hosting-amplifyhosting\",\"metadata\":{}}", + "Parameters": { + "env": { + "Type": "String" + }, + "appId": { + "Type": "String" + }, + "type": { + "Type": "String" + } + }, + "Conditions": { + "isManual": { + "Fn::Equals": [ + { + "Ref": "type" + }, + "manual" + ] + } + }, + "Resources": { + "AmplifyBranch": { + "Condition": "isManual", + "Type": "AWS::Amplify::Branch", + "Properties": { + "BranchName": { + "Ref": "env" + }, + "AppId": { + "Ref": "appId" + } + } + } + } +} \ No newline at end of file diff --git a/amplify/backend/tags.json b/amplify/backend/tags.json new file mode 100644 index 0000000..b9321d7 --- /dev/null +++ b/amplify/backend/tags.json @@ -0,0 +1,10 @@ +[ + { + "Key": "user:Stack", + "Value": "{project-env}" + }, + { + "Key": "user:Application", + "Value": "{project-name}" + } +] \ No newline at end of file diff --git a/amplify/backend/types/amplify-dependent-resources-ref.d.ts b/amplify/backend/types/amplify-dependent-resources-ref.d.ts new file mode 100644 index 0000000..1f886bc --- /dev/null +++ b/amplify/backend/types/amplify-dependent-resources-ref.d.ts @@ -0,0 +1,13 @@ +export type AmplifyDependentResourcesAttributes = { + "auth": { + "berkleeopen799eb504": { + "AppClientID": "string", + "AppClientIDWeb": "string", + "IdentityPoolId": "string", + "IdentityPoolName": "string", + "UserPoolArn": "string", + "UserPoolId": "string", + "UserPoolName": "string" + } + } +} \ No newline at end of file diff --git a/amplify/cli.json b/amplify/cli.json new file mode 100644 index 0000000..1058d7b --- /dev/null +++ b/amplify/cli.json @@ -0,0 +1,63 @@ +{ + "features": { + "graphqltransformer": { + "addmissingownerfields": true, + "improvepluralization": false, + "validatetypenamereservedwords": true, + "useexperimentalpipelinedtransformer": true, + "enableiterativegsiupdates": true, + "secondarykeyasgsi": true, + "skipoverridemutationinputtypes": true, + "transformerversion": 2, + "suppressschemamigrationprompt": true, + "securityenhancementnotification": false, + "showfieldauthnotification": false, + "usesubusernamefordefaultidentityclaim": true, + "usefieldnameforprimarykeyconnectionfield": false, + "enableautoindexquerynames": true, + "respectprimarykeyattributesonconnectionfield": true, + "shoulddeepmergedirectiveconfigdefaults": false, + "populateownerfieldforstaticgroupauth": true + }, + "frontend-ios": { + "enablexcodeintegration": true + }, + "auth": { + "enablecaseinsensitivity": true, + "useinclusiveterminology": true, + "breakcirculardependency": true, + "forcealiasattributes": false, + "useenabledmfas": true + }, + "codegen": { + "useappsyncmodelgenplugin": true, + "usedocsgeneratorplugin": true, + "usetypesgeneratorplugin": true, + "cleangeneratedmodelsdirectory": true, + "retaincasestyle": true, + "addtimestampfields": true, + "handlelistnullabilitytransparently": true, + "emitauthprovider": true, + "generateindexrules": true, + "enabledartnullsafety": true, + "generatemodelsforlazyloadandcustomselectionset": false + }, + "appsync": { + "generategraphqlpermissions": true + }, + "latestregionsupport": { + "pinpoint": 1, + "translate": 1, + "transcribe": 1, + "rekognition": 1, + "textract": 1, + "comprehend": 1 + }, + "project": { + "overrides": true + } + }, + "debug": { + "shareProjectConfig": false + } +} \ No newline at end of file diff --git a/amplify/hooks/README.md b/amplify/hooks/README.md new file mode 100644 index 0000000..8fb601e --- /dev/null +++ b/amplify/hooks/README.md @@ -0,0 +1,7 @@ +# Command Hooks + +Command hooks can be used to run custom scripts upon Amplify CLI lifecycle events like pre-push, post-add-function, etc. + +To get started, add your script files based on the expected naming convention in this directory. + +Learn more about the script file naming convention, hook parameters, third party dependencies, and advanced configurations at https://docs.amplify.aws/cli/usage/command-hooks diff --git a/amplify/team-provider-info.json b/amplify/team-provider-info.json new file mode 100644 index 0000000..f07f6c8 --- /dev/null +++ b/amplify/team-provider-info.json @@ -0,0 +1,39 @@ +{ + "dev": { + "awscloudformation": { + "AuthRoleName": "amplify-berkleeopen-dev-3d898-authRole", + "UnauthRoleArn": "arn:aws:iam::399735942051:role/amplify-berkleeopen-dev-3d898-unauthRole", + "AuthRoleArn": "arn:aws:iam::399735942051:role/amplify-berkleeopen-dev-3d898-authRole", + "Region": "us-east-1", + "DeploymentBucketName": "amplify-berkleeopen-dev-3d898-deployment", + "UnauthRoleName": "amplify-berkleeopen-dev-3d898-unauthRole", + "StackName": "amplify-berkleeopen-dev-3d898", + "StackId": "arn:aws:cloudformation:us-east-1:399735942051:stack/amplify-berkleeopen-dev-3d898/3e11ec10-f2ad-11ee-bd67-1261b950bfb5", + "AmplifyAppId": "d2aaugixocxhg8" + } + }, + "production": { + "awscloudformation": { + "AuthRoleName": "amplify-berkleeopen-production-d2415-authRole", + "UnauthRoleArn": "arn:aws:iam::399735942051:role/amplify-berkleeopen-production-d2415-unauthRole", + "AuthRoleArn": "arn:aws:iam::399735942051:role/amplify-berkleeopen-production-d2415-authRole", + "Region": "us-east-1", + "DeploymentBucketName": "amplify-berkleeopen-production-d2415-deployment", + "UnauthRoleName": "amplify-berkleeopen-production-d2415-unauthRole", + "StackName": "amplify-berkleeopen-production-d2415", + "StackId": "arn:aws:cloudformation:us-east-1:399735942051:stack/amplify-berkleeopen-production-d2415/93038710-f2ad-11ee-8d9a-127439b6c3bf", + "AmplifyAppId": "d2aaugixocxhg8" + }, + "categories": { + "auth": { + "berkleeopen799eb504": {} + }, + "hosting": { + "amplifyhosting": { + "appId": "d2aaugixocxhg8", + "type": "manual" + } + } + } + } +} \ No newline at end of file