Naming, replicas, and component instances
Each platform component resolves names the same way:
1 | names ?? [namePrefix-1, namePrefix-2, ... namePrefix-replicas] |
- Set
namesfor stable explicit publisher names. - Otherwise set
namePrefixandreplicas. replicasdefaults to one publisher.namePrefixdefaults tonpa-publisher.
The resolved list is exposed as the publisherNames output.
Explicit names
1 | new AwsPublisher("publisher", { |
Explicit names are safest for production because removing one name does
not force unrelated publishers to be renamed.
Derived names
1 | new AwsPublisher("publisher", { |
This creates pub-eu-1 and pub-eu-2.
Multi-AZ and multi-region naming
Use one component instance per placement boundary when networking differs
by zone, region, or provider:
1 | new AwsPublisher("publisher-eu-a", { |