aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap

[AWS::CloudFormation::Macro] - [Docs] - Cross Region lambdas not supported

Open
#2,023 0 comments 0 reactions 0 assignees View on GitHub
documentation
Dominant language
No language data
Stars
1.1k
Forks
62
PR merge metrics
No merged PRs in 30d

Description

### Name of the resource

AWS::CloudFormation::Macro

### Resource name

_No response_

### Reference Link

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html#template-macros-permissions

### Details

The Lambda Function that is used for a Macro must be in the same region that the Macro is defined. You may create the Macro while pointing to a lambda function hosted on a different region, however all attempts to execute the Macro will fail with a "Failed to execute" error.

This is undocumented in the [Macro](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html#template-macros-permissions) and [AWS::CloudFormation::Macro](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-macro.html#cfn-cloudformation-macro-loggroupname) documentations.

Here is a[ stack overflow page](https://stackoverflow.com/questions/60531198/cloudformation-macro-to-use-cross-region-lambda) that states this behavior.

Contributor guide

Open the contributing guide

Research direction

Start with the linked template-macros permissions section and the AWS::CloudFormation::Macro documentation. Confirm the same-region Lambda requirement described in the issue, then update both linked documentation pages so the restriction and failure behavior are explicit.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.