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

[BUG] - CloudFormation helper scripts fail on Ubuntu 24.04

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

Description

### Name of the resource

Other

### Resource Name

_No response_

### Issue Description

Running CloudFormation helper scripts (version 2.0-29 installed from https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz) fails on Ubuntu 24.04.

The errors are related to use of the `imp` module, which was removed in Python 3.12. If I fix those, there are also errors related to `from .packages.six.moves` imports.

### Expected Behavior

`cfn-init` and the other helper scripts should run without errors.

### Observed Behavior

When run, the scripts produce Python errors.

### Test Cases

* Install CloudFormation helper scripts on Ubuntu 24.04 (or any system running Python 3.12)
* Run `cfn-init`

### Other Details

_No response_

Contributor guide

Open the contributing guide

Research direction

Install version 2.0-29 from the linked aws-cfn-bootstrap-py3-latest.tar.gz on Ubuntu 24.04 or another Python 3.12 system, then run cfn-init to reproduce the errors. Inspect the helper-script source for uses of the removed imp module and the failing .packages.six.moves imports; done means cfn-init and the other helper scripts run without Python errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.