-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
d/aws_instance: Set placement_group if available #2400
d/aws_instance: Set placement_group if available #2400
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aws/data_source_aws_instance_test.go
Outdated
} | ||
|
||
resource "aws_placement_group" "foo" { | ||
name = "testAccInstanceDataSourceConfig_PlacementGroup" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will need to add some name randomization here, so that we avoid conflicts when running tests
…n TestAccAWSInstanceDataSource_PlacementGroup
Comment addressed! Passes testing for me still:
|
Are you referring to a location different than https://www.terraform.io/docs/providers/aws/d/instance.html#placement_group ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* d/aws_instance: Set placement_group if available * d/aws_instance: Fix test indentations * d/aws_instance: Add name randomization and remove dedicated tenancy in TestAccAWSInstanceDataSource_PlacementGroup
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! |
This is complementary PR to #2398 since the read functions are different between the resource and data source. The data source docs already note that
placement_group
may be set.