hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.83k stars 9.18k forks source link

[New Resource]: `aws_ec2_network_interface_sg_attachments_exclusive` #39382

Open jar-b opened 1 month ago

jar-b commented 1 month ago

Description

Manage EC2 security group attachments to network interfaces. Related resources:

aws_instance aws_network_interface aws_security_group aws_ec2_network_interface_sg_attachment

Deprecate aws_instance.security_groups, aws_instance.vpc_security_group_ids, and aws_network_interface.security_groups.

Requested Resource(s) and/or Data Source(s)

Potential Terraform Configuration

resource "aws_ec2_network_interface_sg_attachments_exclusive" "example" {
  network_interface_id = aws_instance.instance.primary_network_interface_id
  security_group_ids   = [aws_security_group.example.id]
}

References

github-actions[bot] commented 1 month ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue