steps done so far:
- create DynamoDb table
- create Lambda function to update visits attribute in the table
- create an API with Lambda integration to get the clicks into the table
- create a S3 hosted static website
- create a CNAME record for Lightsail hosted zone
- Host website with the CNAME record
- Include a script that will make calls to API and get the value from table (visitors counter). Activate CORS, allow calls only form website.
- Set-up GitHub Actions for front end (created a new IAM Role for that)
TODO:
- fix the index.html, css and js