Skip to content

fix(cloudformation): resolve stacks by ARN in addition to name#148

Open
sagi-shimoni wants to merge 1 commit intohectorvent:mainfrom
sagi-shimoni:fix/cloudformation-arn-lookup
Open

fix(cloudformation): resolve stacks by ARN in addition to name#148
sagi-shimoni wants to merge 1 commit intohectorvent:mainfrom
sagi-shimoni:fix/cloudformation-arn-lookup

Conversation

@sagi-shimoni
Copy link
Copy Markdown

Summary

  • CloudFormation APIs (DescribeStacks, DescribeStackEvents, DeleteStack) now accept a stack ARN as the StackName parameter, matching real AWS behavior
  • Adds a resolveStack helper that extracts the stack name from the ARN and falls back to a linear scan by stackId
  • Consolidates all stack lookups through resolveStack to avoid inconsistent behavior

Test plan

  • Added describeStackEvents_byArn integration test that creates a stack, captures the ARN, and verifies both DescribeStackEvents and DescribeStacks work when called with the ARN
  • Run full CloudFormationIntegrationTest suite (CI)

🤖 Generated with Claude Code

CloudFormation APIs like DescribeStacks, DescribeStackEvents, and
DeleteStack now accept a stack ARN as the StackName parameter, matching
real AWS behavior. A new resolveStack helper extracts the stack name
from the ARN and falls back to a linear scan by stackId.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@hectorvent
Copy link
Copy Markdown
Owner

Hi @sagi-shimoni,

Thanks for taking the time to contribute! We've seen your PR and will take a look soon.

To ensure this implementation stays robust, could you also open a PR in our compatibility suite at https://github.com/hectorvent/floci-compatibility-tests? This helps us validate that your changes keep working perfectly as the project evolves.

The Floci team

@LorenzoRogai
Copy link
Copy Markdown

LorenzoRogai commented Apr 3, 2026

Can confirm the bug. As per AWS Documentation the --stack-name filter should also accept the ARN

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants