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

Give the ability to retrieve the instances in a specific VPC or subnet #1961

Closed
l2fprod opened this issue Oct 13, 2020 · 4 comments
Closed
Labels
enhancement service/VPC Infrastructure Issues related to the VPC Infrastructure

Comments

@l2fprod
Copy link
Member

l2fprod commented Oct 13, 2020

data ibm_is_instances return all virtual server instances in the account. In most cases one will want to focus on a single VPC or a single subnet.

The data resource should have optional vpc_id or subnet_id input parameter to filter the list of retrieved instances.

Affected Resource(s)

  • ibm_is_instances
@l2fprod
Copy link
Member Author

l2fprod commented Dec 29, 2020

@hkantare any plan to include this? ibm_is_instances returns all instances now which may end up being a lot!

My use case is to apply a security group (bastion) to all existing instances in a VPC. I can do it by filtering on the ibm_is_instances using a for/if in terraform but loading all instances in the account is inefficient

@hkantare
Copy link
Collaborator

We will plan in next sprint

@hkantare hkantare added the service/VPC Infrastructure Issues related to the VPC Infrastructure label Jan 5, 2021
@hkantare
Copy link
Collaborator

@hkantare
Copy link
Collaborator

closing the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement service/VPC Infrastructure Issues related to the VPC Infrastructure
Projects
None yet
Development

No branches or pull requests

2 participants