diff --git a/AWS/Names.yml b/AWS/Names.yml index 5a6e8d1..299cdca 100644 --- a/AWS/Names.yml +++ b/AWS/Names.yml @@ -89,8 +89,7 @@ swap: AWS Worklink: Amazon Worklink AWS WorkMail: Amazon WorkMail AWS WorkSpaces: Amazon WorkSpaces - Amazon Auto Scaling: Auto Scaling - AWS Auto Scaling: Auto Scaling + Amazon Auto Scaling: AWS Auto Scaling Amazon Amplify: AWS Amplify Amazon App Mesh: AWS App Mesh Amazon Application Discovery Service: AWS Application Discovery Service diff --git a/bin/gen b/bin/gen index f57a5cb..d6087f7 100755 --- a/bin/gen +++ b/bin/gen @@ -15,10 +15,17 @@ # # bin/list | bin/gen +EXCEPTIONS = { + 'Auto Scaling' => 'AWS Auto Scaling' +} + rules = ARGF.each_line.each_with_object({}) do |line, acc| next if line.empty? full_name = line.strip + # Some services have "incorrect" names on the status page. Therefore, these + # names are manually fixed. + full_name = EXCEPTIONS[full_name] if EXCEPTIONS.key?(full_name) if full_name.start_with?('Amazon') short_name = full_name.gsub(/(Amazon)/, '')