You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"aws cloudformation package" fails with AWS::LanguageExtensions Fn::ForEach in Resources #8469
bugThis issue is a bug.cloudformationinvestigatingThis issue is being investigated and/or work is in progress to resolve the issue.p3This is a minor priority issue
Applying aws cloudformation package to a template that includes the AWS::LanguageExtensions transform and a Fn::ForEach in the Resources section results in the following error:
2024-01-08 15:32:38,671 - MainThread - awscli.clidriver - DEBUG - Exception caught in main()
Traceback (most recent call last):
File "/root/.pyenv/versions/3.9.16/lib/python3.9/site-packages/awscli/clidriver.py", line 217, in main
return command_table[parsed_args.command](remaining, parsed_args)
File "/root/.pyenv/versions/3.9.16/lib/python3.9/site-packages/awscli/clidriver.py", line 361, in __call__
return command_table[parsed_args.operation](remaining, parsed_globals)
File "/root/.pyenv/versions/3.9.16/lib/python3.9/site-packages/awscli/customizations/commands.py", line 187, in __call__
return self._run_main(parsed_args, parsed_globals)
File "/root/.pyenv/versions/3.9.16/lib/python3.9/site-packages/awscli/customizations/cloudformation/package.py", line 150, in _run_main
exported_str = self._export(template_path, use_json)
File "/root/.pyenv/versions/3.9.16/lib/python3.9/site-packages/awscli/customizations/cloudformation/package.py", line 166, in _export
exported_template = template.export()
File "/root/.pyenv/versions/3.9.16/lib/python3.9/site-packages/awscli/customizations/cloudformation/artifact_exporter.py", line 664, in export
resource_type = resource.get("Type", None)
AttributeError: 'list' object has no attribute 'get'
Expected Behavior
Template is successfully packaged.
Current Behavior
Packaging fails
Reproduction Steps
Include Fn::ForEach in Resources block and package template.
Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
bugThis issue is a bug.cloudformationinvestigatingThis issue is being investigated and/or work is in progress to resolve the issue.p3This is a minor priority issue
Activity
isuftin commentedon Jan 8, 2024
@x6j8x - Looks like this was very recently fixed #8075
Consider updating your version of awscli
RyanFitzSimmonsAK commentedon Jan 8, 2024
Hi @x6j8x, thanks for reaching out. As @isuftin mentioned, please update your CLI version to
2.15.3or higher, and let me know how that goes.github-actions commentedon Jan 8, 2024
Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.