CoolFace
Apppublic

Kvphanikumar/self-learning-synapse-surfer

sourceHugging Faceupdated 11mo agoView on Hugging Face
0likes
cloudformation.yaml91 linesDownload Raw Back to root
1```yaml2# AWS CloudFormation template for Synapse Surfer3AWSTemplateFormatVersion: '2010-09-09'4Description: Deployment template for Synapse Surfer AI5 6Resources:7  SynapseSurferAPI:8    Type: AWS::Serverless::Function9    Properties:10      CodeUri: ./src11      Handler: server.handler12      Runtime: nodejs14.x13      MemorySize: 102414      Timeout: 3015      Events:16        ApiEvent:17          Type: Api18          Properties:19            Path: /api/{proxy+}20            Method: ANY21  LearningDataBucket:22    Type: AWS::S3::Bucket23    Properties:24      BucketName: synapse-surfer-learning-data25      AccessControl: Private26      BucketEncryption:27        ServerSideEncryptionConfiguration:28          - ServerSideEncryptionByDefault:29              SSEAlgorithm: AES25630      VersioningConfiguration:31        Status: Enabled32      LifecycleConfiguration:33        Rules:34          - Id: AutoDeleteOldLogs35            Status: Enabled36            ExpirationInDays: 3037            NoncurrentVersionExpirationInDays: 738 39  KMSKey:40    Type: AWS::KMS::Key41    Properties:42      Description: Encryption key for sensitive data43      KeyPolicy:44        Version: '2012-10-17'45        Id: key-default-146        Statement:47          - Sid: Enable IAM User Permissions48            Effect: Allow49            Principal:50              AWS: !Sub 'arn:aws:iam::${AWS::AccountId}:root'51            Action: 'kms:*'52            Resource: '*'53 54  CognitoUserPool:55    Type: AWS::Cognito::UserPool56    Properties:57      UserPoolName: synapse-surfer-users58      AutoVerifiedAttributes:59        - email60      Policies:61        PasswordPolicy:62          MinimumLength: 1263          RequireLowercase: true64          RequireNumbers: true65          RequireSymbols: true66          RequireUppercase: true67      Schema:68        - Name: email69          AttributeDataType: String70          Required: true71Outputs:72  ApiUrl:73    Description: "API Gateway endpoint URL"74    Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/"75```76 77These updates:781. Add learning data tracking in the core AI class792. Create a new LearningLogger web component803. Add deployment scripts for AWS/GCP/Azure814. Include CloudFormation template for AWS deployment825. Enhance the feedback loop system836. Add learning data visualization in the learning page84 85The system will now:86- Track all user interactions87- Store feedback and errors88- Continuously improve based on usage patterns89- Support cloud deployment90- Visualize learning progress91- Maintain learning logs