Agent skill · software engineering · aiskillstore

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.

Why this skill is useful

Adds a script to assume AWS IAM roles and set environment variables for CloudFormation operations, which is not commonly known.

What it needs

Requires aws-cli, jq installed locally. About 1k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

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) rolearn: IAM role ARN to assume (default: arn:aws:iam::692859919890:role/CloudFormationWriteRole) rolesessionname: Session name (default: cfn-write) Execution Steps 1. Use AWS STS to assume the role and obtain credentials 2. Save credentials to a temporary file 3. Parse credentials using jq and set as environment variables 4. Clean up the temporary file Command Example Output Environment variables are set, making CloudFormation operations available via AWS CLI: AWSACCESSKEYID AWSSECRETACCESSKEY AWSSESSIONTOKEN Usage Examples After executing this skill, the following CloudFormation commands become available: Prerequisites AWS CLI installed jq command installed Specified profile (default: web-hosting) configured in ~/.aws/credentials or ~/.aws/config Source profile has sts:AssumeRole permission 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

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/assume-cloudformation-role

View the source on GitHub

Browse the @skills marketplace