mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
* fix(codepipeline): link approval notifications to the partition's console host The approval-needed notification built consoleLink and approvalReviewLink on the commercial console host for every pipeline, so a pipeline in China or GovCloud sent its approver to a console where the pipeline does not exist. The console host becomes a vendored per-partition fact, consoleHost in aws/region-facts.json, read by the generator from the user-guide snapshots under local/aws/aws-docs/partition-guides: cn/console.md for aws-cn (console.amazonaws.cn), gov/configure-account.md for aws-us-gov (console.amazonaws-us-gov.com) and gov/govcloud-organizations.md for the commercial host. The China guide also spells the host console.www.amazonaws.cn once, in cn/managing-aws.md; the console page's own statement is the one used. A guide page that lost its sentence, or states two hosts with it, fails the generation instead of leaving a stale value. CodePipelineEventPublisher resolves the host from the execution's region, since it runs on a worker thread without a request context. No source states a console host for the ISO or EUSC partitions, which keep the commercial one and are listed as an open question. The path after the host stays the commercial console's: no source gives the per-service path per partition. Signed-off-by: Hector Ventura <hectorvent@gmail.com> * fix(codepipeline): parse the China console host from the Markdown guide page, require sourced hosts AWS serves each user-guide page as Markdown at the same URL with .md in place of .html, and that rendering writes the China console host as a link, "[https://console.amazonaws.cn](https://console.amazonaws.cn).". The aws-cn pattern only took the page-text form, so a snapshot saved from the Markdown page failed the generator, and with it the rest of "make aws-data-sync". The pattern now takes both forms. The docstring names the three guide page URLs and the path each is saved under. self_check now requires consoleHost for the three partitions that have a source (aws, aws-cn, aws-us-gov). The shape-only check used when the sources are not checked out accepted a file without them, which would link approval notifications to the commercial console. Signed-off-by: Hector Ventura <hectorvent@gmail.com> --------- Signed-off-by: Hector Ventura <hectorvent@gmail.com>