Skip to content

Fix for bug: CloudFormation tags on AWS::Serverless::Function do not deploy #11459 #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

lizard-boy
Copy link

Motivation

This contains a fix for localstack#11459

Changes

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR addresses a bug where CloudFormation tags on AWS::Serverless::Function were not deploying correctly, improving tag handling for Lambda functions in LocalStack.

  • Added tag validation in localstack-core/localstack/services/lambda_/provider.py, including length limits and character restrictions
  • Implemented tag processing for AWS::Lambda::Function resources in localstack-core/localstack/services/lambda_/resource_providers/aws_lambda_function.py
  • Ensured automatic addition of required CloudFormation-specific tags to Lambda functions
  • Enhanced create method in LambdaFunctionProvider class to apply tags from CloudFormation templates
  • Updated tests in tests/aws/services/lambda_/test_lambda_api.py to cover new tag-related functionalities

3 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings

tags[tag_dict_key] = tag_dict_value

# the following mmust be added by default as specified here:
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax: 'mmust' is misspelled, should be 'must'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants