Skip to content

Commit 8505a0a

Browse files
authored
Remove Namespace from Elastic Beanstalk environment tags (#95)
1 parent 4a1923f commit 8505a0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,9 @@ resource "aws_security_group" "default" {
324324
locals {
325325
// Remove `Name` tag from the map of tags because Elastic Beanstalk generates the `Name` tag automatically
326326
// and if it is provided, terraform tries to recreate the application on each `plan/apply`
327+
// `Namespace` should be removed as well since any string that contains `Name` forces recreation
327328
// https://github.com/terraform-providers/terraform-provider-aws/issues/3963
328-
tags = { for t in keys(module.label.tags) : t => module.label.tags[t] if t != "Name" }
329+
tags = { for t in keys(module.label.tags) : t => module.label.tags[t] if t != "Name" && t != "Namespace" }
329330

330331
elb_settings = [
331332
{

0 commit comments

Comments
 (0)