aws-cloudformation / aws-cloudformation/cloudformation-cli

Fails on Mac OS Ventura 13.16 Type info must be provided for local resolving

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

Description

Errors out while trying command "cfn submit --set-default"

[durgesh hooks % cfn submit --set-default
Failed to load target info, attempting local...
Traceback (most recent call last):
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/project.py", line 715, in [_add_hooks_content_to_zip]([rpdk.log](https://github.com/aws-cloudformation/cloudformation-cli/files/14293133/rpdk.log))
else self._load_target_info(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/project.py", line 1217, in _load_target_info
session = create_sdk_session(region_name, profile_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/boto_helpers.py", line 27, in create_sdk_session
_known_error("No region specified")
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/boto_helpers.py", line 19, in _known_error
raise CLIMisconfiguredError(
rpdk.core.exceptions.CLIMisconfiguredError: No region specified. Please ensure your AWS CLI is configured correctly: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html
Failed to load target info, ignoring...
Traceback (most recent call last):
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/project.py", line 715, in _add_hooks_content_to_zip
else self._load_target_info(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/project.py", line 1217, in _load_target_info
session = create_sdk_session(region_name, profile_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/boto_helpers.py", line 27, in create_sdk_session
_known_error("No region specified")
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/boto_helpers.py", line 19, in _known_error
raise CLIMisconfiguredError(
rpdk.core.exceptions.CLIMisconfiguredError: No region specified. Please ensure your AWS CLI is configured correctly: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/project.py", line 722, in _add_hooks_content_to_zip
target_info = self._load_target_info(None, None, local_only=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/project.py", line 1212, in _load_target_info
targets = TypeNameResolver.resolve_type_names_locally(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/cloudformation-cli/0.2.35_1/libexec/lib/python3.12/site-packages/rpdk/core/type_name_resolver.py", line 48, in resolve_type_names_locally
raise InvalidTypeSchemaError(
rpdk.core.exceptions.InvalidTypeSchemaError: Type info must be provided for local resolving
Starting Docker build. This may take several minutes if the image 'public.ecr.aws/sam/build-python3.7' needs to be pulled first.
=== Unhandled exception ===
Please report this issue to the team.
Issue tracker: github.com/aws-cloudformation/cloudformation-cli/issues
Please include the log file 'rpdk.log'

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.