From 6f7c2542296f9d0edb9e1b0b110e7ef32f8dbf46 Mon Sep 17 00:00:00 2001 From: Elijah Quartey Date: Tue, 3 Sep 2024 09:55:52 -0500 Subject: [PATCH] chore(api): Remove Gen 1 API backend (#5393) --- .../amplify/.config/project-config.json | 13 - .../api/amplify_api/example/amplify/README.md | 8 - .../api/apiintegmultiauth/cli-inputs.json | 22 -- .../api/apiintegmultiauth/parameters.json | 11 - .../api/apiintegmultiauth/resolvers/README.md | 2 - .../api/apiintegmultiauth/schema.graphql | 115 --------- .../stacks/CustomResources.json | 58 ----- .../api/apiintegmultiauth/transform.conf.json | 4 - .../backend/api/multiAuthRest/cli-inputs.json | 21 -- .../cli-inputs.json | 52 ---- .../amplify/backend/backend-config.json | 135 ---------- .../apiintegmultiauth0aef1d4a/amplify.state | 6 - ...iauth0aef1d4a-cloudformation-template.json | 202 --------------- .../custom-policies.json | 6 - .../function-parameters.json | 3 - .../apiintegmultiauth0aef1d4a/parameters.json | 1 - .../apiintegmultiauth0aef1d4a/src/event.json | 5 - .../apiintegmultiauth0aef1d4a/src/index.js | 20 -- .../src/package.json | 10 - .../apiintegmultiauth0aef1d4a/src/yarn.lock | 8 - .../amplify.state | 6 - ...e55aPreSignup-cloudformation-template.json | 242 ------------------ .../custom-policies.json | 6 - .../function-parameters.json | 17 -- .../parameters.json | 4 - .../src/custom.js | 17 -- .../src/event.json | 8 - .../src/index.js | 33 --- .../src/package.json | 10 - .../src/yarn.lock | 8 - .../example/amplify/backend/tags.json | 10 - .../amplify-dependent-resources-ref.d.ts | 41 --- .../api/amplify_api/example/amplify/cli.json | 62 ----- .../example/amplify/hooks/README.md | 7 - .../provision_integration_test_resources.sh | 42 --- 35 files changed, 1215 deletions(-) delete mode 100644 packages/api/amplify_api/example/amplify/.config/project-config.json delete mode 100644 packages/api/amplify_api/example/amplify/README.md delete mode 100644 packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/cli-inputs.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/parameters.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/resolvers/README.md delete mode 100644 packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/schema.graphql delete mode 100644 packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/stacks/CustomResources.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/transform.conf.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/api/multiAuthRest/cli-inputs.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/auth/apiintegmultiauth131fe55a131fe55a/cli-inputs.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/backend-config.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/amplify.state delete mode 100644 packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/apiintegmultiauth0aef1d4a-cloudformation-template.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/custom-policies.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/function-parameters.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/parameters.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/src/event.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/src/index.js delete mode 100644 packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/src/package.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/src/yarn.lock delete mode 100644 packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/amplify.state delete mode 100644 packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/apiintegmultiauth131fe55a131fe55aPreSignup-cloudformation-template.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/custom-policies.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/function-parameters.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/parameters.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/custom.js delete mode 100644 packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/event.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/index.js delete mode 100644 packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/package.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/yarn.lock delete mode 100644 packages/api/amplify_api/example/amplify/backend/tags.json delete mode 100644 packages/api/amplify_api/example/amplify/backend/types/amplify-dependent-resources-ref.d.ts delete mode 100644 packages/api/amplify_api/example/amplify/cli.json delete mode 100644 packages/api/amplify_api/example/amplify/hooks/README.md delete mode 100755 packages/api/amplify_api/example/tool/provision_integration_test_resources.sh diff --git a/packages/api/amplify_api/example/amplify/.config/project-config.json b/packages/api/amplify_api/example/amplify/.config/project-config.json deleted file mode 100644 index 5a0abfdb05..0000000000 --- a/packages/api/amplify_api/example/amplify/.config/project-config.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "providers": [ - "awscloudformation" - ], - "projectName": "apiIntegMultiAuth", - "version": "3.1", - "frontend": "flutter", - "flutter": { - "config": { - "ResDir": "./lib/" - } - } -} \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/README.md b/packages/api/amplify_api/example/amplify/README.md deleted file mode 100644 index 7c0a9e285f..0000000000 --- a/packages/api/amplify_api/example/amplify/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# 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/packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/cli-inputs.json b/packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/cli-inputs.json deleted file mode 100644 index 80327bb22b..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/cli-inputs.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "version": 1, - "serviceConfiguration": { - "apiName": "apiintegmultiauth", - "serviceName": "AppSync", - "defaultAuthType": { - "mode": "AWS_IAM" - }, - "additionalAuthTypes": [ - { - "mode": "API_KEY", - "expirationTime": 365, - "apiKeyExpirationDate": "2023-08-25T16:39:38.191Z", - "keyDescription": "test" - }, - { - "mode": "AMAZON_COGNITO_USER_POOLS", - "cognitoUserPoolId": "authapiintegmultiauth131fe55a131fe55a" - } - ] - } -} \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/parameters.json b/packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/parameters.json deleted file mode 100644 index 882bebf7e5..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/parameters.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "AppSyncApiName": "apiintegmultiauth", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "AuthCognitoUserPoolId": { - "Fn::GetAtt": [ - "authapiintegmultiauth131fe55a131fe55a", - "Outputs.UserPoolId" - ] - } -} \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/resolvers/README.md b/packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/resolvers/README.md deleted file mode 100644 index 89e564c5b3..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/resolvers/README.md +++ /dev/null @@ -1,2 +0,0 @@ -Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. -For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/schema.graphql b/packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/schema.graphql deleted file mode 100644 index 08c9b23e36..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/schema.graphql +++ /dev/null @@ -1,115 +0,0 @@ -type Blog - @model - @auth( - rules: [ - { allow: public, operations: [read], provider: apiKey } - { allow: public, operations: [read], provider: iam } - { allow: private, operations: [read], provider: iam } - { allow: private, operations: [read], provider: userPools } - { allow: owner, operations: [create, read, update, delete] } - ] - ) { - id: ID! - name: String! - posts: [Post] @hasMany(indexName: "byBlog", fields: ["id"]) -} - -type Post - @model - @auth( - rules: [ - { allow: public, operations: [read], provider: iam } - { allow: private, operations: [read], provider: iam } - { allow: private, operations: [read], provider: userPools } - { allow: owner, operations: [create, read, update, delete] } - ] - ) { - id: ID! - title: String! - rating: Int! - blogID: ID! @index(name: "byBlog") - blog: Blog @belongsTo(fields: ["blogID"]) - comments: [Comment] @hasMany(indexName: "byPost", fields: ["id"]) -} - -type Comment - @model - @auth( - rules: [ - { allow: private, operations: [read], provider: iam } - { allow: private, operations: [read], provider: userPools } - { allow: owner, operations: [create, read, update, delete] } - ] - ) { - id: ID! - postID: ID! @index(name: "byPost") - post: Post @belongsTo(fields: ["postID"]) - content: String! -} - -type CpkOneToOneBidirectionalParentCD - @model - @auth(rules: [{ allow: private, provider: iam }]) { - customId: ID! @primaryKey(sortKeyFields: ["name"]) - name: String! - implicitChild: CpkOneToOneBidirectionalChildImplicitCD @hasOne - explicitChild: CpkOneToOneBidirectionalChildExplicitCD @hasOne -} - -type CpkOneToOneBidirectionalChildImplicitCD - @model - @auth(rules: [{ allow: private, provider: iam }]) { - id: ID! @primaryKey(sortKeyFields: ["name"]) - name: String! - belongsToParent: CpkOneToOneBidirectionalParentCD @belongsTo -} - -type CpkOneToOneBidirectionalChildExplicitCD - @model - @auth(rules: [{ allow: private, provider: iam }]) { - id: ID! @primaryKey(sortKeyFields: ["name"]) - name: String! - belongsToParentID: ID - belongsToParentName: String - belongsToParent: CpkOneToOneBidirectionalParentCD - @belongsTo(fields: ["belongsToParentID", "belongsToParentName"]) -} - -type OwnerOnly @model @auth(rules: [{ allow: owner }]) { - id: ID! - name: String! -} - -type lowerCase - @model - @auth( - rules: [ - { allow: public, operations: [read], provider: apiKey } - { allow: public, operations: [read], provider: iam } - { allow: private, operations: [read], provider: iam } - { allow: private, operations: [read], provider: userPools } - { allow: owner, operations: [create, read, update, delete] } - ] - ) { - id: ID! - name: String! -} - -type Sample - @model - @auth( - rules: [ - { allow: public, operations: [read], provider: apiKey } - { allow: public, operations: [read], provider: iam } - { allow: private, operations: [read], provider: iam } - { allow: private, operations: [read], provider: userPools } - { allow: owner, operations: [create, read, update, delete] } - ] - ) { - id: ID! - name: String - number: Int - flag: Boolean - date: AWSTime - rootbeer: Float -} diff --git a/packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/stacks/CustomResources.json b/packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/stacks/CustomResources.json deleted file mode 100644 index f95feea378..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/stacks/CustomResources.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "An auto-generated nested stack.", - "Metadata": {}, - "Parameters": { - "AppSyncApiId": { - "Type": "String", - "Description": "The id of the AppSync API associated with this project." - }, - "AppSyncApiName": { - "Type": "String", - "Description": "The name of the AppSync API", - "Default": "AppSyncSimpleTransform" - }, - "env": { - "Type": "String", - "Description": "The environment name. e.g. Dev, Test, or Production", - "Default": "NONE" - }, - "S3DeploymentBucket": { - "Type": "String", - "Description": "The S3 bucket containing all deployment assets for the project." - }, - "S3DeploymentRootKey": { - "Type": "String", - "Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." - } - }, - "Resources": { - "EmptyResource": { - "Type": "Custom::EmptyResource", - "Condition": "AlwaysFalse" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - ] - }, - "AlwaysFalse": { - "Fn::Equals": ["true", "false"] - } - }, - "Outputs": { - "EmptyOutput": { - "Description": "An empty output. You may delete this if you have at least one resource above.", - "Value": "" - } - } -} diff --git a/packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/transform.conf.json b/packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/transform.conf.json deleted file mode 100644 index 98e1e19f03..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/api/apiintegmultiauth/transform.conf.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Version": 5, - "ElasticsearchWarning": true -} \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/backend/api/multiAuthRest/cli-inputs.json b/packages/api/amplify_api/example/amplify/backend/api/multiAuthRest/cli-inputs.json deleted file mode 100644 index 7a2d4b8321..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/api/multiAuthRest/cli-inputs.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "version": 1, - "paths": { - "/items": { - "name": "/items", - "lambdaFunction": "apiintegmultiauth0aef1d4a", - "permissions": { - "setting": "protected", - "auth": [ - "create", - "read", - "update", - "delete" - ], - "guest": [ - "read" - ] - } - } - } -} \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/backend/auth/apiintegmultiauth131fe55a131fe55a/cli-inputs.json b/packages/api/amplify_api/example/amplify/backend/auth/apiintegmultiauth131fe55a131fe55a/cli-inputs.json deleted file mode 100644 index a467201f97..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/auth/apiintegmultiauth131fe55a131fe55a/cli-inputs.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "version": "1", - "cognitoConfig": { - "identityPoolName": "apiintegmultiauth131fe55a_identitypool_131fe55a", - "allowUnauthenticatedIdentities": true, - "resourceNameTruncated": "apiint131fe55a", - "userPoolName": "apiintegmultiauth131fe55a_userpool_131fe55a", - "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": [], - "aliasAttributes": [], - "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": 30, - "userpoolClientWriteAttributes": [ - "email" - ], - "userpoolClientReadAttributes": [ - "email" - ], - "userpoolClientLambdaRole": "apiint131fe55a_userpoolclient_lambda_role", - "userpoolClientSetAttributes": false, - "sharedId": "131fe55a", - "resourceName": "apiintegmultiauth131fe55a131fe55a", - "authSelections": "identityPoolAndUserPool", - "useDefault": "manual", - "thirdPartyAuth": false, - "userPoolGroups": false, - "adminQueries": false, - "triggers": { - "PreSignup": [ - "custom" - ] - }, - "hostedUI": false, - "userPoolGroupList": [], - "serviceName": "Cognito", - "usernameCaseSensitive": false, - "useEnabledMfas": true - } -} \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/backend/backend-config.json b/packages/api/amplify_api/example/amplify/backend/backend-config.json deleted file mode 100644 index e7764f7db2..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/backend-config.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "api": { - "apiintegmultiauth": { - "dependsOn": [ - { - "attributes": [ - "UserPoolId" - ], - "category": "auth", - "resourceName": "apiintegmultiauth131fe55a131fe55a" - } - ], - "output": { - "authConfig": { - "additionalAuthenticationProviders": [ - { - "apiKeyConfig": { - "apiKeyExpirationDate": "2023-08-25T16:39:38.191Z", - "apiKeyExpirationDays": 365, - "description": "test" - }, - "authenticationType": "API_KEY" - }, - { - "authenticationType": "AMAZON_COGNITO_USER_POOLS", - "userPoolConfig": { - "userPoolId": "authapiintegmultiauth131fe55a131fe55a" - } - } - ], - "defaultAuthentication": { - "authenticationType": "AWS_IAM" - } - } - }, - "providerPlugin": "awscloudformation", - "service": "AppSync" - }, - "multiAuthRest": { - "dependsOn": [ - { - "attributes": [ - "Name", - "Arn" - ], - "category": "function", - "resourceName": "apiintegmultiauth0aef1d4a" - } - ], - "providerPlugin": "awscloudformation", - "service": "API Gateway" - } - }, - "auth": { - "apiintegmultiauth131fe55a131fe55a": { - "customAuth": false, - "dependsOn": [ - { - "attributes": [ - "Arn", - "Name" - ], - "category": "function", - "resourceName": "apiintegmultiauth131fe55a131fe55aPreSignup", - "triggerProvider": "Cognito" - } - ], - "frontendAuthConfig": { - "mfaConfiguration": "OFF", - "mfaTypes": [ - "SMS" - ], - "passwordProtectionSettings": { - "passwordPolicyCharacters": [], - "passwordPolicyMinLength": 8 - }, - "signupAttributes": [], - "socialProviders": [], - "usernameAttributes": [], - "verificationMechanisms": [ - "EMAIL" - ] - }, - "providerPlugin": "awscloudformation", - "service": "Cognito" - } - }, - "function": { - "apiintegmultiauth0aef1d4a": { - "build": true, - "dependsOn": [], - "providerPlugin": "awscloudformation", - "service": "Lambda" - }, - "apiintegmultiauth131fe55a131fe55aPreSignup": { - "build": true, - "providerPlugin": "awscloudformation", - "service": "Lambda" - } - }, - "parameters": { - "AMPLIFY_function_apiintegmultiauth0aef1d4a_deploymentBucketName": { - "usedBy": [ - { - "category": "function", - "resourceName": "apiintegmultiauth0aef1d4a" - } - ] - }, - "AMPLIFY_function_apiintegmultiauth0aef1d4a_s3Key": { - "usedBy": [ - { - "category": "function", - "resourceName": "apiintegmultiauth0aef1d4a" - } - ] - }, - "AMPLIFY_function_apiintegmultiauth131fe55a131fe55aPreSignup_deploymentBucketName": { - "usedBy": [ - { - "category": "function", - "resourceName": "apiintegmultiauth131fe55a131fe55aPreSignup" - } - ] - }, - "AMPLIFY_function_apiintegmultiauth131fe55a131fe55aPreSignup_s3Key": { - "usedBy": [ - { - "category": "function", - "resourceName": "apiintegmultiauth131fe55a131fe55aPreSignup" - } - ] - } - } -} \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/amplify.state b/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/amplify.state deleted file mode 100644 index 0c3efe0470..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/amplify.state +++ /dev/null @@ -1,6 +0,0 @@ -{ - "pluginId": "amplify-nodejs-function-runtime-provider", - "functionRuntime": "nodejs", - "useLegacyBuild": true, - "defaultEditorFile": "src/index.js" -} \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/apiintegmultiauth0aef1d4a-cloudformation-template.json b/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/apiintegmultiauth0aef1d4a-cloudformation-template.json deleted file mode 100644 index 1f1190e910..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/apiintegmultiauth0aef1d4a-cloudformation-template.json +++ /dev/null @@ -1,202 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"12.8.2\",\"stackType\":\"function-Lambda\",\"metadata\":{}}", - "Parameters": { - "CloudWatchRule": { - "Type": "String", - "Default": "NONE", - "Description": " Schedule Expression" - }, - "deploymentBucketName": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "s3Key": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "LambdaFunction": { - "Type": "AWS::Lambda::Function", - "Metadata": { - "aws:asset:path": "./src", - "aws:asset:property": "Code" - }, - "Properties": { - "Code": { - "S3Bucket": { - "Ref": "deploymentBucketName" - }, - "S3Key": { - "Ref": "s3Key" - } - }, - "Handler": "index.handler", - "FunctionName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "apiintegmultiauth0aef1d4a", - { - "Fn::Join": [ - "", - [ - "apiintegmultiauth0aef1d4a", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "Environment": { - "Variables": { - "ENV": { - "Ref": "env" - }, - "REGION": { - "Ref": "AWS::Region" - } - } - }, - "Role": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - }, - "Runtime": "nodejs14.x", - "Layers": [], - "Timeout": 25 - } - }, - "LambdaExecutionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "apiintegmultiauthLambdaRole9b4430b2", - { - "Fn::Join": [ - "", - [ - "apiintegmultiauthLambdaRole9b4430b2", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - } - } - }, - "lambdaexecutionpolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "LambdaFunction" - } - } - ] - } - } - ] - } - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "LambdaFunction" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "LambdaExecutionRole": { - "Value": { - "Ref": "LambdaExecutionRole" - } - }, - "LambdaExecutionRoleArn": { - "Value": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/custom-policies.json b/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/custom-policies.json deleted file mode 100644 index 528c94f2f2..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/custom-policies.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "Action": [], - "Resource": [] - } -] \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/function-parameters.json b/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/function-parameters.json deleted file mode 100644 index d5078776c2..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/function-parameters.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "lambdaLayers": [] -} \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/parameters.json b/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/parameters.json deleted file mode 100644 index 9e26dfeeb6..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/parameters.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/src/event.json b/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/src/event.json deleted file mode 100644 index fd2722e859..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/src/event.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "key1": "value1", - "key2": "value2", - "key3": "value3" -} diff --git a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/src/index.js b/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/src/index.js deleted file mode 100644 index 8c533674f5..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/src/index.js +++ /dev/null @@ -1,20 +0,0 @@ - - -/** - * @type {import('@types/aws-lambda').APIGatewayProxyHandler} - */ -exports.handler = async (event) => { - console.log(`EVENT: ${JSON.stringify(event)}`); - let body = 'Hello from Lambda!'; - if (event['headers']['test_header'] === 'test_value') { - body = 'test header set'; - } - return { - statusCode: 200, - headers: { - "Access-Control-Allow-Origin": "*", - "Access-Control-Allow-Headers": "*" - }, - body, - }; -}; diff --git a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/src/package.json b/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/src/package.json deleted file mode 100644 index f5d5a4b3a4..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/src/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "apiintegmultiauth0aef1d4a", - "version": "2.0.0", - "description": "Lambda function generated by Amplify", - "main": "index.js", - "license": "Apache-2.0", - "devDependencies": { - "@types/aws-lambda": "^8.10.92" - } -} diff --git a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/src/yarn.lock b/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/src/yarn.lock deleted file mode 100644 index 520397c1df..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth0aef1d4a/src/yarn.lock +++ /dev/null @@ -1,8 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@types/aws-lambda@^8.10.92": - version "8.10.102" - resolved "https://registry.yarnpkg.com/@types/aws-lambda/-/aws-lambda-8.10.102.tgz#d2402224ec30cdddfb669005c25b6ee01fd6f5be" - integrity sha512-BT05v46n9KtSHa9SgGuOvm49eSruJ9utD8iNXpdpuUVYk8wOcqmm1LEzpNRkrXxD0CULc38sdLpk6q3Wa2WOwg== diff --git a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/amplify.state b/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/amplify.state deleted file mode 100644 index 0c3efe0470..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/amplify.state +++ /dev/null @@ -1,6 +0,0 @@ -{ - "pluginId": "amplify-nodejs-function-runtime-provider", - "functionRuntime": "nodejs", - "useLegacyBuild": true, - "defaultEditorFile": "src/index.js" -} \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/apiintegmultiauth131fe55a131fe55aPreSignup-cloudformation-template.json b/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/apiintegmultiauth131fe55a131fe55aPreSignup-cloudformation-template.json deleted file mode 100644 index 6bc1cff90c..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/apiintegmultiauth131fe55a131fe55aPreSignup-cloudformation-template.json +++ /dev/null @@ -1,242 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"12.8.2\",\"stackType\":\"function-Lambda\",\"metadata\":{}}", - "Parameters": { - "DOMAINBLACKLIST": { - "Type": "String", - "Default": "" - }, - "DOMAINWHITELIST": { - "Type": "String", - "Default": "" - }, - "modules": { - "Type": "String", - "Default": "", - "Description": "Comma-delimited list of modules to be executed by a lambda trigger. Sent to resource as an env variable." - }, - "resourceName": { - "Type": "String", - "Default": "" - }, - "trigger": { - "Type": "String", - "Default": "true" - }, - "functionName": { - "Type": "String", - "Default": "" - }, - "roleName": { - "Type": "String", - "Default": "" - }, - "parentResource": { - "Type": "String", - "Default": "" - }, - "parentStack": { - "Type": "String", - "Default": "" - }, - "env": { - "Type": "String" - }, - "deploymentBucketName": { - "Type": "String" - }, - "s3Key": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "LambdaFunction": { - "Type": "AWS::Lambda::Function", - "Metadata": { - "aws:asset:path": "./src", - "aws:asset:property": "Code" - }, - "Properties": { - "Handler": "index.handler", - "FunctionName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "apiintegmultiauth131fe55a131fe55aPreSignup", - { - "Fn::Join": [ - "", - [ - "apiintegmultiauth131fe55a131fe55aPreSignup", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "Environment": { - "Variables": { - "ENV": { - "Ref": "env" - }, - "MODULES": { - "Ref": "modules" - }, - "REGION": { - "Ref": "AWS::Region" - }, - "DOMAINWHITELIST": { - "Ref": "DOMAINWHITELIST" - }, - "DOMAINBLACKLIST": { - "Ref": "DOMAINBLACKLIST" - } - } - }, - "Role": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - }, - "Runtime": "nodejs14.x", - "Timeout": 25, - "Code": { - "S3Bucket": { - "Ref": "deploymentBucketName" - }, - "S3Key": { - "Ref": "s3Key" - } - } - } - }, - "LambdaExecutionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "apiintegmultiauth131fe55a131fe55aPreSignup", - { - "Fn::Join": [ - "", - [ - "apiintegmultiauth131fe55a131fe55aPreSignup", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - } - } - }, - "lambdaexecutionpolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "LambdaFunction" - } - } - ] - } - } - ] - } - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "LambdaFunction" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - } - }, - "LambdaExecutionRole": { - "Value": { - "Ref": "LambdaExecutionRole" - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "LambdaExecutionRoleArn": { - "Value": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/custom-policies.json b/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/custom-policies.json deleted file mode 100644 index 528c94f2f2..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/custom-policies.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "Action": [], - "Resource": [] - } -] \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/function-parameters.json b/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/function-parameters.json deleted file mode 100644 index 4d03b97f6a..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/function-parameters.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "trigger": true, - "modules": [ - "custom" - ], - "parentResource": "apiintegmultiauth131fe55a131fe55a", - "functionName": "apiintegmultiauth131fe55a131fe55aPreSignup", - "resourceName": "apiintegmultiauth131fe55a131fe55aPreSignup", - "parentStack": "auth", - "triggerEnvs": [], - "triggerDir": "/snapshot/repo/build/node_modules/@aws-amplify/amplify-category-auth/provider-utils/awscloudformation/triggers/PreSignup", - "triggerTemplate": "PreSignup.json.ejs", - "triggerEventPath": "PreSignup.event.json", - "roleName": "apiintegmultiauth131fe55a131fe55aPreSignup", - "skipEdit": true, - "enableCors": false -} \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/parameters.json b/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/parameters.json deleted file mode 100644 index dc854dc722..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/parameters.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "modules": "custom", - "resourceName": "apiintegmultiauth131fe55a131fe55aPreSignup" -} \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/custom.js b/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/custom.js deleted file mode 100644 index 5e7b7a57ec..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/custom.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @type {import('@types/aws-lambda').APIGatewayProxyHandler} - */ - exports.handler = async event => { - // Confirm the user - event.response.autoConfirmUser = true; - // Set the email as verified if it is in the request - if (event.request.userAttributes.hasOwnProperty("email")) { - event.response.autoVerifyEmail = true; - } - // Set the phone number as verified if it is in the request - if (event.request.userAttributes.hasOwnProperty("phone_number")) { - event.response.autoVerifyPhone = true; - } - // Return to Amazon Cognito - return event; -}; diff --git a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/event.json b/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/event.json deleted file mode 100644 index ee8d975ed5..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/event.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "request": { - "userAttributes": { - "email": "testEmail@domain.com" - } - }, - "response": {} -} diff --git a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/index.js b/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/index.js deleted file mode 100644 index 95bdc30e35..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/index.js +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @fileoverview - * - * This CloudFormation Trigger creates a handler which awaits the other handlers - * specified in the `MODULES` env var, located at `./${MODULE}`. - */ - -/** - * The names of modules to load are stored as a comma-delimited string in the - * `MODULES` env var. - */ -const moduleNames = process.env.MODULES.split(','); -/** - * The array of imported modules. - */ -const modules = moduleNames.map(name => require(`./${name}`)); - -/** - * This async handler iterates over the given modules and awaits them. - * - * @see https://docs.aws.amazon.com/lambda/latest/dg/nodejs-handler.html#nodejs-handler-async - * @type {import('@types/aws-lambda').APIGatewayProxyHandler} - * - */ -exports.handler = async (event, context) => { - /** - * Instead of naively iterating over all handlers, run them concurrently with - * `await Promise.all(...)`. This would otherwise just be determined by the - * order of names in the `MODULES` var. - */ - await Promise.all(modules.map(module => module.handler(event, context))); - return event; -}; diff --git a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/package.json b/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/package.json deleted file mode 100644 index caac0aa12a..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "apiintegmultiauth131fe55a131fe55aPreSignup", - "version": "2.0.0", - "description": "Lambda function generated by Amplify", - "main": "index.js", - "license": "Apache-2.0", - "devDependencies": { - "@types/aws-lambda": "^8.10.92" - } -} diff --git a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/yarn.lock b/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/yarn.lock deleted file mode 100644 index 520397c1df..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/function/apiintegmultiauth131fe55a131fe55aPreSignup/src/yarn.lock +++ /dev/null @@ -1,8 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@types/aws-lambda@^8.10.92": - version "8.10.102" - resolved "https://registry.yarnpkg.com/@types/aws-lambda/-/aws-lambda-8.10.102.tgz#d2402224ec30cdddfb669005c25b6ee01fd6f5be" - integrity sha512-BT05v46n9KtSHa9SgGuOvm49eSruJ9utD8iNXpdpuUVYk8wOcqmm1LEzpNRkrXxD0CULc38sdLpk6q3Wa2WOwg== diff --git a/packages/api/amplify_api/example/amplify/backend/tags.json b/packages/api/amplify_api/example/amplify/backend/tags.json deleted file mode 100644 index b9321d71b8..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/tags.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "Key": "user:Stack", - "Value": "{project-env}" - }, - { - "Key": "user:Application", - "Value": "{project-name}" - } -] \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/backend/types/amplify-dependent-resources-ref.d.ts b/packages/api/amplify_api/example/amplify/backend/types/amplify-dependent-resources-ref.d.ts deleted file mode 100644 index c7fa09e538..0000000000 --- a/packages/api/amplify_api/example/amplify/backend/types/amplify-dependent-resources-ref.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -export type AmplifyDependentResourcesAttributes = { - "api": { - "apiintegmultiauth": { - "GraphQLAPIEndpointOutput": "string", - "GraphQLAPIIdOutput": "string", - "GraphQLAPIKeyOutput": "string" - }, - "multiAuthRest": { - "ApiId": "string", - "ApiName": "string", - "RootUrl": "string" - } - }, - "auth": { - "apiintegmultiauth131fe55a131fe55a": { - "AppClientID": "string", - "AppClientIDWeb": "string", - "IdentityPoolId": "string", - "IdentityPoolName": "string", - "UserPoolArn": "string", - "UserPoolId": "string", - "UserPoolName": "string" - } - }, - "function": { - "apiintegmultiauth0aef1d4a": { - "Arn": "string", - "LambdaExecutionRole": "string", - "LambdaExecutionRoleArn": "string", - "Name": "string", - "Region": "string" - }, - "apiintegmultiauth131fe55a131fe55aPreSignup": { - "Arn": "string", - "LambdaExecutionRole": "string", - "LambdaExecutionRoleArn": "string", - "Name": "string", - "Region": "string" - } - } -} \ No newline at end of file diff --git a/packages/api/amplify_api/example/amplify/cli.json b/packages/api/amplify_api/example/amplify/cli.json deleted file mode 100644 index 0c4445f421..0000000000 --- a/packages/api/amplify_api/example/amplify/cli.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "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": false, - "respectprimarykeyattributesonconnectionfield": true, - "shoulddeepmergedirectiveconfigdefaults": false, - "populateownerfieldforstaticgroupauth": false - }, - "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 - }, - "appsync": { - "generategraphqlpermissions": true - }, - "latestregionsupport": { - "pinpoint": 1, - "translate": 1, - "transcribe": 1, - "rekognition": 1, - "textract": 1, - "comprehend": 1 - }, - "project": { - "overrides": true - } - }, - "debug": { - "shareProjectConfig": false - } -} diff --git a/packages/api/amplify_api/example/amplify/hooks/README.md b/packages/api/amplify_api/example/amplify/hooks/README.md deleted file mode 100644 index 8fb601eaeb..0000000000 --- a/packages/api/amplify_api/example/amplify/hooks/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# 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/packages/api/amplify_api/example/tool/provision_integration_test_resources.sh b/packages/api/amplify_api/example/tool/provision_integration_test_resources.sh deleted file mode 100755 index eb56bc72e1..0000000000 --- a/packages/api/amplify_api/example/tool/provision_integration_test_resources.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash -# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. -# SPDX-License-Identifier: Apache-2.0 - -set -e -IFS='|' - -profileName=${AWS_PROFILE:-default} - -FLUTTERCONFIG="{\ -\"ResDir\":\"./lib/\",\ -}" - -AMPLIFY="{\ -\"projectName\":\"apiIntegMultiAuth\",\ -\"envName\":\"test\",\ -\"defaultEditor\":\"code\"\ -}" - -FRONTEND="{\ -\"frontend\":\"flutter\",\ -\"config\":$FLUTTERCONFIG\ -}" - -AWSCLOUDFORMATIONCONFIG="{\ -\"configLevel\":\"project\",\ -\"useProfile\":\"true\",\ -\"profileName\":\"$profileName\",\ -\"region\":\"us-west-2\"\ -}" - -PROVIDERS="{\ -\"awscloudformation\":$AWSCLOUDFORMATIONCONFIG\ -}" - - -amplify init \ ---amplify $AMPLIFY \ ---frontend $FRONTEND \ ---providers $PROVIDERS \ ---yes -amplify push --yes