terraform-aws-ec2-instance icon indicating copy to clipboard operation
terraform-aws-ec2-instance copied to clipboard

Support configuration of instance tenancy

Open RothAndrew opened this issue 2 years ago • 1 comments

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

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

RothAndrew avatar Sep 28 '22 17:09 RothAndrew

PR incoming

RothAndrew avatar Sep 28 '22 17:09 RothAndrew