Skip to content
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

bug: Security Groups created via Cloudformation template do not have the tags specified in the template #10768

Open
1 task done
anelson opened this issue May 5, 2024 · 1 comment
Labels
aws:cloudformation AWS CloudFormation aws:ec2 Amazon Elastic Compute Cloud status: backlog Triaged but not yet being worked on type: bug Bug report

Comments

@anelson
Copy link

anelson commented May 5, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Deploying a Cloudformation template which specifies a security group with one or more tags successfully creates that security group, but the tags are missing. Adding the tags to the security group manually after the template is deployed works as expected.

Expected Behavior

Tags on all resources in a Cloudformation template should be created on those resources automatically as part of the deployment of that template. I deployed this same template on an actual AWS account and the tags were present as expected.

How are you starting LocalStack?

With the localstack script

Steps To Reproduce

How are you starting localstack (e.g., bin/localstack command, arguments, or docker-compose.yml)

localstack --debug start

Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)

# Download the example CFN that reproduces this behavior
curl https://gist.githubusercontent.com/anelson/4e5af3f511e8429a3b06b1c9d4294f71/raw/eae7bca475642608b694b756e7c5c08244803537/cfn.yaml -o cfn.yaml

# Deploy the CFN to localstack
awslocal cloudformation create-stack --stack-name farcast --template-body "$(cat cfn.yaml)"

# Wait a few seconds for the deploy to complete.

# Describe the security groups; note that the security group `FarcastDefaultComputeB5C4A6CA` has no tags
awslocal ec2 describe-security-groups

Environment

- OS: Fedora 39
- LocalStack: 3.4.0

Anything else?

I made a gist with a CFN that reproduces this behavior:

https://gist.github.com/anelson/4e5af3f511e8429a3b06b1c9d4294f71

@anelson anelson added status: triage needed Requires evaluation by maintainers type: bug Bug report labels May 5, 2024
@localstack-bot
Copy link
Collaborator

Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our contributing guide.

@Anze1508 Anze1508 added aws:cloudformation AWS CloudFormation aws:ec2 Amazon Elastic Compute Cloud status: backlog Triaged but not yet being worked on and removed status: triage needed Requires evaluation by maintainers labels May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:cloudformation AWS CloudFormation aws:ec2 Amazon Elastic Compute Cloud status: backlog Triaged but not yet being worked on type: bug Bug report
Projects
None yet
Development

No branches or pull requests

3 participants