aws-cloudformation / aws-cloudformation/cloudformation-cli

Unable to set stackId when testing with cfn invoke

Open
#998 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
336
Forks
172
Avg merge
3d 5m
Merged PRs (30d)
3

Description

When doing local testing of RESOURCEs, `cfn invoke` does not provide the ability to set a `stackId` on the request. This causes any handlers relying on the `stackId` to fail or incorporate special handling for missing `stackId` values.

Ideally, should be able to pass JSON like:
```json
{
"stackId": "test-stack",
"desiredResourceState": {
"Key1": "Value1",
"Key2": "Value2"
},
"previousResourceState": {},
"logicalResourceIdentifier": "SomeIdentifier"
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.