-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
2,133 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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
68 changes: 68 additions & 0 deletions
68
amplify/backend/auth/clipcrafteraidf20eeec/cli-inputs.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"version": "1", | ||
"cognitoConfig": { | ||
"identityPoolName": "clipcrafteraidf20eeec_identitypool_df20eeec", | ||
"allowUnauthenticatedIdentities": false, | ||
"resourceNameTruncated": "clipcrdf20eeec", | ||
"userPoolName": "clipcrafteraidf20eeec_userpool_df20eeec", | ||
"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": "clipcrdf20eeec_userpoolclient_lambda_role", | ||
"userpoolClientSetAttributes": false, | ||
"sharedId": "df20eeec", | ||
"resourceName": "clipcrafteraidf20eeec", | ||
"authSelections": "identityPoolAndUserPool", | ||
"useDefault": "defaultSocial", | ||
"hostedUI": true, | ||
"usernameAttributes": [ | ||
"email" | ||
], | ||
"hostedUIDomainName": "clipcrafterai", | ||
"authProvidersUserPool": [ | ||
"Google" | ||
], | ||
"hostedUIProviderMeta": "[{\"ProviderName\":\"Google\",\"authorize_scopes\":\"openid email profile\",\"AttributeMapping\":{\"email\":\"email\",\"username\":\"sub\"}}]", | ||
"userPoolGroupList": [], | ||
"serviceName": "Cognito", | ||
"useEnabledMfas": false, | ||
"authRoleArn": { | ||
"Fn::GetAtt": [ | ||
"AuthRole", | ||
"Arn" | ||
] | ||
}, | ||
"unauthRoleArn": { | ||
"Fn::GetAtt": [ | ||
"UnauthRole", | ||
"Arn" | ||
] | ||
}, | ||
"breakCircularDependency": false, | ||
"dependsOn": [], | ||
"oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://main.dvqngwodvr6ir.amplifyapp.com/\",\"http://localhost:3000/\"],\"LogoutURLs\":[\"https://main.dvqngwodvr6ir.amplifyapp.com/\",\"http://localhost:3000/\"]}" | ||
} | ||
} |
This file contains 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
193 changes: 193 additions & 0 deletions
193
amplify/backend/function/S3Triggera6bc74ca/S3Triggera6bc74ca-cloudformation-template.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,193 @@ | ||
{ | ||
"AWSTemplateFormatVersion": "2010-09-09", | ||
"Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"12.8.2\",\"stackType\":\"function-Lambda\",\"metadata\":{}}", | ||
"Parameters": { | ||
"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", | ||
"S3Triggera6bc74ca", | ||
{ | ||
"Fn::Join": [ | ||
"", | ||
[ | ||
"S3Triggera6bc74ca", | ||
"-", | ||
{ | ||
"Ref": "env" | ||
} | ||
] | ||
] | ||
} | ||
] | ||
}, | ||
"Environment": { | ||
"Variables": { | ||
"ENV": { | ||
"Ref": "env" | ||
} | ||
} | ||
}, | ||
"Role": { | ||
"Fn::GetAtt": [ | ||
"LambdaExecutionRole", | ||
"Arn" | ||
] | ||
}, | ||
"Runtime": "nodejs18.x", | ||
"Timeout": 25, | ||
"Code": { | ||
"S3Bucket": { | ||
"Ref": "deploymentBucketName" | ||
}, | ||
"S3Key": { | ||
"Ref": "s3Key" | ||
} | ||
} | ||
} | ||
}, | ||
"LambdaExecutionRole": { | ||
"Type": "AWS::IAM::Role", | ||
"Properties": { | ||
"RoleName": { | ||
"Fn::If": [ | ||
"ShouldNotCreateEnvResources", | ||
"S3Triggera6bc74caLambdaRolea6bc74ca", | ||
{ | ||
"Fn::Join": [ | ||
"", | ||
[ | ||
"S3Triggera6bc74caLambdaRolea6bc74ca", | ||
"-", | ||
{ | ||
"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" | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"pluginId": "amplify-nodejs-function-runtime-provider", | ||
"functionRuntime": "nodejs", | ||
"defaultEditorFile": "src/index.js", | ||
"useLegacyBuild": true | ||
} |
Oops, something went wrong.