awslabs / seed-farmer

Seed-Farmer is an orchestration tool that works with AWS CodeSeeder and acts as an orchestration tool modeled after GitOps deployments. It has a CommandLine Interface based in Python, leverages modular code deployments defined by declarative manifests, and includes change detection and deployment optimization.
https://seed-farmer.readthedocs.io/en/latest/
Apache License 2.0
43 stars 15 forks source link

[FEATURE]Deploy modules from a AWS Region to a AWS LocalZones #606

Closed JunjieTang-D1 closed 3 weeks ago

JunjieTang-D1 commented 1 month ago

Is your feature request related to a problem? Please describe. I'm always frustrated when I have to deploy a piece of CDK code e.g. EKS cluster to the Hamburg LocalZone, from the AWS Frankfurt region.

Describe the solution you'd like Here is the architecture of seed-farmer and code-seed. The step 2 to 6 will run in the Frankfurt region. Only the deployment target in step 7 e.g. CDK for EKS clusters is the Hamburg LocalZone

image

Describe alternatives you've considered There is no alternative solution to make a consistent developer experience.

dgraeber commented 1 month ago

We will take a look and evaluate LOE

dgraeber commented 1 month ago

@JunjieTang-D1 It appears that once the VPC in the region is configured to support a LocalZone, you just reference the subnet and all still works (EKS itself would probably need a self-managed node group in order to leverage the LZ, but that is not SF's concern).

I don't understand this comment, though: I'm always frustrated when I have to deploy a piece of CDK code e.g. EKS cluster to the Hamburg LocalZone, from the AWS Frankfurt region.

I am not sure I understand this as the LZ must be associated with a VPC in a region. Though I understand your use case, I am not understanding your request. The LZ cannot exist without the region, so CDK code must be deployed in the region.

REF: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.LocalZones

dgraeber commented 3 weeks ago

This has been vetted that SF can deploy to LZ's as-is. The configuration of modules to leverage LZ's is up to the developers