terraform-aws-ec2-instance
terraform-aws-ec2-instance copied to clipboard
Support configuration of instance tenancy
Have a question? Please checkout our Slack Community or visit our Slack Archive.
Describe the Feature
I'd like the ability to use this module to create an instance using tenancy
other than the default.
Expected Behavior
If I set tenancy = "dedicated"
(for example), it will create the instance using dedicated tenancy instead of default (shared) tenancy.
Use Case
An organization that I work with has a security policy that requires use of dedicated tenancy.
Describe Ideal Solution
A new variable tenancy
is available that allows me to set any of the accepted values, which are default
, dedicated
, or host
. See https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#tenancy
Alternatives Considered
Use a different module
PR incoming