You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by saidberk27 August 14, 2024
I am relatively new to AWS and Angular development. I am currently working on a project where AWS IoT sends data to a specific topic, which triggers a Lambda function. This Lambda function then stores the data in DynamoDB, and my AppSync API reads from this DynamoDB table.
Objective:
My goal is to create a real-time IoT web application. Specifically, I want to frequently check DynamoDB for any updates, as I expect changes to occur approximately six times per minute due to the IoT device's activity.
Current Progress:
I have tested my AppSync API, and it successfully reacts to new data published to the IoT channel. I can see the newly added item's partition key (though not the full data), indicating that the API is responsive to IoT events.
Issue:
I am encountering difficulties when attempting to integrate this API with my Angular 18 application, which is built using AWS Amplify.
I have followed the documentation to configure my application, as shown below:
// app.config.ts
Amplify.configure(outputs); // For auth and data
Amplify.configure({
API: {
GraphQL: {
endpoint: 'https://xxx.appsync-api.xx-xx-2.amazonaws.com/graphql',
region: 'xx-xx-2',
defaultAuthMode: 'apiKey',
apiKey: 'da2-xxx'
}
}
});
Subsequently, I used the codegen feature to generate a service file for my API.
Discussed in #367
Originally posted by saidberk27 August 14, 2024
I am relatively new to AWS and Angular development. I am currently working on a project where AWS IoT sends data to a specific topic, which triggers a Lambda function. This Lambda function then stores the data in DynamoDB, and my AppSync API reads from this DynamoDB table.
Objective:
My goal is to create a real-time IoT web application. Specifically, I want to frequently check DynamoDB for any updates, as I expect changes to occur approximately six times per minute due to the IoT device's activity.
Current Progress:
I have tested my AppSync API, and it successfully reacts to new data published to the IoT channel. I can see the newly added item's partition key (though not the full data), indicating that the API is responsive to IoT events.
Issue:
I am encountering difficulties when attempting to integrate this API with my Angular 18 application, which is built using AWS Amplify.
I have followed the documentation to configure my application, as shown below:
Subsequently, I used the codegen feature to generate a service file for my API.
I then created a basic Angular component to interact with this API:
When I try to interact somehow with API service functions, I get validation errors. for example when I click List IoT Tests button I get two errors.
and
FYI: I am running on localhost currently
The text was updated successfully, but these errors were encountered: