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

resource aws_default_security_group : missing description attribute #11564

Closed
JousP opened this issue Jan 11, 2020 · 3 comments · Fixed by #11650
Closed

resource aws_default_security_group : missing description attribute #11564

JousP opened this issue Jan 11, 2020 · 3 comments · Fixed by #11650
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.
Milestone

Comments

@JousP
Copy link

JousP commented Jan 11, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

$ terraform -v
Terraform v0.12.19
+ provider.aws v2.44.0
+ provider.null v2.1.2

Affected Resource(s)

  • aws_default_security_group

Terraform Configuration Files

resource "aws_default_security_group" "default" {
  vpc_id        = aws_vpc.main.id
  ingress {
    description = "ALL traffic FROM instances in this SG"
    protocol    = -1
    self        = true
    from_port   = 0
    to_port     = 0
  }
  egress {
    description = "ALL traffic TO everywhere"
    from_port   = 0
    to_port     = 0
    protocol    = "-1"
    cidr_blocks = ["0.0.0.0/0"]
  }
  tags          = local.tags
}

output "default_security_group_tags" {
  description = "A mapping of tags assigned to the resource."
  value       = aws_default_security_group.default.tags
}

output "default_security_group_id" {
  description = "The ID of the security group"
  value       = aws_default_security_group.default.id
}

output "default_security_group_vpc_id" {
  description = "The VPC ID."
  value       = aws_default_security_group.default.vpc_id
}

output "default_security_group_owner_id" {
  description = "The owner ID."
  value       = aws_default_security_group.default.owner_id
}

output "default_security_group_name" {
  description = "The name of the security group"
  value       = aws_default_security_group.default.name
}

output "default_security_group_description" {
  description = "The description of the security group"
  value       = aws_default_security_group.default.description
}

output "default_security_group_ingress" {
  description = "The ingress rules. See above for more."
  value       = aws_default_security_group.default.ingress
}

output "default_security_group_egress" {
  description = "The egress rules. See above for more."
  value       = aws_default_security_group.default.egress
}

Expected Behavior

As described in the following doc : https://www.terraform.io/docs/providers/aws/r/default_security_group.html
the description attribute should be supported.

Actual Behavior

When running terraform plan the following error is displayed :

Error: Unsupported attribute

  on outputs.tf line 193, in output "default_security_group_description":
 193:   value       = aws_default_security_group.default.description

This object has no argument, nested block, or exported attribute named
"description".

Steps to Reproduce

  1. terraform plan
@ghost ghost added the service/ec2 Issues and PRs that pertain to the ec2 service. label Jan 11, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Jan 11, 2020
@bflad bflad added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Feb 6, 2020
@bflad bflad added this to the v2.48.0 milestone Feb 6, 2020
@bflad
Copy link
Contributor

bflad commented Feb 6, 2020

The fix for this has been merged and will release with version 2.48.0 of the Terraform AWS Provider, tomorrow. Thanks to @david-wells-1 for the implementation. 👍

@ghost
Copy link

ghost commented Feb 7, 2020

This has been released in version 2.48.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Mar 27, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants