Category : amazon-web-services

currently we have a .env file with the following definitions in the backend of a Nx project HOST=$HOST USER_DB=$USER_DB PASS_DB=$PASS_DB We are using this approach for not hardcoding anything, so we can have that .env file in our repo without any problem. The workflow of the CodePipeline is: Testing/Linting Build image and put it into ..

Read more

I’m using angular 11 with spring boot RESTful services. I have implemented an angular application. Now I need to migrate it to AWS. So I use Amplify of AWS. Amplify always returns promise when we do get(),put(),post() methods. Until now I used Observable, and its working fine getAccount(page: any, size: any, accountIds?: string[]): Observable<IPageble<IAccount>> { ..

Read more

I am trying to use the @aws-sdk/client-transcribe-streaming in an Angular project, without any luck. The below code is the only example provided by AWS // ES6+ example import { TranscribeStreamingClient, StartStreamTranscriptionCommand, } from "@aws-sdk/client-transcribe-streaming"; // a client can be shared by different commands. const client = new TranscribeStreamingClient({ region: "REGION" }); const params = { ..

Read more

I followed this tutorial. It worked just fine before I updated aws-amplify to v3.3.26. After the update it stopped to synchronize IndexDB with DynamoDB. I didn’t have any errors when I set Amplify.Logger.LOG_LEVEL = ‘DEBUG’. After tutorial in main.ts I had: import Amplify from "@aws-amplify/core"; import {DataStore} from "@aws-amplify/datastore"; import awsExports from "./aws-exports"; Amplify.configure(awsExports); After ..

Read more

I am following this url to setup cloud front origin. https://nickzamosenchuk.medium.com/configure-amazon-cloudfront-cdn-for-websocket-connection-43c44b3f877c How to connect WebSocket through Angular app.? I tried 2 ways but not able to connect. let data = this.httpClient.get(‘https://<id>.cloudfront.net/dev’).subscribe(datas => { console.log(datas); }); or this.socket = webSocket(‘wss://<id>.cloudfront.net/dev’); What is the way to connect WebSocket in angular? Source: Angular..

Read more