Alibabacloud Network Alb Http To Https
БесплатноЗапускает вложенные скриптыНе проверенConfigure HTTP-to-HTTPS redirects on Alibaba Cloud ALB, including inspecting the current listener and rule setup, creating missing HTTP or HTTPS listeners…
от sdk-team1 081 установка в других каталогахОб этом скилле
ALB HTTP to HTTPS redirect
Use Alibaba Cloud CLI to configure HTTP-to-HTTPS 301/302 redirects on ALB. Write scripts poll resource status after creation until listeners or rules become available.
All Alibaba Cloud service calls in this skill must include --user-agent AlibabaCloud-Agent-Skills/alibabacloud-network-alb-http-to-https.
Installation
Pre-check: Aliyun CLI >= 3.3.3 required
Run
aliyun versionto verify >= 3.3.3. If not installed or version too low, runcurl -fsSL https://aliyuncli.alicdn.com/setup.sh | bashto update, or seereferences/cli-installation-guide.mdfor installation instructions.Then [MUST] run the following commands before Alibaba Cloud service calls:
aliyun configure set --auto-plugin-install true aliyun plugin update aliyun configure ai-mode set-user-agent --user-agent AlibabaCloud-Agent-Skills/alibabacloud-network-alb-http-to-https aliyun configure ai-mode enableAfter all skill commands finish, [MUST] disable AI-Mode so later manual CLI calls are not mislabeled as AI/Skill traffic:
aliyun configure ai-mode disable
Authentication
Pre-check: Alibaba Cloud Credentials Required
Security Rules:
- NEVER read, echo, or print AK/SK values (e.g.,
echo $ALIBABA_CLOUD_ACCESS_KEY_IDis FORBIDDEN)- NEVER ask the user to input AK/SK directly in the conversation or command line
- NEVER use
aliyun configure setwith literal credential values- ONLY use
aliyun configure listto check credential statusaliyun configure listCheck the output for a valid profile (AK, STS, or OAuth identity).
If no valid profile exists, STOP here.
- Obtain credentials from Alibaba Cloud Console
- Configure credentials outside of this session (via
aliyun configurein terminal or environment variables in shell profile)- Return and re-run after
aliyun configure listshows a valid profile
RAM Policy
This skill requires the following RAM permissions. See references/ram-policies.md for the complete list.
Core Permissions Required:
- ALB:
ListLoadBalancers,GetLoadBalancerAttribute,ListListeners,GetListenerAttribute - ALB:
CreateListener,UpdateListenerAttribute,ListRules,CreateRule,CreateServerGroup - CAS:
UploadUserCertificate,DeleteUserCertificate
[MUST] Permission Failure Handling: When any command or API call fails due to permission errors at any point during execution, follow this process:
- Read
references/ram-policies.mdto get the full list of permissions required by this SKILL- Use
ram-permission-diagnoseskill to guide the user through requesting the necessary permissions- Pause and wait until the user confirms that the required permissions have been granted
Decision tree
Inspect the current state first, then choose the next action:
- Use
get_load_balancer.shto confirm the ALB exists and isActive. Do not continue with certificate upload, server group creation, listener creation, or rule creation until the ALB existence check passes. - If the user provides an ALB name, or the identifier is ambiguous, resolve it to a real load balancer ID first with
list_load_balancers.sh. Only pass a confirmed ALB ID to scripts that require--lb-id. - Use
list_listeners.shto inspect existing listeners. - Branch on the result:
- No HTTPS listener -> Ask whether to create one. A server group ID and certificate ID are required. If no certificate exists, suggest
generate_test_cert.shplusupload_cert.shto generate and upload a self-signed test certificate. - HTTPS listener certificate must be replaced temporarily -> Use
get_listener.shto capture the actual current default certificate ID, generate and upload the temporary certificate, useupdate_listener.shto bind it, verify withget_listener.sh, then useupdate_listener.shagain to restore the captured certificate ID. If the user-provided original certificate ID differs from the actual listener certificate, report the difference and use the actual captured certificate ID as the rollback target. - HTTPS exists, but no HTTP listener -> Ask whether to create
HTTP:80with a redirect. The HTTP listener's default forwarding action must reference a server group, so an empty placeholder server group may be needed. - HTTP listener exists, but no redirect rule -> Use
get_listener.shto confirm the protocol is HTTP, then uselist_rules.shto find occupied priorities and create a redirect rule with the highest available priority.list_listeners.shoutput does not replace this listener-specific check. - Existing redirect rule -> Inform the user that redirect is already configured and show the current rule.
- No HTTPS listener -> Ask whether to create one. A server group ID and certificate ID are required. If no certificate exists, suggest
Workflow
# 1. Verify CLI version, refresh plugins, and mark this run as AI/Skill tra
Установить Alibabacloud Network Alb Http To Https в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadFAQ
Что делает скилл Alibabacloud Network Alb Http To Https?
Configure HTTP-to-HTTPS redirects on Alibaba Cloud ALB, including inspecting the current listener and rule setup, creating missing HTTP or HTTPS listeners, and adding a redirect rule that forces HTTP requests to HTTPS. Use this skill when a user wants to enable HTTPS enforcement on an existing ALB, redirect port 80 traffic to 443, or check whether an ALB already has a correct HTTP-to-HTTPS redirect configuration.
Как установить скилл Alibabacloud Network Alb Http To Https?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Alibabacloud Network Alb Http To Https запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic