-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Open
Labels
aws:cloudformationAWS CloudFormationAWS CloudFormationstatus: backlogTriaged but not yet being worked onTriaged but not yet being worked ontype: bugBug reportBug report
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Currently trying to deploy a cloudformation stack using tflocal backed by opentofu 1.9.0 and the aws provider v5.84.0.
When running the apply, localstack logs keep sending back this:
2025-02-24T18:47:05.912 INFO --- [et.reactor-9] localstack.request.aws : AWS cloudformation.CreateStack => 500 (InternalError)
~2025-02-24T18:47:20.434 DEBUG --- [read-4 (run)] l.p.c.p.snapshot.manager : Saving snapshot for services ['cloudformation']
z2025-02-24T18:47:20.434 DEBUG --- [read-4 (run)] l.p.c.persistence.manager : Serializing state of service cloudformation
x2025-02-24T18:47:20.435 INFO --- [read-4 (run)] l.p.c.persistence.manager : Saving state for cloudformation took 1 ms
x2025-02-24T18:47:20.435 INFO --- [read-4 (run)] l.p.c.p.snapshot.manager : Saving snapshot to disk took 0.00 seconds
j2025-02-24T18:47:51.444 ERROR --- [et.reactor-0] l.aws.handlers.logging : exception during call chain
#Traceback (most recent call last):
l File "/opt/code/localstack/.venv/lib/python3.11/site-packages/rolo/gateway/chain.py", line 166, in handle
* handler(self, self.context, response)
{ File "/opt/code/localstack/.venv/lib/python3.11/site-packages/localstack/aws/handlers/service.py", line 113, in __call__
& handler(chain, context, response)
z File "/opt/code/localstack/.venv/lib/python3.11/site-packages/localstack/aws/handlers/service.py", line 83, in __call__
6 skeleton_response = self.skeleton.invoke(context)
6 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
q File "/opt/code/localstack/.venv/lib/python3.11/site-packages/localstack/aws/skeleton.py", line 154, in invoke
@ return self.dispatch_request(serializer, context, instance)
@ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
{ File "/opt/code/localstack/.venv/lib/python3.11/site-packages/localstack/aws/skeleton.py", line 168, in dispatch_request
. result = handler(context, instance) or {}
( ^^^^^^^^^^^^^^^^^^^^^^^^^^
s File "/opt/code/localstack/.venv/lib/python3.11/site-packages/localstack/aws/skeleton.py", line 118, in __call__
$ return self.fn(*args, **kwargs)
$ ^^^^^^^^^^^^^^^^^^^^^^^^
{ File "/opt/code/localstack/.venv/lib/python3.11/site-packages/localstack/aws/api/core.py", line 163, in operation_marker
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/opt/code/localstack/.venv/lib/python3.11/site-packages/localstack/services/cloudformation/provider.py", line 221, in create_stack
B stack_name = template["StackName"] = request.get("StackName")
' ~~~~~~~~^^^^^^^^^^^^^
9TypeError: 'str' object does not support item assignment
Expected Behavior
Successful deployment of the cloudformation stack
How are you starting LocalStack?
Custom (please describe below)
Steps To Reproduce
How are you starting localstack (e.g., bin/localstack
command, arguments, or docker-compose.yml
)
Localstack ui for MacOS
Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)
TF_CMD=tofu tflocal apply
Environment
- OS: MacOS 15.3.1
- LocalStack:
LocalStack version: 4.1.1
LocalStack Docker image sha: sha256:6c2661dfc345a2a9e385a1d3faa3bf41fad3df0ce40e66e09f1d6876e50dbcd2
LocalStack build date: 2025-02-24
LocalStack build git hash:
Anything else?
Cloudformation stack template: https://datadog-cloudformation-template.s3.amazonaws.com/aws/forwarder/latest.yaml
emilrowland
Metadata
Metadata
Assignees
Labels
aws:cloudformationAWS CloudFormationAWS CloudFormationstatus: backlogTriaged but not yet being worked onTriaged but not yet being worked ontype: bugBug reportBug report