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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data source for ec2 Traffic Mirror Resources #12769

Open
chrislujan opened this issue Apr 10, 2020 · 1 comment
Open

Data source for ec2 Traffic Mirror Resources #12769

chrislujan opened this issue Apr 10, 2020 · 1 comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. new-data-source Introduces a new data source. service/ec2 Issues and PRs that pertain to the ec2 service.

Comments

@chrislujan
Copy link

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

Description

Data sources for the following resources would be very helpful. I am building out traffic mirroring where a traffic mirror session is not declared in the same place the traffic mirror filter/target would be declared. Targets and filters are generally used across many traffic mirror sessions that would likely be declared upon instance creation.

New or Affected Resource(s)

  • aws_ec2_traffic_mirror_filter
  • aws_ec2_traffic_mirror_filter_rule
  • aws_ec2_traffic_mirror_target
  • aws_ec2_traffic_mirror_session

Potential Terraform Configuration

infrastructure/main.tf:

resource "aws_ec2_traffic_mirror_filter" "some_mirror" {
  name = "some-filter"
}

resource "aws_ec2_traffic_mirror_target" "some-target" {
  name = "some-target"
}

some-project/main.tf:

data "aws_ec2_traffic_mirror_filter" "some-filter" {
  name = "some-filter"
}

data "aws_ec2_traffic_mirror_target" "some-target" {
  name = "some-target"
}

resource "aws_ec2_traffic_mirror_session" "some-session" {
  network_interface_id     = data.aws_instance.foo.primary_network_interface_id
  traffic_mirror_filter_id    = data.aws_ec2_traffic_mirror_filter.some-filter.id
  traffic_mirror_target_id  = data.aws_ec2_traffic_mirror_target.some-target.id
}

References

#9140

@chrislujan chrislujan added the enhancement Requests to existing resources that expand the functionality or scope. label Apr 10, 2020
@ghost ghost added the service/ec2 Issues and PRs that pertain to the ec2 service. label Apr 10, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Apr 10, 2020
@DrFaust92 DrFaust92 added the new-data-source Introduces a new data source. label May 21, 2020
@dgershman
Copy link

Is there a timeline for this feature request?

@anGie44 anGie44 removed the needs-triage Waiting for first response or review from a maintainer. label Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. new-data-source Introduces a new data source. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
Development

No branches or pull requests

4 participants