assume-cloudformation-role
Assume AWS IAM role for CloudFormation operations and set temporary credentials as environment variables. Use when working with CloudFormation stacks or when authentication setup is needed before AWS CloudFormation operations.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o assume-cloudformation-role.zip https://jpskill.com/download/18262.zip && unzip -o assume-cloudformation-role.zip && rm assume-cloudformation-role.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/18262.zip -OutFile "$d\assume-cloudformation-role.zip"; Expand-Archive "$d\assume-cloudformation-role.zip" -DestinationPath $d -Force; ri "$d\assume-cloudformation-role.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
assume-cloudformation-role.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
assume-cloudformation-roleフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Claude が読む原文 SKILL.md(中身を展開)
この本文は AI(Claude)が読むための原文(英語または中国語)です。日本語訳は順次追加中。
Assume CloudFormation Write Role
A skill to obtain the necessary credentials for AWS CloudFormation stack operations (create, delete, update) and set them as environment variables.
Purpose
Before CloudFormation operations, assume the specified role to obtain temporary credentials and set them as environment variables that can be used by AWS CLI.
Input Parameters
profile: AWS CLI profile name (default:web-hosting)role_arn: IAM role ARN to assume (default:arn:aws:iam::692859919890:role/CloudFormationWriteRole)role_session_name: Session name (default:cfn-write)
Execution Steps
- Use AWS STS to assume the role and obtain credentials
- Save credentials to a temporary file
- Parse credentials using jq and set as environment variables
- Clean up the temporary file
Command Example
# Assume role and obtain credentials
aws sts assume-role \
--role-arn arn:aws:iam::692859919890:role/CloudFormationWriteRole \
--role-session-name cfn-write \
--profile web-hosting \
> /tmp/creds.json
# Set environment variables
export AWS_ACCESS_KEY_ID=$(jq -r '.Credentials.AccessKeyId' /tmp/creds.json)
export AWS_SECRET_ACCESS_KEY=$(jq -r '.Credentials.SecretAccessKey' /tmp/creds.json)
export AWS_SESSION_TOKEN=$(jq -r '.Credentials.SessionToken' /tmp/creds.json)
# Remove temporary file
rm /tmp/creds.json
Output
Environment variables are set, making CloudFormation operations available via AWS CLI:
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYAWS_SESSION_TOKEN
Usage Examples
After executing this skill, the following CloudFormation commands become available:
# Create stack
aws cloudformation create-stack --stack-name my-stack --template-body file://template.yaml
# Update stack
aws cloudformation update-stack --stack-name my-stack --template-body file://template.yaml
# Delete stack
aws cloudformation delete-stack --stack-name my-stack
Prerequisites
- AWS CLI installed
- jq command installed
- Specified profile (default:
web-hosting) configured in~/.aws/credentialsor~/.aws/config - Source profile has
sts:AssumeRolepermission for the specified role
Notes
- Credentials are temporary and typically expire after 1 hour
- If credentials expire, re-execute this skill
- For security purposes, temporary files are always deleted after processing