Skip to content

kartikpuri95/fetch-vaccine-details

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Automatic Sending Vaccine Details

  • I have used amplify to create lambda function
  • Install amplify cli
  • run amplify init
  • Follow the instruction
  • use amplify push to deploy your code

Email service Used

  • I have used https://www.sendinblue.com/
  • Create your free account
  • And add your api key
  • Goto Send in blue dashboard
  • Create your new template
  • Copy below snippet and paste it inside that template
 
{% for hospital in params.hospital %}
 
Date For : {{ hospital.date }}
{% for hos in hospital.hospitals%}
 Name : {{ hos.name }}
Vaccine Availbility: {{ hos.is_vaccine_available }}
Address: {{ hos.address }}
{% endfor %}

{% endfor %}

Find State ID and District ID

Making this function run at specific interval

  • Goto cloud watch in AWS console
  • Create a Rule
  • I am running this function thrice a day from 9am to 8pm
  • You can use below cron tag
  • 0 6-2/4 ? * MON-SUN *

Below is the sample email

alt text

About

Lambda function to fetch vaccine details

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages