Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Widget with AWS Costs #145

Open
tigpt opened this issue Sep 9, 2024 · 1 comment
Open

Widget with AWS Costs #145

tigpt opened this issue Sep 9, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request WIP

Comments

@tigpt
Copy link
Member

tigpt commented Sep 9, 2024

Picking on @diego7marques projecto that have AWS costs in Home Assistant, it would be lovely to have an Widget on iOS and macOS with AWS monthly costs and forecast.

For easy deploy and configuration, the Mobile app will expect a string from the user with a URL that it can fetch containing a JSON in a specific format, once this JSON is there and the data is validated, the app will be able to fetch it to refresh the data and draw a widget on iOS Home Screen.

This json would be generic enough that future applications can use it to draw other widgets on there native environments.

TODO:

  • Define json structure
  • Create a POC
  • Create a Cloud Formation Stack containing the Lambda and the required IAM permissions that any user can deploy on there account and copy the URL to the app that will draw the widget.
@diego7marques
Copy link
Collaborator

AWS perspective:

MVP 1 requirements:

  • Define the required IAM permissions
  • Create the lambda function code and return the following response:
{
"cost": {
  "month_to_date_cost": 12,
  "month_current_day": 9,
  "forecasted_cost": 20,
  "currency": "USD"
  }
}
  • Create the lambda function with endpoint enabled

MVP 2 requirements:

  • Create the resources on user account using CloudFormation.

Topics to investigate/clarify:

  • How to control the lambda/CF releases workflow as it is deployed on customer accounts
  • How to ensure lambda is requested securely.
  • How to cache (or store) data for historical charts

@diego7marques diego7marques self-assigned this Oct 10, 2024
@diego7marques diego7marques added enhancement New feature or request WIP labels Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request WIP
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants