Skip to content

Add DDB Stream of Towns to create URL for static sites #10

@justindra

Description

@justindra

When we create, update or delete a Town from DynamoDB, we should set an endpoint to point to an S3 bucket or remove that endpoint.

For example, a new town with hid: fernie means we should create a new record on route53 to point fernie.townhub.ca or fernie.dev.townhub.ca for dev environments and point that to an existing S3 bucket where we will deploy our frontend apps to.

The idea is that the frontend apps can then detect the HID of the town based on the sub-domain.

  • Probably use the AWS-SDK to do this
  • Update Cloudfront to have the CNAME
  • Update Route53 to have a new ARecord pointing to the Cloudfront instance

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions